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/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//testing/test.gni") |
6 | 7 |
7 if (is_android) { | 8 if (is_android) { |
8 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
9 } | 10 } |
10 | 11 |
11 component("base") { | 12 component("base") { |
12 sources = [ | 13 sources = [ |
13 "third_party/dmg_fp/dmg_fp.h", | 14 "third_party/dmg_fp/dmg_fp.h", |
14 "third_party/dmg_fp/g_fmt.cc", | 15 "third_party/dmg_fp/g_fmt.cc", |
15 "third_party/dmg_fp/dtoa_wrapper.cc", | 16 "third_party/dmg_fp/dtoa_wrapper.cc", |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 "files/file_path_watcher_fsevents.cc", | 903 "files/file_path_watcher_fsevents.cc", |
903 "files/file_path_watcher_fsevents.h", | 904 "files/file_path_watcher_fsevents.h", |
904 "files/file_path_watcher_kqueue.cc", | 905 "files/file_path_watcher_kqueue.cc", |
905 "files/file_path_watcher_kqueue.h", | 906 "files/file_path_watcher_kqueue.h", |
906 ] | 907 ] |
907 } | 908 } |
908 | 909 |
909 # Linux. | 910 # Linux. |
910 if (is_linux) { | 911 if (is_linux) { |
911 # TODO(brettw) this will need to be parameterized at some point. | 912 # TODO(brettw) this will need to be parameterized at some point. |
912 linux_configs = [ "//build/config/linux:glib" ] | 913 linux_configs = [] |
| 914 if (use_glib) { |
| 915 linux_configs += [ "//build/config/linux:glib" ] |
| 916 } |
913 | 917 |
914 configs += linux_configs | 918 configs += linux_configs |
915 all_dependent_configs = linux_configs | 919 all_dependent_configs = linux_configs |
916 | 920 |
917 defines += [ "USE_SYMBOLIZE" ] | 921 defines += [ "USE_SYMBOLIZE" ] |
918 | 922 |
919 # These dependencies are not required on Android, and in the case | 923 # These dependencies are not required on Android, and in the case |
920 # of xdg_mime must be excluded due to licensing restrictions. | 924 # of xdg_mime must be excluded due to licensing restrictions. |
921 deps += [ | 925 deps += [ |
922 "//base/third_party/symbolize", | 926 "//base/third_party/symbolize", |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1367 ":prefs_test_support", | 1371 ":prefs_test_support", |
1368 "//base/allocator", | 1372 "//base/allocator", |
1369 "//base/test:run_all_unittests", | 1373 "//base/test:run_all_unittests", |
1370 "//base/test:test_support", | 1374 "//base/test:test_support", |
1371 "//base/third_party/dynamic_annotations", | 1375 "//base/third_party/dynamic_annotations", |
1372 "//testing/gmock", | 1376 "//testing/gmock", |
1373 "//testing/gtest", | 1377 "//testing/gtest", |
1374 "//third_party/icu", | 1378 "//third_party/icu", |
1375 ] | 1379 ] |
1376 | 1380 |
| 1381 if (is_android) { |
| 1382 apk_deps = [ |
| 1383 ":base_java", |
| 1384 ":base_java_unittest_support", |
| 1385 ] |
| 1386 } |
| 1387 |
1377 if (is_ios) { | 1388 if (is_ios) { |
1378 sources -= [ | 1389 sources -= [ |
1379 "metrics/stats_table_uinittest.cc", # Requires spawning a process. | 1390 "metrics/stats_table_uinittest.cc", # Requires spawning a process. |
1380 "process/memory_unittest.cc", | 1391 "process/memory_unittest.cc", |
1381 "process/memory_unittest_mac.h", | 1392 "process/memory_unittest_mac.h", |
1382 "process/memory_unittest_mac.mm", | 1393 "process/memory_unittest_mac.mm", |
1383 "process/process_unittest.cc", | 1394 "process/process_unittest.cc", |
1384 "process/process_util_unittest.cc", | 1395 "process/process_util_unittest.cc", |
1385 ] | 1396 ] |
1386 | 1397 |
1387 # Pull in specific Mac files for iOS (which have been filtered out by file | 1398 # Pull in specific Mac files for iOS (which have been filtered out by file |
1388 # name rules). | 1399 # name rules). |
1389 set_sources_assignment_filter([]) | 1400 set_sources_assignment_filter([]) |
1390 sources += [ | 1401 sources += [ |
1391 "mac/bind_objc_block_unittest.mm", | 1402 "mac/bind_objc_block_unittest.mm", |
1392 "mac/foundation_util_unittest.mm", | 1403 "mac/foundation_util_unittest.mm", |
1393 "mac/objc_property_releaser_unittest.mm", | 1404 "mac/objc_property_releaser_unittest.mm", |
1394 "mac/scoped_nsobject_unittest.mm", | 1405 "mac/scoped_nsobject_unittest.mm", |
1395 "sys_string_conversions_mac_unittest.mm", | 1406 "sys_string_conversions_mac_unittest.mm", |
1396 ] | 1407 ] |
1397 set_sources_assignment_filter(sources_assignment_filter) | 1408 set_sources_assignment_filter(sources_assignment_filter) |
1398 | 1409 |
1399 # TODO(GYP): dep on copy_test_data_ios action. | 1410 # TODO(GYP): dep on copy_test_data_ios action. |
1400 } | 1411 } |
1401 | 1412 |
1402 if (is_linux) { | 1413 if (is_linux) { |
1403 sources -= [ "file_version_info_unittest.cc" ] | 1414 sources -= [ "file_version_info_unittest.cc" ] |
1404 sources += [ "nix/xdg_util_unittest.cc" ] | 1415 sources += [ "nix/xdg_util_unittest.cc" ] |
1405 defines = [ "USE_SYMBOLIZE" ] | 1416 defines = [ "USE_SYMBOLIZE" ] |
1406 configs += [ "//build/config/linux:glib" ] | 1417 if (use_glib) { |
| 1418 configs += [ "//build/config/linux:glib" ] |
| 1419 } |
1407 } | 1420 } |
1408 | 1421 |
1409 if (!is_linux) { | 1422 if (!is_linux || use_ozone) { |
1410 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] | 1423 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] |
1411 } | 1424 } |
1412 | 1425 |
1413 if (is_posix || is_ios) { | 1426 if (is_posix || is_ios) { |
1414 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] | 1427 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] |
1415 deps += [ "//third_party/libevent" ] | 1428 deps += [ "//third_party/libevent" ] |
1416 } | 1429 } |
1417 | 1430 |
1418 if (is_android) { | 1431 if (is_android) { |
1419 deps += [ "//testing/android:native_test_native_code" ] | 1432 deps += [ "//testing/android:native_test_native_code" ] |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 } | 1532 } |
1520 | 1533 |
1521 # GYP: //base.gyp:base_java_unittest_support | 1534 # GYP: //base.gyp:base_java_unittest_support |
1522 android_library("base_java_unittest_support") { | 1535 android_library("base_java_unittest_support") { |
1523 deps = [ | 1536 deps = [ |
1524 ":base_java", | 1537 ":base_java", |
1525 ] | 1538 ] |
1526 java_files = | 1539 java_files = |
1527 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1540 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1528 } | 1541 } |
1529 | |
1530 # GYP: //base.gyp:base_unittests_apk | |
1531 unittest_apk("base_unittests_apk") { | |
1532 deps = [ | |
1533 ":base_java", | |
1534 ":base_java_unittest_support", | |
1535 ":base_unittests", | |
1536 ] | |
1537 unittests_dep = ":base_unittests" | |
1538 } | |
1539 } | 1542 } |
OLD | NEW |