Fix DCHECK and positioning for FullScreen within the Site Settings menu.
[chromium-blink-merge.git] / third_party / google_toolbox_for_mac / BUILD.gn
blob1977a06aa41333d7d0db022975f87c501b9fa14c
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 config("google_toolbox_for_mac_config") {
6   include_dirs = [
7     ".",
8     "src",
9     "src/AppKit",
10     "src/DebugUtils",
11     "src/Foundation",
12   ]
15 component("google_toolbox_for_mac") {
16   sources = [
17     "src/DebugUtils/GTMMethodCheck.h",
18     "src/DebugUtils/GTMMethodCheck.m",
19     "src/Foundation/GTMLightweightProxy.h",
20     "src/Foundation/GTMLightweightProxy.m",
21     "src/Foundation/GTMNSDictionary+URLArguments.h",
22     "src/Foundation/GTMNSDictionary+URLArguments.m",
23     "src/Foundation/GTMNSObject+KeyValueObserving.h",
24     "src/Foundation/GTMNSObject+KeyValueObserving.m",
25     "src/Foundation/GTMNSString+HTML.h",
26     "src/Foundation/GTMNSString+HTML.m",
27     "src/Foundation/GTMNSString+URLArguments.h",
28     "src/Foundation/GTMNSString+URLArguments.m",
29     "src/Foundation/GTMRegex.h",
30     "src/Foundation/GTMRegex.m",
31     "src/Foundation/GTMStringEncoding.h",
32     "src/Foundation/GTMStringEncoding.m",
33   ]
35   configs -= [ "//build/config/compiler:chromium_code" ]
36   configs += [
37     ":google_toolbox_for_mac_config",
38     "//build/config/compiler:no_chromium_code",
39   ]
40   public_configs = [ ":google_toolbox_for_mac_config" ]
42   if (!is_ios) {
43     sources += [
44       "src/AddressBook/GTMABAddressBook.h",
45       "src/AddressBook/GTMABAddressBook.m",
46       "src/AppKit/GTMCarbonEvent.h",
47       "src/AppKit/GTMCarbonEvent.m",
48       "src/AppKit/GTMDelegatingTableColumn.h",
49       "src/AppKit/GTMDelegatingTableColumn.m",
50       "src/AppKit/GTMFadeTruncatingTextFieldCell.h",
51       "src/AppKit/GTMFadeTruncatingTextFieldCell.m",
52       "src/AppKit/GTMGetURLHandler.m",
53       "src/AppKit/GTMGoogleSearch.h",
54       "src/AppKit/GTMGoogleSearch.m",
55       "src/AppKit/GTMHotKeyTextField.h",
56       "src/AppKit/GTMHotKeyTextField.m",
57       "src/AppKit/GTMIBArray.h",
58       "src/AppKit/GTMIBArray.m",
59       "src/AppKit/GTMKeyValueAnimation.h",
60       "src/AppKit/GTMKeyValueAnimation.m",
61       "src/AppKit/GTMLargeTypeWindow.h",
62       "src/AppKit/GTMLargeTypeWindow.m",
63       "src/AppKit/GTMLinearRGBShading.h",
64       "src/AppKit/GTMLinearRGBShading.m",
65       "src/AppKit/GTMLoginItems.h",
66       "src/AppKit/GTMLoginItems.m",
67       "src/AppKit/GTMNSAnimatablePropertyContainer.h",
68       "src/AppKit/GTMNSAnimatablePropertyContainer.m",
69       "src/AppKit/GTMNSAnimation+Duration.h",
70       "src/AppKit/GTMNSAnimation+Duration.m",
71       "src/AppKit/GTMNSBezierPath+CGPath.h",
72       "src/AppKit/GTMNSBezierPath+CGPath.m",
73       "src/AppKit/GTMNSBezierPath+RoundRect.h",
74       "src/AppKit/GTMNSBezierPath+RoundRect.m",
75       "src/AppKit/GTMNSBezierPath+Shading.h",
76       "src/AppKit/GTMNSBezierPath+Shading.m",
77       "src/AppKit/GTMNSColor+Luminance.h",
78       "src/AppKit/GTMNSColor+Luminance.m",
79       "src/AppKit/GTMNSImage+Scaling.h",
80       "src/AppKit/GTMNSImage+Scaling.m",
81       "src/AppKit/GTMNSImage+SearchCache.h",
82       "src/AppKit/GTMNSImage+SearchCache.m",
83       "src/AppKit/GTMNSWorkspace+Running.h",
84       "src/AppKit/GTMNSWorkspace+Running.m",
85       "src/AppKit/GTMShading.h",
86       "src/AppKit/GTMUILocalizer.h",
87       "src/AppKit/GTMUILocalizer.m",
88       "src/AppKit/GTMUILocalizerAndLayoutTweaker.h",
89       "src/AppKit/GTMUILocalizerAndLayoutTweaker.m",
90       "src/AppKit/GTMWindowSheetController.h",
91       "src/AppKit/GTMWindowSheetController.m",
92       "src/DebugUtils/GTMDebugSelectorValidation.h",
93       "src/DebugUtils/GTMDebugThreadValidation.h",
94       "src/DebugUtils/GTMDebugThreadValidation.m",
95       "src/DebugUtils/GTMTypeCasting.h",
96       "src/Foundation/GTMAbstractDOListener.h",
97       "src/Foundation/GTMAbstractDOListener.m",
98       "src/Foundation/GTMCalculatedRange.h",
99       "src/Foundation/GTMCalculatedRange.m",
100       "src/Foundation/GTMExceptionalInlines.h",
101       "src/Foundation/GTMExceptionalInlines.m",
102       "src/Foundation/GTMFileSystemKQueue.h",
103       "src/Foundation/GTMFileSystemKQueue.m",
104       "src/Foundation/GTMFourCharCode.h",
105       "src/Foundation/GTMFourCharCode.m",
106       "src/Foundation/GTMGarbageCollection.h",
107       "src/Foundation/GTMGeometryUtils.h",
108       "src/Foundation/GTMGeometryUtils.m",
109       "src/Foundation/GTMLocalizedString.h",
110       "src/Foundation/GTMLogger+ASL.h",
111       "src/Foundation/GTMLogger+ASL.m",
112       "src/Foundation/GTMLogger.h",
113       "src/Foundation/GTMLogger.m",
114       "src/Foundation/GTMLoggerRingBufferWriter.h",
115       "src/Foundation/GTMLoggerRingBufferWriter.m",
116       "src/Foundation/GTMNSAppleEventDescriptor+Foundation.h",
117       "src/Foundation/GTMNSAppleEventDescriptor+Foundation.m",
118       "src/Foundation/GTMNSAppleEventDescriptor+Handler.h",
119       "src/Foundation/GTMNSAppleEventDescriptor+Handler.m",
120       "src/Foundation/GTMNSAppleScript+Handler.h",
121       "src/Foundation/GTMNSAppleScript+Handler.m",
122       "src/Foundation/GTMNSArray+Merge.h",
123       "src/Foundation/GTMNSArray+Merge.m",
124       "src/Foundation/GTMNSDictionary+CaseInsensitive.h",
125       "src/Foundation/GTMNSDictionary+CaseInsensitive.m",
126       "src/Foundation/GTMNSEnumerator+Filter.h",
127       "src/Foundation/GTMNSEnumerator+Filter.m",
128       "src/Foundation/GTMNSFileHandle+UniqueName.h",
129       "src/Foundation/GTMNSFileHandle+UniqueName.m",
130       "src/Foundation/GTMNSFileManager+Carbon.h",
131       "src/Foundation/GTMNSFileManager+Carbon.m",
132       "src/Foundation/GTMNSFileManager+Path.h",
133       "src/Foundation/GTMNSFileManager+Path.m",
134       "src/Foundation/GTMNSNumber+64Bit.h",
135       "src/Foundation/GTMNSNumber+64Bit.m",
136       "src/Foundation/GTMNSScanner+JSON.h",
137       "src/Foundation/GTMNSScanner+JSON.m",
138       "src/Foundation/GTMNSScanner+Unsigned.h",
139       "src/Foundation/GTMNSScanner+Unsigned.m",
140       "src/Foundation/GTMNSString+FindFolder.h",
141       "src/Foundation/GTMNSString+FindFolder.m",
142       "src/Foundation/GTMNSString+Replace.h",
143       "src/Foundation/GTMNSString+Replace.m",
144       "src/Foundation/GTMNSString+XML.h",
145       "src/Foundation/GTMNSString+XML.m",
146       "src/Foundation/GTMNSThread+Blocks.h",
147       "src/Foundation/GTMNSThread+Blocks.m",
148       "src/Foundation/GTMObjC2Runtime.h",
149       "src/Foundation/GTMObjC2Runtime.m",
150       "src/Foundation/GTMObjectSingleton.h",
151       "src/Foundation/GTMPath.h",
152       "src/Foundation/GTMPath.m",
153       "src/Foundation/GTMScriptRunner.h",
154       "src/Foundation/GTMScriptRunner.m",
155       "src/Foundation/GTMServiceManagement.c",
156       "src/Foundation/GTMServiceManagement.h",
157       "src/Foundation/GTMSignalHandler.h",
158       "src/Foundation/GTMSignalHandler.m",
159       "src/Foundation/GTMStackTrace.h",
160       "src/Foundation/GTMStackTrace.m",
161       "src/Foundation/GTMSystemVersion.h",
162       "src/Foundation/GTMSystemVersion.m",
163       "src/Foundation/GTMTransientRootPortProxy.h",
164       "src/Foundation/GTMTransientRootPortProxy.m",
165       "src/Foundation/GTMTransientRootProxy.h",
166       "src/Foundation/GTMTransientRootProxy.m",
167       "src/Foundation/GTMURITemplate.h",
168       "src/Foundation/GTMURITemplate.m",
169       "src/Foundation/GTMValidatingContainers.h",
170       "src/Foundation/GTMValidatingContainers.m",
171       "src/GTMDefines.h",
172     ]
174     libs = [
175       "AddressBook.framework",
176       "AppKit.framework",
177       "Carbon.framework",
178       "Cocoa.framework",
179       "QuartzCore.framework",
180     ]
181   } else {  # is_ios
182     sources += [
183       "src/iPhone/GTMFadeTruncatingLabel.h",
184       "src/iPhone/GTMFadeTruncatingLabel.m",
185       "src/iPhone/GTMRoundedRectPath.h",
186       "src/iPhone/GTMRoundedRectPath.m",
187       "src/iPhone/GTMUIImage+Resize.h",
188       "src/iPhone/GTMUIImage+Resize.m",
189       "src/iPhone/GTMUILocalizer.h",
190       "src/iPhone/GTMUILocalizer.m",
191     ]
192   }
194   if (is_component_build) {
195     # GTM is third-party code, so we don't want to add _EXPORT
196     # annotations to it, so build it without -fvisibility=hidden
197     # (else the interface class symbols will be hidden in a 64bit
198     # build). Only do this in a component build, so that the shipping
199     # chrome binary doesn't end up with unnecessarily exported
200     # symbols.
201     configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
202   }