OLD | NEW |
| (Empty) |
1 # Copyright 2013 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. | |
4 | |
5 { | |
6 'targets': [ | |
7 { | |
8 'target_name': 'google_toolbox_for_mac', | |
9 'type': '<(component)', | |
10 'include_dirs': [ | |
11 '.', | |
12 'src', | |
13 'src/AppKit', | |
14 'src/DebugUtils', | |
15 'src/Foundation', | |
16 ], | |
17 'direct_dependent_settings': { | |
18 'include_dirs': [ | |
19 '.', | |
20 'src', | |
21 'src/AppKit', | |
22 'src/DebugUtils', | |
23 'src/Foundation', | |
24 ], | |
25 }, | |
26 'sources': [ | |
27 'src/AppKit/GTMCarbonEvent.h', | |
28 'src/AppKit/GTMCarbonEvent.m', | |
29 'src/AppKit/GTMFadeTruncatingTextFieldCell.h', | |
30 'src/AppKit/GTMFadeTruncatingTextFieldCell.m', | |
31 'src/AppKit/GTMIBArray.h', | |
32 'src/AppKit/GTMIBArray.m', | |
33 'src/AppKit/GTMKeyValueAnimation.h', | |
34 'src/AppKit/GTMKeyValueAnimation.m', | |
35 'src/AppKit/GTMNSAnimation+Duration.h', | |
36 'src/AppKit/GTMNSAnimation+Duration.m', | |
37 'src/AppKit/GTMNSBezierPath+CGPath.h', | |
38 'src/AppKit/GTMNSBezierPath+CGPath.m', | |
39 'src/AppKit/GTMNSBezierPath+RoundRect.h', | |
40 'src/AppKit/GTMNSBezierPath+RoundRect.m', | |
41 'src/AppKit/GTMNSColor+Luminance.h', | |
42 'src/AppKit/GTMNSColor+Luminance.m', | |
43 'src/AppKit/GTMUILocalizer.h', | |
44 'src/AppKit/GTMUILocalizer.m', | |
45 'src/AppKit/GTMUILocalizerAndLayoutTweaker.h', | |
46 'src/AppKit/GTMUILocalizerAndLayoutTweaker.m', | |
47 'src/DebugUtils/GTMDebugSelectorValidation.h', | |
48 'src/DebugUtils/GTMMethodCheck.h', | |
49 'src/DebugUtils/GTMMethodCheck.m', | |
50 'src/DebugUtils/GTMTypeCasting.h', | |
51 'src/Foundation/GTMLightweightProxy.h', | |
52 'src/Foundation/GTMLightweightProxy.m', | |
53 'src/Foundation/GTMLogger.h', | |
54 'src/Foundation/GTMLogger.m', | |
55 'src/Foundation/GTMNSDictionary+URLArguments.h', | |
56 'src/Foundation/GTMNSDictionary+URLArguments.m', | |
57 'src/Foundation/GTMNSString+URLArguments.h', | |
58 'src/Foundation/GTMNSString+URLArguments.m', | |
59 'src/Foundation/GTMServiceManagement.c', | |
60 'src/Foundation/GTMServiceManagement.h', | |
61 'src/Foundation/GTMStringEncoding.h', | |
62 'src/Foundation/GTMStringEncoding.m', | |
63 'src/GTMDefines.h', | |
64 'src/iPhone/GTMFadeTruncatingLabel.h', | |
65 'src/iPhone/GTMFadeTruncatingLabel.m', | |
66 'src/iPhone/GTMRoundedRectPath.h', | |
67 'src/iPhone/GTMRoundedRectPath.m', | |
68 'src/iPhone/GTMUIImage+Resize.h', | |
69 'src/iPhone/GTMUIImage+Resize.m', | |
70 'src/iPhone/GTMUILocalizer.h', | |
71 'src/iPhone/GTMUILocalizer.m', | |
72 ], | |
73 'conditions': [ | |
74 ['component=="shared_library"', | |
75 { | |
76 # GTM is third-party code, so we don't want to add _EXPORT | |
77 # annotations to it, so build it without -fvisibility=hidden | |
78 # (else the interface class symbols will be hidden in a 64bit | |
79 # build). Only do this in a component build, so that the shipping | |
80 # chrome binary doesn't end up with unnecessarily exported | |
81 # symbols. | |
82 'xcode_settings': { | |
83 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', | |
84 }, | |
85 } | |
86 ], | |
87 ['OS!="ios"', { | |
88 'sources/': [ | |
89 ['exclude', '^src/iPhone/'], | |
90 ['exclude', '^src/DebugUtils/GTMMethodCheck\\.m$'], | |
91 ['exclude', '^src/Foundation/GTMLogger\\.m$'], | |
92 ['exclude', '^src/Foundation/GTMNSDictionary\\+URLArguments\\.m$'], | |
93 ], | |
94 'link_settings': { | |
95 'libraries': [ | |
96 '$(SDKROOT)/System/Library/Frameworks/AddressBook.framework', | |
97 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | |
98 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | |
99 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', | |
100 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', | |
101 ], | |
102 }, | |
103 }, { # OS=="ios" | |
104 'sources/': [ | |
105 # Exclude everything except what's needed for iOS. | |
106 ['exclude', '\\.(c|m)$'], | |
107 ['include', '^src/DebugUtils/GTMMethodCheck\\.m$'], | |
108 ['include', '^src/Foundation/GTMLightweightProxy\\.m$'], | |
109 ['include', '^src/Foundation/GTMLogger\\.m$'], | |
110 ['include', '^src/Foundation/GTMNSDictionary\\+URLArguments\\.m$'], | |
111 ['include', '^src/Foundation/GTMNSString\\+URLArguments\\.m$'], | |
112 ['include', '^src/Foundation/GTMStringEncoding\\.m$'], | |
113 ['include', '^src/iPhone/'], | |
114 ], | |
115 # TODO(crbug.com/569158): Suppresses warnings that are treated as | |
116 # errors when minimum iOS version support is increased to iOS 9. This | |
117 # should be removed once all deprecation violations have been fixed. | |
118 'xcode_settings': { | |
119 'WARNING_CFLAGS': ['-Wno-deprecated-declarations'], | |
120 }, | |
121 }], | |
122 ], | |
123 }, | |
124 ], | |
125 } | |
OLD | NEW |