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

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

Issue 1422333008: Remove Windows-related GN build configuration (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Review feedback addressed Created 5 years, 1 month 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 | « no previous file | 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/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//build/module_args/v8.gni") 10 import("//build/module_args/v8.gni")
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 defines = [ 280 defines = [
281 "_DEBUG", 281 "_DEBUG",
282 "DYNAMIC_ANNOTATIONS_ENABLED=1", 282 "DYNAMIC_ANNOTATIONS_ENABLED=1",
283 "WTF_USE_DYNAMIC_ANNOTATIONS=1", 283 "WTF_USE_DYNAMIC_ANNOTATIONS=1",
284 ] 284 ]
285 285
286 if (is_nacl) { 286 if (is_nacl) {
287 defines += [ "DYNAMIC_ANNOTATIONS_PREFIX=NACL_" ] 287 defines += [ "DYNAMIC_ANNOTATIONS_PREFIX=NACL_" ]
288 } 288 }
289 289
290 if (is_win) { 290 if (is_linux && !is_android && current_cpu == "x64" &&
291 if (disable_iterator_debugging) { 291 !disable_iterator_debugging) {
292 # Iterator debugging is enabled by the compiler on debug builds, and we
293 # have to tell it to turn it off.
294 defines += [ "_HAS_ITERATOR_DEBUGGING=0" ]
295 }
296 } else if (is_linux && !is_android && current_cpu == "x64" &&
297 !disable_iterator_debugging) {
298 # Enable libstdc++ debugging facilities to help catch problems early, see 292 # Enable libstdc++ debugging facilities to help catch problems early, see
299 # http://crbug.com/65151 . 293 # http://crbug.com/65151 .
300 # TODO(phajdan.jr): Should we enable this for all of POSIX? 294 # TODO(phajdan.jr): Should we enable this for all of POSIX?
301 defines += [ "_GLIBCXX_DEBUG=1" ] 295 defines += [ "_GLIBCXX_DEBUG=1" ]
302 } 296 }
303 } 297 }
304 298
305 config("release") { 299 config("release") {
306 defines = [ "NDEBUG" ] 300 defines = [ "NDEBUG" ]
307 301
(...skipping 12 matching lines...) Expand all
320 # 1 for all .nexes. 314 # 1 for all .nexes.
321 defines += [ "DYNAMIC_ANNOTATIONS_ENABLED=0" ] 315 defines += [ "DYNAMIC_ANNOTATIONS_ENABLED=0" ]
322 } 316 }
323 } 317 }
324 } 318 }
325 319
326 # Default libraries ------------------------------------------------------------ 320 # Default libraries ------------------------------------------------------------
327 321
328 # This config defines the default libraries applied to all targets. 322 # This config defines the default libraries applied to all targets.
329 config("default_libs") { 323 config("default_libs") {
330 if (is_win) { 324 if (is_android) {
331 # TODO(brettw) this list of defaults should probably be smaller, and
332 # instead the targets that use the less common ones (e.g. wininet or
333 # winspool) should include those explicitly.
334 libs = [
335 "advapi32.lib",
336 "comdlg32.lib",
337 "dbghelp.lib",
338 "delayimp.lib",
339 "dnsapi.lib",
340 "gdi32.lib",
341 "kernel32.lib",
342 "msimg32.lib",
343 "odbc32.lib",
344 "odbccp32.lib",
345 "ole32.lib",
346 "oleaut32.lib",
347 "psapi.lib",
348 "shell32.lib",
349 "shlwapi.lib",
350 "user32.lib",
351 "usp10.lib",
352 "uuid.lib",
353 "version.lib",
354 "wininet.lib",
355 "winmm.lib",
356 "winspool.lib",
357 "ws2_32.lib",
358
359 # Please don't add more stuff here. We should actually be making this
360 # list smaller, since all common things should be covered. If you need
361 # some extra libraries, please just add a libs = [ "foo.lib" ] to your
362 # target that needs it.
363 ]
364 } else if (is_android) {
365 # Android uses -nostdlib so we need to add even libc here. 325 # Android uses -nostdlib so we need to add even libc here.
366 libs = [ 326 libs = [
367 # TODO(brettw) write a version of this, hopefully we can express this 327 # TODO(brettw) write a version of this, hopefully we can express this
368 # without forking out to GCC just to get the library name. The android 328 # without forking out to GCC just to get the library name. The android
369 # toolchain directory should probably be extracted into a .gni file that 329 # toolchain directory should probably be extracted into a .gni file that
370 # this file and the android toolchain .gn file can share. 330 # this file and the android toolchain .gn file can share.
371 # # Manually link the libgcc.a that the cross compiler uses. 331 # # Manually link the libgcc.a that the cross compiler uses.
372 # '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', 332 # '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)',
373 "c", 333 "c",
374 "dl", 334 "dl",
(...skipping 14 matching lines...) Expand all
389 "CoreFoundation.framework", 349 "CoreFoundation.framework",
390 "CoreGraphics.framework", 350 "CoreGraphics.framework",
391 "CoreText.framework", 351 "CoreText.framework",
392 "Foundation.framework", 352 "Foundation.framework",
393 "UIKit.framework", 353 "UIKit.framework",
394 ] 354 ]
395 } else if (is_linux) { 355 } else if (is_linux) {
396 libs = [ "dl" ] 356 libs = [ "dl" ]
397 } 357 }
398 } 358 }
OLDNEW
« no previous file with comments | « no previous file | build/config/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698