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

Side by Side Diff: build/config/BUILD.gn

Issue 766573003: gn format //build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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 | « build/compiled_action.gni ('k') | build/config/BUILDCONFIG.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 import("//build/config/allocator.gni") 5 import("//build/config/allocator.gni")
6 import("//build/config/crypto.gni") 6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 9
10 declare_args() { 10 declare_args() {
(...skipping 12 matching lines...) Expand all
23 # TODO(brettw) Most of these should be removed. Instead of global feature 23 # TODO(brettw) Most of these should be removed. Instead of global feature
24 # flags, we should have more modular flags that apply only to a target and its 24 # flags, we should have more modular flags that apply only to a target and its
25 # dependents. For example, depending on the "x11" meta-target should define 25 # dependents. For example, depending on the "x11" meta-target should define
26 # USE_X11 for all dependents so that everything that could use X11 gets the 26 # USE_X11 for all dependents so that everything that could use X11 gets the
27 # define, but anything that doesn't depend on X11 doesn't see it. 27 # define, but anything that doesn't depend on X11 doesn't see it.
28 # 28 #
29 # For now we define these globally to match the current GYP build. 29 # For now we define these globally to match the current GYP build.
30 config("feature_flags") { 30 config("feature_flags") {
31 # TODO(brettw) most of these need to be parameterized. 31 # TODO(brettw) most of these need to be parameterized.
32 defines = [ 32 defines = [
33 "CHROMIUM_BUILD", 33 "CHROMIUM_BUILD",
34 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere. 34 "V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere.
35 ] 35 ]
36 36
37 if (cld_version > 0) { 37 if (cld_version > 0) {
38 defines += [ "CLD_VERSION=$cld_version" ] 38 defines += [ "CLD_VERSION=$cld_version" ]
39 } 39 }
40 if (enable_mdns) { 40 if (enable_mdns) {
41 defines += [ "ENABLE_MDNS=1" ] 41 defines += [ "ENABLE_MDNS=1" ]
42 } 42 }
43 if (enable_notifications) { 43 if (enable_notifications) {
44 defines += [ "ENABLE_NOTIFICATIONS" ] 44 defines += [ "ENABLE_NOTIFICATIONS" ]
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } else if (is_linux && !is_android && cpu_arch == "x64" && 227 } else if (is_linux && !is_android && cpu_arch == "x64" &&
228 !disable_iterator_debugging) { 228 !disable_iterator_debugging) {
229 # Enable libstdc++ debugging facilities to help catch problems early, see 229 # Enable libstdc++ debugging facilities to help catch problems early, see
230 # http://crbug.com/65151 . 230 # http://crbug.com/65151 .
231 # TODO(phajdan.jr): Should we enable this for all of POSIX? 231 # TODO(phajdan.jr): Should we enable this for all of POSIX?
232 defines += [ "_GLIBCXX_DEBUG=1" ] 232 defines += [ "_GLIBCXX_DEBUG=1" ]
233 } 233 }
234 } 234 }
235 235
236 config("release") { 236 config("release") {
237 defines = [ 237 defines = [ "NDEBUG" ]
238 "NDEBUG",
239 ]
240 } 238 }
241 239
242 # Default libraries ------------------------------------------------------------ 240 # Default libraries ------------------------------------------------------------
243 241
244 # This config defines the default libraries applied to all targets. 242 # This config defines the default libraries applied to all targets.
245 config("default_libs") { 243 config("default_libs") {
246 if (is_win) { 244 if (is_win) {
247 # TODO(brettw) this list of defaults should probably be smaller, and 245 # TODO(brettw) this list of defaults should probably be smaller, and
248 # instead the targets that use the less common ones (e.g. wininet or 246 # instead the targets that use the less common ones (e.g. wininet or
249 # winspool) should include those explicitly. 247 # winspool) should include those explicitly.
(...skipping 14 matching lines...) Expand all
264 "shell32.lib", 262 "shell32.lib",
265 "shlwapi.lib", 263 "shlwapi.lib",
266 "user32.lib", 264 "user32.lib",
267 "usp10.lib", 265 "usp10.lib",
268 "uuid.lib", 266 "uuid.lib",
269 "version.lib", 267 "version.lib",
270 "wininet.lib", 268 "wininet.lib",
271 "winmm.lib", 269 "winmm.lib",
272 "winspool.lib", 270 "winspool.lib",
273 "ws2_32.lib", 271 "ws2_32.lib",
272
274 # Please don't add more stuff here. We should actually be making this 273 # Please don't add more stuff here. We should actually be making this
275 # list smaller, since all common things should be covered. If you need 274 # list smaller, since all common things should be covered. If you need
276 # some extra libraries, please just add a libs = [ "foo.lib" ] to your 275 # some extra libraries, please just add a libs = [ "foo.lib" ] to your
277 # target that needs it. 276 # target that needs it.
278 ] 277 ]
279 } else if (is_android) { 278 } else if (is_android) {
280 # Android uses -nostdlib so we need to add even libc here. 279 # Android uses -nostdlib so we need to add even libc here.
281 libs = [ 280 libs = [
282 # TODO(brettw) write a version of this, hopefully we can express this 281 # TODO(brettw) write a version of this, hopefully we can express this
283 # without forking out to GCC just to get the library name. The android 282 # without forking out to GCC just to get the library name. The android
284 # toolchain directory should probably be extracted into a .gni file that 283 # toolchain directory should probably be extracted into a .gni file that
285 # this file and the android toolchain .gn file can share. 284 # this file and the android toolchain .gn file can share.
286 # # Manually link the libgcc.a that the cross compiler uses. 285 # # Manually link the libgcc.a that the cross compiler uses.
287 # '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', 286 # '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)',
288 "c", 287 "c",
289 "dl", 288 "dl",
290 "m" 289 "m",
291 ] 290 ]
292 } else if (is_mac) { 291 } else if (is_mac) {
293 libs = [ 292 libs = [
294 "AppKit.framework", 293 "AppKit.framework",
295 "ApplicationServices.framework", 294 "ApplicationServices.framework",
296 "Carbon.framework", 295 "Carbon.framework",
297 "CoreFoundation.framework", 296 "CoreFoundation.framework",
298 "Foundation.framework", 297 "Foundation.framework",
299 "IOKit.framework", 298 "IOKit.framework",
300 "Security.framework", 299 "Security.framework",
301 ] 300 ]
302 } else if (is_ios) { 301 } else if (is_ios) {
303 libs = [ 302 libs = [
304 "CoreFoundation.framework", 303 "CoreFoundation.framework",
305 "CoreGraphics.framework", 304 "CoreGraphics.framework",
306 "CoreText.framework", 305 "CoreText.framework",
307 "Foundation.framework", 306 "Foundation.framework",
308 "UIKit.framework", 307 "UIKit.framework",
309 ] 308 ]
310 } else if (is_linux) { 309 } else if (is_linux) {
311 libs = [ 310 libs = [ "dl" ]
312 "dl",
313 ]
314 } 311 }
315 } 312 }
OLDNEW
« no previous file with comments | « build/compiled_action.gni ('k') | build/config/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698