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 import("//testing/test.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
10 } | 10 } |
11 | 11 |
12 config("base_implementation") { | 12 config("base_implementation") { |
13 defines = [ "BASE_IMPLEMENTATION" ] | 13 defines = [ "BASE_IMPLEMENTATION" ] |
14 | |
15 if (is_ios) { | |
16 # base uses routines deprecated in iOS 8 | |
17 cflags = [ "-Wno-deprecated-declarations" ] | |
18 } | |
Nico
2015/08/11 20:41:01
This does not lgtm. I explicitly not lgtm'd this o
| |
14 } | 19 } |
15 | 20 |
16 if (is_win) { | 21 if (is_win) { |
17 # This is in a separate config so the flags can be applied to dependents. | 22 # This is in a separate config so the flags can be applied to dependents. |
18 # ldflags in GN aren't automatically inherited. | 23 # ldflags in GN aren't automatically inherited. |
19 config("base_win_linker_flags") { | 24 config("base_win_linker_flags") { |
20 ldflags = [ | 25 ldflags = [ |
21 "/DELAYLOAD:cfgmgr32.dll", | 26 "/DELAYLOAD:cfgmgr32.dll", |
22 "/DELAYLOAD:powrprof.dll", | 27 "/DELAYLOAD:powrprof.dll", |
23 "/DELAYLOAD:setupapi.dll", | 28 "/DELAYLOAD:setupapi.dll", |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
636 "win/startup_information.h", | 641 "win/startup_information.h", |
637 "win/win_util.cc", | 642 "win/win_util.cc", |
638 "win/win_util.h", | 643 "win/win_util.h", |
639 "win/windows_version.cc", | 644 "win/windows_version.cc", |
640 "win/windows_version.h", | 645 "win/windows_version.h", |
641 "win/wrapped_window_proc.cc", | 646 "win/wrapped_window_proc.cc", |
642 "win/wrapped_window_proc.h", | 647 "win/wrapped_window_proc.h", |
643 ] | 648 ] |
644 | 649 |
645 if (is_ios) { | 650 if (is_ios) { |
646 sources += [ "process/memory_stubs.cc" ] | |
647 sources -= [ | 651 sources -= [ |
648 "message_loop/message_pump_libevent.cc", | 652 "message_loop/message_pump_libevent.cc", |
649 "message_loop/message_pump_libevent.h", | 653 "message_loop/message_pump_libevent.h", |
650 ] | 654 ] |
651 | 655 |
652 set_sources_assignment_filter([]) | 656 set_sources_assignment_filter([]) |
653 sources += [ "files/file_path_watcher_mac.cc" ] | 657 sources += [ "files/file_path_watcher_mac.cc" ] |
654 set_sources_assignment_filter(sources_assignment_filter) | 658 set_sources_assignment_filter(sources_assignment_filter) |
655 } | 659 } |
656 | 660 |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1332 "prefs/pref_value_map_unittest.cc", | 1336 "prefs/pref_value_map_unittest.cc", |
1333 "prefs/pref_value_store_unittest.cc", | 1337 "prefs/pref_value_store_unittest.cc", |
1334 "prefs/scoped_user_pref_update_unittest.cc", | 1338 "prefs/scoped_user_pref_update_unittest.cc", |
1335 "process/memory_unittest.cc", | 1339 "process/memory_unittest.cc", |
1336 "process/memory_unittest_mac.h", | 1340 "process/memory_unittest_mac.h", |
1337 "process/memory_unittest_mac.mm", | 1341 "process/memory_unittest_mac.mm", |
1338 "process/process_metrics_unittest.cc", | 1342 "process/process_metrics_unittest.cc", |
1339 "process/process_metrics_unittest_ios.cc", | 1343 "process/process_metrics_unittest_ios.cc", |
1340 "process/process_unittest.cc", | 1344 "process/process_unittest.cc", |
1341 "process/process_util_unittest.cc", | 1345 "process/process_util_unittest.cc", |
1342 "process/process_util_unittest_ios.cc", | |
1343 "profiler/stack_sampling_profiler_unittest.cc", | 1346 "profiler/stack_sampling_profiler_unittest.cc", |
1344 "profiler/tracked_time_unittest.cc", | 1347 "profiler/tracked_time_unittest.cc", |
1345 "rand_util_unittest.cc", | 1348 "rand_util_unittest.cc", |
1346 "scoped_clear_errno_unittest.cc", | 1349 "scoped_clear_errno_unittest.cc", |
1347 "scoped_generic_unittest.cc", | 1350 "scoped_generic_unittest.cc", |
1348 "scoped_native_library_unittest.cc", | 1351 "scoped_native_library_unittest.cc", |
1349 "security_unittest.cc", | 1352 "security_unittest.cc", |
1350 "sequence_checker_unittest.cc", | 1353 "sequence_checker_unittest.cc", |
1351 "sha1_unittest.cc", | 1354 "sha1_unittest.cc", |
1352 "stl_util_unittest.cc", | 1355 "stl_util_unittest.cc", |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1459 ":base_java_unittest_support", | 1462 ":base_java_unittest_support", |
1460 ] | 1463 ] |
1461 | 1464 |
1462 # TODO(brettw) I think this should not be here, we should not be using | 1465 # TODO(brettw) I think this should not be here, we should not be using |
1463 # isolate files. | 1466 # isolate files. |
1464 isolate_file = "base_unittests.isolate" | 1467 isolate_file = "base_unittests.isolate" |
1465 } | 1468 } |
1466 | 1469 |
1467 if (is_ios) { | 1470 if (is_ios) { |
1468 sources -= [ | 1471 sources -= [ |
1472 "memory/discardable_shared_memory_unittest.cc", | |
1473 "memory/shared_memory_unittest.cc", | |
1469 "process/memory_unittest.cc", | 1474 "process/memory_unittest.cc", |
1470 "process/process_unittest.cc", | 1475 "process/process_unittest.cc", |
1471 "process/process_util_unittest.cc", | 1476 "process/process_util_unittest.cc", |
1472 ] | 1477 ] |
1473 | 1478 |
1474 # Pull in specific Mac files for iOS (which have been filtered out by file | 1479 # Pull in specific Mac files for iOS (which have been filtered out by file |
1475 # name rules). | 1480 # name rules). |
1476 set_sources_assignment_filter([]) | 1481 set_sources_assignment_filter([]) |
1477 sources += [ | 1482 sources += [ |
1478 "mac/bind_objc_block_unittest.mm", | 1483 "mac/bind_objc_block_unittest.mm", |
1479 "mac/foundation_util_unittest.mm", | 1484 "mac/foundation_util_unittest.mm", |
1480 "mac/objc_property_releaser_unittest.mm", | 1485 "mac/objc_property_releaser_unittest.mm", |
1481 "mac/scoped_nsobject_unittest.mm", | 1486 "mac/scoped_nsobject_unittest.mm", |
1482 "sys_string_conversions_mac_unittest.mm", | 1487 "strings/sys_string_conversions_mac_unittest.mm", |
1483 ] | 1488 ] |
1484 set_sources_assignment_filter(sources_assignment_filter) | 1489 set_sources_assignment_filter(sources_assignment_filter) |
1485 | 1490 |
1486 # TODO(GYP): dep on copy_test_data_ios action. | 1491 # TODO(GYP): dep on copy_test_data_ios action. |
1487 } | 1492 } |
1488 | 1493 |
1489 if (is_linux) { | 1494 if (is_linux) { |
1490 sources -= [ "file_version_info_unittest.cc" ] | 1495 sources -= [ "file_version_info_unittest.cc" ] |
1491 sources += [ "nix/xdg_util_unittest.cc" ] | 1496 sources += [ "nix/xdg_util_unittest.cc" ] |
1492 deps += [ "//base/test:malloc_wrapper" ] | 1497 deps += [ "//base/test:malloc_wrapper" ] |
1493 | 1498 |
1494 if (use_glib) { | 1499 if (use_glib) { |
1495 configs += [ "//build/config/linux:glib" ] | 1500 configs += [ "//build/config/linux:glib" ] |
1496 } | 1501 } |
1497 } | 1502 } |
1498 | 1503 |
1499 if (!is_linux || use_ozone) { | 1504 if (!is_linux || use_ozone) { |
1500 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] | 1505 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] |
1501 } | 1506 } |
1502 | 1507 |
1503 if (is_posix || is_ios) { | 1508 if (is_posix && !is_ios) { |
1504 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] | 1509 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] |
1505 deps += [ "//third_party/libevent" ] | 1510 deps += [ "//third_party/libevent" ] |
1506 } | 1511 } |
1507 | 1512 |
1508 if (is_android) { | 1513 if (is_android) { |
1509 deps += [ "//testing/android/native_test:native_test_native_code" ] | 1514 deps += [ "//testing/android/native_test:native_test_native_code" ] |
1510 set_sources_assignment_filter([]) | 1515 set_sources_assignment_filter([]) |
1511 sources += [ "debug/proc_maps_linux_unittest.cc" ] | 1516 sources += [ "debug/proc_maps_linux_unittest.cc" ] |
1512 set_sources_assignment_filter(sources_assignment_filter) | 1517 set_sources_assignment_filter(sources_assignment_filter) |
1513 } | 1518 } |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1645 | 1650 |
1646 # GYP: //base.gyp:base_java_unittest_support | 1651 # GYP: //base.gyp:base_java_unittest_support |
1647 android_library("base_java_unittest_support") { | 1652 android_library("base_java_unittest_support") { |
1648 deps = [ | 1653 deps = [ |
1649 ":base_java", | 1654 ":base_java", |
1650 ] | 1655 ] |
1651 java_files = | 1656 java_files = |
1652 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1657 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1653 } | 1658 } |
1654 } | 1659 } |
OLD | NEW |