| 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") |
| 11 } | 11 } |
| 12 | 12 |
| 13 declare_args() { | 13 declare_args() { |
| 14 # Normally, Android builds are lightly optimized, even for debug builds, to | 14 # Normally, Android builds are lightly optimized, even for debug builds, to |
| 15 # keep binary size down. Setting this flag to true disables such optimization | 15 # keep binary size down. Setting this flag to true disables such optimization |
| 16 android_full_debug = false | 16 android_full_debug = false |
| 17 } | 17 } |
| 18 | 18 |
| 19 # default_include_dirs --------------------------------------------------------- |
| 20 # |
| 21 # This is a separate config so that third_party code (which would not use the |
| 22 # source root and might have conflicting versions of some headers) can remove |
| 23 # this and specify their own include paths. |
| 24 config("default_include_dirs") { |
| 25 include_dirs = [ |
| 26 "//", |
| 27 root_gen_dir, |
| 28 ] |
| 29 } |
| 30 |
| 19 # compiler --------------------------------------------------------------------- | 31 # compiler --------------------------------------------------------------------- |
| 20 # | 32 # |
| 21 # Base compiler configuration. | 33 # Base compiler configuration. |
| 22 # | 34 # |
| 23 # See also "runtime_library" below for related stuff and a discusison about | 35 # See also "runtime_library" below for related stuff and a discusison about |
| 24 # where stuff should go. Put warning related stuff in the "warnings" config. | 36 # where stuff should go. Put warning related stuff in the "warnings" config. |
| 25 | 37 |
| 26 config("compiler") { | 38 config("compiler") { |
| 27 cflags = [] | 39 cflags = [] |
| 28 cflags_c = [] | 40 cflags_c = [] |
| 29 cflags_cc = [] | 41 cflags_cc = [] |
| 30 ldflags = [] | 42 ldflags = [] |
| 31 defines = [] | 43 defines = [] |
| 32 include_dirs = [] | |
| 33 | |
| 34 include_dirs += [ "//", root_gen_dir ] | |
| 35 | 44 |
| 36 # In general, Windows is totally different, but all the other builds share | 45 # In general, Windows is totally different, but all the other builds share |
| 37 # some common GCC configuration. This section sets up Windows and the common | 46 # some common GCC configuration. This section sets up Windows and the common |
| 38 # GCC flags, and then we handle the other non-Windows platforms specifically | 47 # GCC flags, and then we handle the other non-Windows platforms specifically |
| 39 # below. | 48 # below. |
| 40 if (is_win) { | 49 if (is_win) { |
| 41 # Windows compiler flags setup. | 50 # Windows compiler flags setup. |
| 42 # ----------------------------- | 51 # ----------------------------- |
| 43 cflags += [ | 52 cflags += [ |
| 44 "/Gy", # Enable function-level linking. | 53 "/Gy", # Enable function-level linking. |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 } else { | 840 } else { |
| 832 cflags = [ "-g1" ] | 841 cflags = [ "-g1" ] |
| 833 } | 842 } |
| 834 } | 843 } |
| 835 | 844 |
| 836 config("no_symbols") { | 845 config("no_symbols") { |
| 837 if (!is_win) { | 846 if (!is_win) { |
| 838 cflags = [ "-g0" ] | 847 cflags = [ "-g0" ] |
| 839 } | 848 } |
| 840 } | 849 } |
| OLD | NEW |