| 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 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 # Override this value to give a specific build date. | 33 # Override this value to give a specific build date. |
| 34 # See //base/build_time.cc and //build/write_build_date_header.py for more | 34 # See //base/build_time.cc and //build/write_build_date_header.py for more |
| 35 # details and the expected format. | 35 # details and the expected format. |
| 36 override_build_date = "N/A" | 36 override_build_date = "N/A" |
| 37 } | 37 } |
| 38 | 38 |
| 39 if (is_android) { | 39 if (is_android) { |
| 40 import("//build/config/android/rules.gni") | 40 import("//build/config/android/rules.gni") |
| 41 } | 41 } |
| 42 | 42 |
| 43 if (is_win) { | |
| 44 import("//build/config/win/visual_studio_version.gni") | |
| 45 } | |
| 46 | |
| 47 config("base_flags") { | 43 config("base_flags") { |
| 48 if (is_clang) { | 44 if (is_clang) { |
| 49 cflags = [ | 45 cflags = [ |
| 50 # Don't die on dtoa code that uses a char as an array index. | 46 # Don't die on dtoa code that uses a char as an array index. |
| 51 # This is required solely for base/third_party/dmg_fp/dtoa_wrapper.cc. | 47 # This is required solely for base/third_party/dmg_fp/dtoa_wrapper.cc. |
| 52 "-Wno-char-subscripts", | 48 "-Wno-char-subscripts", |
| 53 ] | 49 ] |
| 54 } | 50 } |
| 55 } | 51 } |
| 56 | 52 |
| (...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1214 # preinstalled on the target machine. The debug runtimes have a "d" at | 1210 # preinstalled on the target machine. The debug runtimes have a "d" at |
| 1215 # the end. | 1211 # the end. |
| 1216 if (is_debug) { | 1212 if (is_debug) { |
| 1217 vcrt_suffix = "d" | 1213 vcrt_suffix = "d" |
| 1218 } else { | 1214 } else { |
| 1219 vcrt_suffix = "" | 1215 vcrt_suffix = "" |
| 1220 } | 1216 } |
| 1221 | 1217 |
| 1222 # These runtime files are copied to the output directory by the | 1218 # These runtime files are copied to the output directory by the |
| 1223 # vs_toolchain script that runs as part of toolchain configuration. | 1219 # vs_toolchain script that runs as part of toolchain configuration. |
| 1224 if (visual_studio_version == "2015") { | 1220 data += [ |
| 1225 data += [ | 1221 "$root_out_dir/msvcp140${vcrt_suffix}.dll", |
| 1226 "$root_out_dir/msvcp140${vcrt_suffix}.dll", | 1222 "$root_out_dir/vccorlib140${vcrt_suffix}.dll", |
| 1227 "$root_out_dir/vccorlib140${vcrt_suffix}.dll", | 1223 "$root_out_dir/vcruntime140${vcrt_suffix}.dll", |
| 1228 "$root_out_dir/vcruntime140${vcrt_suffix}.dll", | |
| 1229 | 1224 |
| 1230 # Universal Windows 10 CRT files | 1225 # Universal Windows 10 CRT files |
| 1231 "$root_out_dir/api-ms-win-core-console-l1-1-0.dll", | 1226 "$root_out_dir/api-ms-win-core-console-l1-1-0.dll", |
| 1232 "$root_out_dir/api-ms-win-core-datetime-l1-1-0.dll", | 1227 "$root_out_dir/api-ms-win-core-datetime-l1-1-0.dll", |
| 1233 "$root_out_dir/api-ms-win-core-debug-l1-1-0.dll", | 1228 "$root_out_dir/api-ms-win-core-debug-l1-1-0.dll", |
| 1234 "$root_out_dir/api-ms-win-core-errorhandling-l1-1-0.dll", | 1229 "$root_out_dir/api-ms-win-core-errorhandling-l1-1-0.dll", |
| 1235 "$root_out_dir/api-ms-win-core-file-l1-1-0.dll", | 1230 "$root_out_dir/api-ms-win-core-file-l1-1-0.dll", |
| 1236 "$root_out_dir/api-ms-win-core-file-l1-2-0.dll", | 1231 "$root_out_dir/api-ms-win-core-file-l1-2-0.dll", |
| 1237 "$root_out_dir/api-ms-win-core-file-l2-1-0.dll", | 1232 "$root_out_dir/api-ms-win-core-file-l2-1-0.dll", |
| 1238 "$root_out_dir/api-ms-win-core-handle-l1-1-0.dll", | 1233 "$root_out_dir/api-ms-win-core-handle-l1-1-0.dll", |
| 1239 "$root_out_dir/api-ms-win-core-heap-l1-1-0.dll", | 1234 "$root_out_dir/api-ms-win-core-heap-l1-1-0.dll", |
| 1240 "$root_out_dir/api-ms-win-core-interlocked-l1-1-0.dll", | 1235 "$root_out_dir/api-ms-win-core-interlocked-l1-1-0.dll", |
| 1241 "$root_out_dir/api-ms-win-core-libraryloader-l1-1-0.dll", | 1236 "$root_out_dir/api-ms-win-core-libraryloader-l1-1-0.dll", |
| 1242 "$root_out_dir/api-ms-win-core-localization-l1-2-0.dll", | 1237 "$root_out_dir/api-ms-win-core-localization-l1-2-0.dll", |
| 1243 "$root_out_dir/api-ms-win-core-memory-l1-1-0.dll", | 1238 "$root_out_dir/api-ms-win-core-memory-l1-1-0.dll", |
| 1244 "$root_out_dir/api-ms-win-core-namedpipe-l1-1-0.dll", | 1239 "$root_out_dir/api-ms-win-core-namedpipe-l1-1-0.dll", |
| 1245 "$root_out_dir/api-ms-win-core-processenvironment-l1-1-0.dll", | 1240 "$root_out_dir/api-ms-win-core-processenvironment-l1-1-0.dll", |
| 1246 "$root_out_dir/api-ms-win-core-processthreads-l1-1-0.dll", | 1241 "$root_out_dir/api-ms-win-core-processthreads-l1-1-0.dll", |
| 1247 "$root_out_dir/api-ms-win-core-processthreads-l1-1-1.dll", | 1242 "$root_out_dir/api-ms-win-core-processthreads-l1-1-1.dll", |
| 1248 "$root_out_dir/api-ms-win-core-profile-l1-1-0.dll", | 1243 "$root_out_dir/api-ms-win-core-profile-l1-1-0.dll", |
| 1249 "$root_out_dir/api-ms-win-core-rtlsupport-l1-1-0.dll", | 1244 "$root_out_dir/api-ms-win-core-rtlsupport-l1-1-0.dll", |
| 1250 "$root_out_dir/api-ms-win-core-string-l1-1-0.dll", | 1245 "$root_out_dir/api-ms-win-core-string-l1-1-0.dll", |
| 1251 "$root_out_dir/api-ms-win-core-synch-l1-1-0.dll", | 1246 "$root_out_dir/api-ms-win-core-synch-l1-1-0.dll", |
| 1252 "$root_out_dir/api-ms-win-core-synch-l1-2-0.dll", | 1247 "$root_out_dir/api-ms-win-core-synch-l1-2-0.dll", |
| 1253 "$root_out_dir/api-ms-win-core-sysinfo-l1-1-0.dll", | 1248 "$root_out_dir/api-ms-win-core-sysinfo-l1-1-0.dll", |
| 1254 "$root_out_dir/api-ms-win-core-timezone-l1-1-0.dll", | 1249 "$root_out_dir/api-ms-win-core-timezone-l1-1-0.dll", |
| 1255 "$root_out_dir/api-ms-win-core-util-l1-1-0.dll", | 1250 "$root_out_dir/api-ms-win-core-util-l1-1-0.dll", |
| 1256 "$root_out_dir/api-ms-win-crt-conio-l1-1-0.dll", | 1251 "$root_out_dir/api-ms-win-crt-conio-l1-1-0.dll", |
| 1257 "$root_out_dir/api-ms-win-crt-convert-l1-1-0.dll", | 1252 "$root_out_dir/api-ms-win-crt-convert-l1-1-0.dll", |
| 1258 "$root_out_dir/api-ms-win-crt-environment-l1-1-0.dll", | 1253 "$root_out_dir/api-ms-win-crt-environment-l1-1-0.dll", |
| 1259 "$root_out_dir/api-ms-win-crt-filesystem-l1-1-0.dll", | 1254 "$root_out_dir/api-ms-win-crt-filesystem-l1-1-0.dll", |
| 1260 "$root_out_dir/api-ms-win-crt-heap-l1-1-0.dll", | 1255 "$root_out_dir/api-ms-win-crt-heap-l1-1-0.dll", |
| 1261 "$root_out_dir/api-ms-win-crt-locale-l1-1-0.dll", | 1256 "$root_out_dir/api-ms-win-crt-locale-l1-1-0.dll", |
| 1262 "$root_out_dir/api-ms-win-crt-math-l1-1-0.dll", | 1257 "$root_out_dir/api-ms-win-crt-math-l1-1-0.dll", |
| 1263 "$root_out_dir/api-ms-win-crt-multibyte-l1-1-0.dll", | 1258 "$root_out_dir/api-ms-win-crt-multibyte-l1-1-0.dll", |
| 1264 "$root_out_dir/api-ms-win-crt-private-l1-1-0.dll", | 1259 "$root_out_dir/api-ms-win-crt-private-l1-1-0.dll", |
| 1265 "$root_out_dir/api-ms-win-crt-process-l1-1-0.dll", | 1260 "$root_out_dir/api-ms-win-crt-process-l1-1-0.dll", |
| 1266 "$root_out_dir/api-ms-win-crt-runtime-l1-1-0.dll", | 1261 "$root_out_dir/api-ms-win-crt-runtime-l1-1-0.dll", |
| 1267 "$root_out_dir/api-ms-win-crt-stdio-l1-1-0.dll", | 1262 "$root_out_dir/api-ms-win-crt-stdio-l1-1-0.dll", |
| 1268 "$root_out_dir/api-ms-win-crt-string-l1-1-0.dll", | 1263 "$root_out_dir/api-ms-win-crt-string-l1-1-0.dll", |
| 1269 "$root_out_dir/api-ms-win-crt-time-l1-1-0.dll", | 1264 "$root_out_dir/api-ms-win-crt-time-l1-1-0.dll", |
| 1270 "$root_out_dir/api-ms-win-crt-utility-l1-1-0.dll", | 1265 "$root_out_dir/api-ms-win-crt-utility-l1-1-0.dll", |
| 1271 "$root_out_dir/ucrtbase${vcrt_suffix}.dll", | 1266 "$root_out_dir/ucrtbase${vcrt_suffix}.dll", |
| 1272 ] | 1267 ] |
| 1273 } else { | |
| 1274 data += [ | |
| 1275 "$root_out_dir/msvcp120${vcrt_suffix}.dll", | |
| 1276 "$root_out_dir/msvcr120${vcrt_suffix}.dll", | |
| 1277 ] | |
| 1278 } | |
| 1279 if (is_asan) { | 1268 if (is_asan) { |
| 1280 if (current_cpu == "x64") { | 1269 if (current_cpu == "x64") { |
| 1281 data += [ "$clang_base_path/lib/clang/$clang_version/lib/windows/clang
_rt.asan_dynamic-x86_64.dll" ] | 1270 data += [ "$clang_base_path/lib/clang/$clang_version/lib/windows/clang
_rt.asan_dynamic-x86_64.dll" ] |
| 1282 } else { | 1271 } else { |
| 1283 data += [ "$clang_base_path/lib/clang/$clang_version/lib/windows/clang
_rt.asan_dynamic-i386.dll" ] | 1272 data += [ "$clang_base_path/lib/clang/$clang_version/lib/windows/clang
_rt.asan_dynamic-i386.dll" ] |
| 1284 } | 1273 } |
| 1285 } | 1274 } |
| 1286 } | 1275 } |
| 1287 | 1276 |
| 1288 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1277 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| (...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2456 testonly = true | 2445 testonly = true |
| 2457 deps = [ | 2446 deps = [ |
| 2458 ":base_java", | 2447 ":base_java", |
| 2459 ] | 2448 ] |
| 2460 java_files = [ | 2449 java_files = [ |
| 2461 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java", | 2450 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java", |
| 2462 "test/android/java/src/org/chromium/base/TestSystemMessageHandler.java", | 2451 "test/android/java/src/org/chromium/base/TestSystemMessageHandler.java", |
| 2463 ] | 2452 ] |
| 2464 } | 2453 } |
| 2465 } | 2454 } |
| OLD | NEW |