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 # HOW TO WRITE CONDITIONALS IN THIS FILE | 5 # HOW TO WRITE CONDITIONALS IN THIS FILE |
6 # ====================================== | 6 # ====================================== |
7 # | 7 # |
8 # In many other places, one would write a conditional that expresses all the | 8 # In many other places, one would write a conditional that expresses all the |
9 # cases when a source file is used or unused, and then either add or subtract | 9 # cases when a source file is used or unused, and then either add or subtract |
10 # it from the sources list in that case | 10 # it from the sources list in that case |
11 # | 11 # |
12 # Since base includes so many low-level things that vary widely and | 12 # Since base includes so many low-level things that vary widely and |
13 # unpredictably for the various build types, we prefer a slightly different | 13 # unpredictably for the various build types, we prefer a slightly different |
14 # style. Instead, there are big per-platform blocks of inclusions and | 14 # style. Instead, there are big per-platform blocks of inclusions and |
15 # exclusions. If a given file has an inclusion or exclusion rule that applies | 15 # exclusions. If a given file has an inclusion or exclusion rule that applies |
16 # for multiple conditions, perfer to duplicate it in both lists. This makes it | 16 # for multiple conditions, perfer to duplicate it in both lists. This makes it |
17 # a bit easier to see which files apply in which cases rather than having a | 17 # a bit easier to see which files apply in which cases rather than having a |
18 # huge sequence of random-looking conditionals. | 18 # huge sequence of random-looking conditionals. |
19 | 19 |
20 import("//build/buildflag_header.gni") | 20 import("//build/buildflag_header.gni") |
21 import("//build/config/compiler/compiler.gni") | 21 import("//build/config/compiler/compiler.gni") |
22 import("//build/config/nacl/config.gni") | 22 import("//build/config/nacl/config.gni") |
| 23 import("//build/config/sysroot.gni") |
23 import("//build/config/ui.gni") | 24 import("//build/config/ui.gni") |
24 import("//build/nocompile.gni") | 25 import("//build/nocompile.gni") |
25 import("//testing/test.gni") | 26 import("//testing/test.gni") |
26 | 27 |
27 declare_args() { | 28 declare_args() { |
28 # Override this value to give a specific build date. | 29 # Override this value to give a specific build date. |
29 # See //base/build_time.cc for more details. | 30 # See //base/build_time.cc for more details. |
30 override_build_date = "N/A" | 31 override_build_date = "N/A" |
31 } | 32 } |
32 | 33 |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 "//third_party/modp_b64", | 974 "//third_party/modp_b64", |
974 ] | 975 ] |
975 | 976 |
976 public_deps = [ | 977 public_deps = [ |
977 ":base_paths", | 978 ":base_paths", |
978 ":base_static", | 979 ":base_static", |
979 ":build_date", | 980 ":build_date", |
980 ":debugging_flags", | 981 ":debugging_flags", |
981 ] | 982 ] |
982 | 983 |
| 984 # Needed for <atomic> if using newer C++ library than sysroot |
| 985 if (!use_sysroot && (is_android || is_linux)) { |
| 986 libs = [ "atomic" ] |
| 987 } |
| 988 |
983 # Allow more direct string conversions on platforms with native utf8 | 989 # Allow more direct string conversions on platforms with native utf8 |
984 # strings | 990 # strings |
985 if (is_mac || is_ios || is_chromeos) { | 991 if (is_mac || is_ios || is_chromeos) { |
986 defines += [ "SYSTEM_NATIVE_UTF8" ] | 992 defines += [ "SYSTEM_NATIVE_UTF8" ] |
987 } | 993 } |
988 | 994 |
989 # Android. | 995 # Android. |
990 if (is_android) { | 996 if (is_android) { |
991 sources -= [ | 997 sources -= [ |
992 "debug/stack_trace_posix.cc", | 998 "debug/stack_trace_posix.cc", |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2082 | 2088 |
2083 # GYP: //base.gyp:base_java_unittest_support | 2089 # GYP: //base.gyp:base_java_unittest_support |
2084 android_library("base_java_unittest_support") { | 2090 android_library("base_java_unittest_support") { |
2085 deps = [ | 2091 deps = [ |
2086 ":base_java", | 2092 ":base_java", |
2087 ] | 2093 ] |
2088 java_files = | 2094 java_files = |
2089 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 2095 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
2090 } | 2096 } |
2091 } | 2097 } |
OLD | NEW |