| 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 } |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 "//base/debug", | 656 "//base/debug", |
| 657 "//base/json", | 657 "//base/json", |
| 658 "//base/memory", | 658 "//base/memory", |
| 659 "//base/metrics", | 659 "//base/metrics", |
| 660 "//base/process", | 660 "//base/process", |
| 661 "//base/trace_event", | 661 "//base/trace_event", |
| 662 ] | 662 ] |
| 663 | 663 |
| 664 # Allow more direct string conversions on platforms with native utf8 | 664 # Allow more direct string conversions on platforms with native utf8 |
| 665 # strings | 665 # strings |
| 666 if (is_mac || is_ios || is_chromeos) { | 666 if (is_mac || is_ios) { |
| 667 defines = [ "SYSTEM_NATIVE_UTF8" ] | 667 defines = [ "SYSTEM_NATIVE_UTF8" ] |
| 668 } | 668 } |
| 669 | 669 |
| 670 if (is_android) { | 670 if (is_android) { |
| 671 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] | 671 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] |
| 672 | 672 |
| 673 # Android uses some Linux sources, put those back. | 673 # Android uses some Linux sources, put those back. |
| 674 set_sources_assignment_filter([]) | 674 set_sources_assignment_filter([]) |
| 675 sources += [ | 675 sources += [ |
| 676 "files/file_path_watcher_linux.cc", | 676 "files/file_path_watcher_linux.cc", |
| 677 "posix/unix_domain_socket_linux.cc", | 677 "posix/unix_domain_socket_linux.cc", |
| 678 "sys_info_linux.cc", | 678 "sys_info_linux.cc", |
| 679 ] | 679 ] |
| 680 set_sources_assignment_filter(sources_assignment_filter) | 680 set_sources_assignment_filter(sources_assignment_filter) |
| 681 | 681 |
| 682 deps += [ | 682 deps += [ |
| 683 ":base_jni_headers", | 683 ":base_jni_headers", |
| 684 "//third_party/ashmem", | 684 "//third_party/ashmem", |
| 685 "//third_party/android_tools:cpu_features", | 685 "//third_party/android_tools:cpu_features", |
| 686 ] | 686 ] |
| 687 | 687 |
| 688 # logging.cc uses the Android logging library. | 688 # logging.cc uses the Android logging library. |
| 689 libs = [ "log" ] | 689 libs = [ "log" ] |
| 690 } | 690 } |
| 691 | 691 |
| 692 if (is_chromeos) { | |
| 693 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] | |
| 694 } | |
| 695 | |
| 696 if (is_nacl) { | 692 if (is_nacl) { |
| 697 # We reset sources_assignment_filter in order to explicitly include | 693 # We reset sources_assignment_filter in order to explicitly include |
| 698 # the linux file (which would otherwise be filtered out). | 694 # the linux file (which would otherwise be filtered out). |
| 699 set_sources_assignment_filter([]) | 695 set_sources_assignment_filter([]) |
| 700 sources += [ | 696 sources += [ |
| 701 "files/file_path_watcher_stub.cc", | 697 "files/file_path_watcher_stub.cc", |
| 702 "sync_socket_nacl.cc", | 698 "sync_socket_nacl.cc", |
| 703 "threading/platform_thread_linux.cc", | 699 "threading/platform_thread_linux.cc", |
| 704 ] | 700 ] |
| 705 set_sources_assignment_filter(sources_assignment_filter) | 701 set_sources_assignment_filter(sources_assignment_filter) |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 | 885 |
| 890 if (is_android && !is_debug) { | 886 if (is_android && !is_debug) { |
| 891 configs -= [ "//build/config/compiler:optimize" ] | 887 configs -= [ "//build/config/compiler:optimize" ] |
| 892 configs += [ "//build/config/compiler:optimize_max" ] | 888 configs += [ "//build/config/compiler:optimize_max" ] |
| 893 } | 889 } |
| 894 | 890 |
| 895 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 891 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 896 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 892 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 897 } | 893 } |
| 898 | 894 |
| 899 if (is_win || (is_linux && !is_chromeos)) { | 895 if (is_win || is_linux) { |
| 900 # TODO(GYP): Figure out which of these work and are needed on other platforms. | 896 # TODO(GYP): Figure out which of these work and are needed on other platforms. |
| 901 test("base_perftests") { | 897 test("base_perftests") { |
| 902 sources = [ | 898 sources = [ |
| 903 "message_loop/message_pump_perftest.cc", | 899 "message_loop/message_pump_perftest.cc", |
| 904 | 900 |
| 905 # "test/run_all_unittests.cc", | 901 # "test/run_all_unittests.cc", |
| 906 "threading/thread_perftest.cc", | 902 "threading/thread_perftest.cc", |
| 907 ] | 903 ] |
| 908 deps = [ | 904 deps = [ |
| 909 ":base", | 905 ":base", |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 | 1308 |
| 1313 data = [ | 1309 data = [ |
| 1314 "test/data/", | 1310 "test/data/", |
| 1315 | 1311 |
| 1316 # TODO(dpranke): Remove when icu declares this directly. | 1312 # TODO(dpranke): Remove when icu declares this directly. |
| 1317 "$root_out_dir/icudtl.dat", | 1313 "$root_out_dir/icudtl.dat", |
| 1318 ] | 1314 ] |
| 1319 | 1315 |
| 1320 # Allow more direct string conversions on platforms with native utf8 | 1316 # Allow more direct string conversions on platforms with native utf8 |
| 1321 # strings | 1317 # strings |
| 1322 if (is_mac || is_ios || is_chromeos) { | 1318 if (is_mac || is_ios) { |
| 1323 defines = [ "SYSTEM_NATIVE_UTF8" ] | 1319 defines = [ "SYSTEM_NATIVE_UTF8" ] |
| 1324 } | 1320 } |
| 1325 | 1321 |
| 1326 if (is_android) { | 1322 if (is_android) { |
| 1327 apk_deps = [ | 1323 apk_deps = [ |
| 1328 ":base_java", | 1324 ":base_java", |
| 1329 ":base_java_unittest_support", | 1325 ":base_java_unittest_support", |
| 1330 ] | 1326 ] |
| 1331 isolate_file = "base_unittests.isolate" | 1327 isolate_file = "base_unittests.isolate" |
| 1332 } | 1328 } |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1497 | 1493 |
| 1498 # GYP: //base.gyp:base_java_unittest_support | 1494 # GYP: //base.gyp:base_java_unittest_support |
| 1499 android_library("base_java_unittest_support") { | 1495 android_library("base_java_unittest_support") { |
| 1500 deps = [ | 1496 deps = [ |
| 1501 ":base_java", | 1497 ":base_java", |
| 1502 ] | 1498 ] |
| 1503 java_files = | 1499 java_files = |
| 1504 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1500 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
| 1505 } | 1501 } |
| 1506 } | 1502 } |
| OLD | NEW |