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/compiler/compiler.gni") | 5 import("//build/config/compiler/compiler.gni") |
6 import("//build/config/nacl/config.gni") | 6 import("//build/config/nacl/config.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//build/nocompile.gni") |
8 import("//testing/test.gni") | 9 import("//testing/test.gni") |
9 | 10 |
10 if (is_android) { | 11 if (is_android) { |
11 import("//build/config/android/rules.gni") | 12 import("//build/config/android/rules.gni") |
12 } | 13 } |
13 | 14 |
14 config("base_flags") { | 15 config("base_flags") { |
15 if (is_clang) { | 16 if (is_clang) { |
16 cflags = [ | 17 cflags = [ |
17 # Don't die on dtoa code that uses a char as an array index. | 18 # Don't die on dtoa code that uses a char as an array index. |
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1266 "android/path_utils_unittest.cc", | 1267 "android/path_utils_unittest.cc", |
1267 "android/scoped_java_ref_unittest.cc", | 1268 "android/scoped_java_ref_unittest.cc", |
1268 "android/sys_utils_unittest.cc", | 1269 "android/sys_utils_unittest.cc", |
1269 "at_exit_unittest.cc", | 1270 "at_exit_unittest.cc", |
1270 "atomicops_unittest.cc", | 1271 "atomicops_unittest.cc", |
1271 "barrier_closure_unittest.cc", | 1272 "barrier_closure_unittest.cc", |
1272 "base64_unittest.cc", | 1273 "base64_unittest.cc", |
1273 "base64url_unittest.cc", | 1274 "base64url_unittest.cc", |
1274 "big_endian_unittest.cc", | 1275 "big_endian_unittest.cc", |
1275 "bind_unittest.cc", | 1276 "bind_unittest.cc", |
1276 "bind_unittest.nc", | |
1277 "bits_unittest.cc", | 1277 "bits_unittest.cc", |
1278 "build_time_unittest.cc", | 1278 "build_time_unittest.cc", |
1279 "callback_helpers_unittest.cc", | 1279 "callback_helpers_unittest.cc", |
1280 "callback_list_unittest.cc", | 1280 "callback_list_unittest.cc", |
1281 "callback_list_unittest.nc", | |
1282 "callback_unittest.cc", | 1281 "callback_unittest.cc", |
1283 "callback_unittest.nc", | |
1284 "cancelable_callback_unittest.cc", | 1282 "cancelable_callback_unittest.cc", |
1285 "command_line_unittest.cc", | 1283 "command_line_unittest.cc", |
1286 "containers/adapters_unittest.cc", | 1284 "containers/adapters_unittest.cc", |
1287 "containers/hash_tables_unittest.cc", | 1285 "containers/hash_tables_unittest.cc", |
1288 "containers/linked_list_unittest.cc", | 1286 "containers/linked_list_unittest.cc", |
1289 "containers/mru_cache_unittest.cc", | 1287 "containers/mru_cache_unittest.cc", |
1290 "containers/scoped_ptr_hash_map_unittest.cc", | 1288 "containers/scoped_ptr_hash_map_unittest.cc", |
1291 "containers/small_map_unittest.cc", | 1289 "containers/small_map_unittest.cc", |
1292 "containers/stack_container_unittest.cc", | 1290 "containers/stack_container_unittest.cc", |
1293 "cpu_unittest.cc", | 1291 "cpu_unittest.cc", |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 "md5_unittest.cc", | 1348 "md5_unittest.cc", |
1351 "memory/aligned_memory_unittest.cc", | 1349 "memory/aligned_memory_unittest.cc", |
1352 "memory/discardable_shared_memory_unittest.cc", | 1350 "memory/discardable_shared_memory_unittest.cc", |
1353 "memory/linked_ptr_unittest.cc", | 1351 "memory/linked_ptr_unittest.cc", |
1354 "memory/memory_pressure_monitor_chromeos_unittest.cc", | 1352 "memory/memory_pressure_monitor_chromeos_unittest.cc", |
1355 "memory/memory_pressure_monitor_win_unittest.cc", | 1353 "memory/memory_pressure_monitor_win_unittest.cc", |
1356 "memory/ptr_util_unittest.cc", | 1354 "memory/ptr_util_unittest.cc", |
1357 "memory/ref_counted_memory_unittest.cc", | 1355 "memory/ref_counted_memory_unittest.cc", |
1358 "memory/ref_counted_unittest.cc", | 1356 "memory/ref_counted_unittest.cc", |
1359 "memory/scoped_ptr_unittest.cc", | 1357 "memory/scoped_ptr_unittest.cc", |
1360 "memory/scoped_ptr_unittest.nc", | |
1361 "memory/scoped_vector_unittest.cc", | 1358 "memory/scoped_vector_unittest.cc", |
1362 "memory/shared_memory_mac_unittest.cc", | 1359 "memory/shared_memory_mac_unittest.cc", |
1363 "memory/shared_memory_unittest.cc", | 1360 "memory/shared_memory_unittest.cc", |
1364 "memory/singleton_unittest.cc", | 1361 "memory/singleton_unittest.cc", |
1365 "memory/weak_ptr_unittest.cc", | 1362 "memory/weak_ptr_unittest.cc", |
1366 "memory/weak_ptr_unittest.nc", | |
1367 "message_loop/message_loop_task_runner_unittest.cc", | 1363 "message_loop/message_loop_task_runner_unittest.cc", |
1368 "message_loop/message_loop_unittest.cc", | 1364 "message_loop/message_loop_unittest.cc", |
1369 "message_loop/message_pump_glib_unittest.cc", | 1365 "message_loop/message_pump_glib_unittest.cc", |
1370 "message_loop/message_pump_io_ios_unittest.cc", | 1366 "message_loop/message_pump_io_ios_unittest.cc", |
1371 "metrics/bucket_ranges_unittest.cc", | 1367 "metrics/bucket_ranges_unittest.cc", |
1372 "metrics/field_trial_unittest.cc", | 1368 "metrics/field_trial_unittest.cc", |
1373 "metrics/histogram_base_unittest.cc", | 1369 "metrics/histogram_base_unittest.cc", |
1374 "metrics/histogram_delta_serialization_unittest.cc", | 1370 "metrics/histogram_delta_serialization_unittest.cc", |
1375 "metrics/histogram_macros_unittest.cc", | 1371 "metrics/histogram_macros_unittest.cc", |
1376 "metrics/histogram_snapshot_manager_unittest.cc", | 1372 "metrics/histogram_snapshot_manager_unittest.cc", |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1605 # Symbols for crashes when running tests on swarming. | 1601 # Symbols for crashes when running tests on swarming. |
1606 if (symbol_level > 0) { | 1602 if (symbol_level > 0) { |
1607 if (is_win) { | 1603 if (is_win) { |
1608 data += [ "$root_out_dir/base_unittests.exe.pdb" ] | 1604 data += [ "$root_out_dir/base_unittests.exe.pdb" ] |
1609 } else if (is_mac) { | 1605 } else if (is_mac) { |
1610 data += [ "$root_out_dir/base_unittests.dSYM/" ] | 1606 data += [ "$root_out_dir/base_unittests.dSYM/" ] |
1611 } | 1607 } |
1612 } | 1608 } |
1613 } | 1609 } |
1614 | 1610 |
| 1611 if (enable_nocompile_tests) { |
| 1612 nocompile_test("base_nocompile_tests") { |
| 1613 sources = [ |
| 1614 "bind_unittest.nc", |
| 1615 "callback_list_unittest.nc", |
| 1616 "callback_unittest.nc", |
| 1617 "memory/scoped_ptr_unittest.nc", |
| 1618 "memory/weak_ptr_unittest.nc", |
| 1619 ] |
| 1620 |
| 1621 deps = [ |
| 1622 ":base", |
| 1623 "//base/test:run_all_unittests", |
| 1624 "//testing/gtest", |
| 1625 ] |
| 1626 } |
| 1627 } |
| 1628 |
1615 if (is_android) { | 1629 if (is_android) { |
1616 # GYP: //base.gyp:base_jni_headers | 1630 # GYP: //base.gyp:base_jni_headers |
1617 generate_jni("base_jni_headers") { | 1631 generate_jni("base_jni_headers") { |
1618 sources = [ | 1632 sources = [ |
1619 "android/java/src/org/chromium/base/AnimationFrameTimeHistogram.java", | 1633 "android/java/src/org/chromium/base/AnimationFrameTimeHistogram.java", |
1620 "android/java/src/org/chromium/base/ApkAssets.java", | 1634 "android/java/src/org/chromium/base/ApkAssets.java", |
1621 "android/java/src/org/chromium/base/ApplicationStatus.java", | 1635 "android/java/src/org/chromium/base/ApplicationStatus.java", |
1622 "android/java/src/org/chromium/base/BuildInfo.java", | 1636 "android/java/src/org/chromium/base/BuildInfo.java", |
1623 "android/java/src/org/chromium/base/CommandLine.java", | 1637 "android/java/src/org/chromium/base/CommandLine.java", |
1624 "android/java/src/org/chromium/base/ContentUriUtils.java", | 1638 "android/java/src/org/chromium/base/ContentUriUtils.java", |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1757 | 1771 |
1758 # GYP: //base.gyp:base_java_unittest_support | 1772 # GYP: //base.gyp:base_java_unittest_support |
1759 android_library("base_java_unittest_support") { | 1773 android_library("base_java_unittest_support") { |
1760 deps = [ | 1774 deps = [ |
1761 ":base_java", | 1775 ":base_java", |
1762 ] | 1776 ] |
1763 java_files = | 1777 java_files = |
1764 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1778 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1765 } | 1779 } |
1766 } | 1780 } |
OLD | NEW |