Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: third_party/google_toolbox_for_mac/BUILD.gn

Issue 2093543003: [Mac/iOS/GN] Remove bad -Wno-deprecated-declarations from //third_party/google_toolbox_for_mac publ… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-missing-objc-flags
Patch Set: remove unneeded config Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 config("google_toolbox_for_mac_config") { 5 config("google_toolbox_for_mac_public_config") {
6 include_dirs = [ 6 include_dirs = [
7 ".", 7 ".",
8 "src", 8 "src",
9 "src/AppKit", 9 "src/AppKit",
10 "src/DebugUtils", 10 "src/DebugUtils",
11 "src/Foundation", 11 "src/Foundation",
12 ] 12 ]
13
14 # TODO(crbug.com/569158): Suppresses warnings that are treated as errors
15 # when minimum iOS version support is increased to iOS 9 and up.
16 # This should be removed once all deprecation violations have been fixed.
17 cflags = [ "-Wno-deprecated-declarations" ]
18 } 13 }
19 14
20 component("google_toolbox_for_mac") { 15 component("google_toolbox_for_mac") {
21 sources = [ 16 sources = [
22 "src/DebugUtils/GTMMethodCheck.h", 17 "src/DebugUtils/GTMMethodCheck.h",
23 "src/DebugUtils/GTMMethodCheck.m", 18 "src/DebugUtils/GTMMethodCheck.m",
24 "src/Foundation/GTMLightweightProxy.h", 19 "src/Foundation/GTMLightweightProxy.h",
25 "src/Foundation/GTMLightweightProxy.m", 20 "src/Foundation/GTMLightweightProxy.m",
26 "src/Foundation/GTMLogger.h", 21 "src/Foundation/GTMLogger.h",
27 "src/Foundation/GTMLogger.m", 22 "src/Foundation/GTMLogger.m",
28 "src/Foundation/GTMNSDictionary+URLArguments.h", 23 "src/Foundation/GTMNSDictionary+URLArguments.h",
29 "src/Foundation/GTMNSDictionary+URLArguments.m", 24 "src/Foundation/GTMNSDictionary+URLArguments.m",
30 "src/Foundation/GTMNSObject+KeyValueObserving.h", 25 "src/Foundation/GTMNSObject+KeyValueObserving.h",
31 "src/Foundation/GTMNSObject+KeyValueObserving.m", 26 "src/Foundation/GTMNSObject+KeyValueObserving.m",
32 "src/Foundation/GTMNSString+HTML.h", 27 "src/Foundation/GTMNSString+HTML.h",
33 "src/Foundation/GTMNSString+HTML.m", 28 "src/Foundation/GTMNSString+HTML.m",
34 "src/Foundation/GTMNSString+URLArguments.h", 29 "src/Foundation/GTMNSString+URLArguments.h",
35 "src/Foundation/GTMNSString+URLArguments.m", 30 "src/Foundation/GTMNSString+URLArguments.m",
36 "src/Foundation/GTMRegex.h", 31 "src/Foundation/GTMRegex.h",
37 "src/Foundation/GTMRegex.m", 32 "src/Foundation/GTMRegex.m",
38 "src/Foundation/GTMStringEncoding.h", 33 "src/Foundation/GTMStringEncoding.h",
39 "src/Foundation/GTMStringEncoding.m", 34 "src/Foundation/GTMStringEncoding.m",
40 ] 35 ]
41 36
42 configs -= [ "//build/config/compiler:chromium_code" ] 37 configs -= [ "//build/config/compiler:chromium_code" ]
43 configs += [ 38 configs += [ "//build/config/compiler:no_chromium_code" ]
44 ":google_toolbox_for_mac_config", 39 public_configs = [ ":google_toolbox_for_mac_public_config" ]
45 "//build/config/compiler:no_chromium_code",
46 ]
47 public_configs = [ ":google_toolbox_for_mac_config" ]
48 40
49 if (!is_ios) { 41 if (!is_ios) {
50 sources += [ 42 sources += [
51 "src/AddressBook/GTMABAddressBook.h", 43 "src/AddressBook/GTMABAddressBook.h",
52 "src/AddressBook/GTMABAddressBook.m", 44 "src/AddressBook/GTMABAddressBook.m",
53 "src/AppKit/GTMCarbonEvent.h", 45 "src/AppKit/GTMCarbonEvent.h",
54 "src/AppKit/GTMCarbonEvent.m", 46 "src/AppKit/GTMCarbonEvent.m",
55 "src/AppKit/GTMDelegatingTableColumn.h", 47 "src/AppKit/GTMDelegatingTableColumn.h",
56 "src/AppKit/GTMDelegatingTableColumn.m", 48 "src/AppKit/GTMDelegatingTableColumn.m",
57 "src/AppKit/GTMFadeTruncatingTextFieldCell.h", 49 "src/AppKit/GTMFadeTruncatingTextFieldCell.h",
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 sources += [ 177 sources += [
186 "src/iPhone/GTMFadeTruncatingLabel.h", 178 "src/iPhone/GTMFadeTruncatingLabel.h",
187 "src/iPhone/GTMFadeTruncatingLabel.m", 179 "src/iPhone/GTMFadeTruncatingLabel.m",
188 "src/iPhone/GTMRoundedRectPath.h", 180 "src/iPhone/GTMRoundedRectPath.h",
189 "src/iPhone/GTMRoundedRectPath.m", 181 "src/iPhone/GTMRoundedRectPath.m",
190 "src/iPhone/GTMUIImage+Resize.h", 182 "src/iPhone/GTMUIImage+Resize.h",
191 "src/iPhone/GTMUIImage+Resize.m", 183 "src/iPhone/GTMUIImage+Resize.m",
192 "src/iPhone/GTMUILocalizer.h", 184 "src/iPhone/GTMUILocalizer.h",
193 "src/iPhone/GTMUILocalizer.m", 185 "src/iPhone/GTMUILocalizer.m",
194 ] 186 ]
187
188 # TODO(crbug.com/569158): Suppresses warnings that are treated as errors
189 # when minimum iOS version support is increased to iOS 9 and up.
190 # This should be removed once all deprecation violations have been fixed.
191 cflags = [ "-Wno-deprecated-declarations" ]
Nico 2016/06/24 19:17:40 oh, fyi, in general putting -Wno-foo flags in cfla
Robert Sesek 2016/06/24 19:59:25 Hm. It is necessary on iOS and not on Mac (see ps1
195 } 192 }
196 193
197 if (is_component_build) { 194 if (is_component_build) {
198 # GTM is third-party code, so we don't want to add _EXPORT 195 # GTM is third-party code, so we don't want to add _EXPORT
199 # annotations to it, so build it without -fvisibility=hidden 196 # annotations to it, so build it without -fvisibility=hidden
200 # (else the interface class symbols will be hidden in a 64bit 197 # (else the interface class symbols will be hidden in a 64bit
201 # build). Only do this in a component build, so that the shipping 198 # build). Only do this in a component build, so that the shipping
202 # chrome binary doesn't end up with unnecessarily exported 199 # chrome binary doesn't end up with unnecessarily exported
203 # symbols. 200 # symbols.
204 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] 201 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
205 configs += [ "//build/config/gcc:symbol_visibility_default" ] 202 configs += [ "//build/config/gcc:symbol_visibility_default" ]
206 } 203 }
207 } 204 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698