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 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 if (is_posix) { | 9 if (is_posix) { |
10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 } | 553 } |
554 config("no_chromium_code") { | 554 config("no_chromium_code") { |
555 cflags = [] | 555 cflags = [] |
556 cflags_cc = [] | 556 cflags_cc = [] |
557 defines = [] | 557 defines = [] |
558 | 558 |
559 if (is_win) { | 559 if (is_win) { |
560 cflags += [ | 560 cflags += [ |
561 "/W3", # Warning level 3. | 561 "/W3", # Warning level 3. |
562 "/wd4800", # Disable warning when forcing value to bool. | 562 "/wd4800", # Disable warning when forcing value to bool. |
| 563 "/wd4267", # TODO(jschuh): size_t to int. |
563 ] | 564 ] |
564 defines += [ | 565 defines += [ |
565 "_CRT_NONSTDC_NO_WARNINGS", | 566 "_CRT_NONSTDC_NO_WARNINGS", |
566 "_CRT_NONSTDC_NO_DEPRECATE", | 567 "_CRT_NONSTDC_NO_DEPRECATE", |
567 ] | 568 ] |
568 } | 569 } |
569 | 570 |
570 if (is_linux) { | 571 if (is_linux) { |
571 # Don't warn about ignoring the return value from e.g. close(). This is | 572 # Don't warn about ignoring the return value from e.g. close(). This is |
572 # off by default in some gccs but on by default in others. BSD systems do | 573 # off by default in some gccs but on by default in others. BSD systems do |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 cflags += [ "-gsplit-dwarf" ] | 958 cflags += [ "-gsplit-dwarf" ] |
958 } | 959 } |
959 } | 960 } |
960 } | 961 } |
961 | 962 |
962 config("no_symbols") { | 963 config("no_symbols") { |
963 if (!is_win) { | 964 if (!is_win) { |
964 cflags = [ "-g0" ] | 965 cflags = [ "-g0" ] |
965 } | 966 } |
966 } | 967 } |
OLD | NEW |