OLD | NEW |
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/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
7 if (cpu_arch == "arm") { | 7 if (cpu_arch == "arm") { |
8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 # In Chromium code, we define __STDC_foo_MACROS in order to get the | 413 # In Chromium code, we define __STDC_foo_MACROS in order to get the |
414 # C99 macros on Mac and Linux. | 414 # C99 macros on Mac and Linux. |
415 defines = [ | 415 defines = [ |
416 "__STDC_CONSTANT_MACROS", | 416 "__STDC_CONSTANT_MACROS", |
417 "__STDC_FORMAT_MACROS", | 417 "__STDC_FORMAT_MACROS", |
418 ] | 418 ] |
419 | 419 |
420 # TODO(brettw) this should also be enabled on Linux but some files | 420 # TODO(brettw) this should also be enabled on Linux but some files |
421 # currently fail. | 421 # currently fail. |
422 if (is_mac) { | 422 if (is_mac) { |
423 cflags += "-Wextra" | 423 cflags += [ "-Wextra" ] |
424 } | 424 } |
425 } | 425 } |
426 } | 426 } |
427 config("no_chromium_code") { | 427 config("no_chromium_code") { |
428 if (is_win) { | 428 if (is_win) { |
429 cflags = [ | 429 cflags = [ |
430 "/W3", # Warning level 3. | 430 "/W3", # Warning level 3. |
431 "/wd4800", # Disable warning when forcing value to bool. | 431 "/wd4800", # Disable warning when forcing value to bool. |
432 ] | 432 ] |
433 defines = [ | 433 defines = [ |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 cflags = [ "-g1" ] | 681 cflags = [ "-g1" ] |
682 } | 682 } |
683 } | 683 } |
684 | 684 |
685 config("no_symbols") { | 685 config("no_symbols") { |
686 if (!is_win) { | 686 if (!is_win) { |
687 cflags = [ "-g0" ] | 687 cflags = [ "-g0" ] |
688 } | 688 } |
689 } | 689 } |
690 | 690 |
OLD | NEW |