| 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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 "//base/debug", | 677 "//base/debug", |
| 678 "//base/json", | 678 "//base/json", |
| 679 "//base/memory", | 679 "//base/memory", |
| 680 "//base/metrics", | 680 "//base/metrics", |
| 681 "//base/process", | 681 "//base/process", |
| 682 "//base/trace_event", | 682 "//base/trace_event", |
| 683 ] | 683 ] |
| 684 | 684 |
| 685 # Allow more direct string conversions on platforms with native utf8 | 685 # Allow more direct string conversions on platforms with native utf8 |
| 686 # strings | 686 # strings |
| 687 if (is_mac || is_ios || is_chromeos) { | 687 if (is_mac || is_ios || is_chromeos_os) { |
| 688 defines = [ "SYSTEM_NATIVE_UTF8" ] | 688 defines = [ "SYSTEM_NATIVE_UTF8" ] |
| 689 } | 689 } |
| 690 | 690 |
| 691 if (is_android) { | 691 if (is_android) { |
| 692 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] | 692 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] |
| 693 | 693 |
| 694 # Android uses some Linux sources, put those back. | 694 # Android uses some Linux sources, put those back. |
| 695 set_sources_assignment_filter([]) | 695 set_sources_assignment_filter([]) |
| 696 sources += [ | 696 sources += [ |
| 697 "files/file_path_watcher_linux.cc", | 697 "files/file_path_watcher_linux.cc", |
| 698 "posix/unix_domain_socket_linux.cc", | 698 "posix/unix_domain_socket_linux.cc", |
| 699 "sys_info_linux.cc", | 699 "sys_info_linux.cc", |
| 700 ] | 700 ] |
| 701 set_sources_assignment_filter(sources_assignment_filter) | 701 set_sources_assignment_filter(sources_assignment_filter) |
| 702 | 702 |
| 703 deps += [ | 703 deps += [ |
| 704 ":base_jni_headers", | 704 ":base_jni_headers", |
| 705 "//third_party/ashmem", | 705 "//third_party/ashmem", |
| 706 "//third_party/android_tools:cpu_features", | 706 "//third_party/android_tools:cpu_features", |
| 707 ] | 707 ] |
| 708 | 708 |
| 709 # logging.cc uses the Android logging library. | 709 # logging.cc uses the Android logging library. |
| 710 libs = [ "log" ] | 710 libs = [ "log" ] |
| 711 } | 711 } |
| 712 | 712 |
| 713 if (is_chromeos) { | 713 if (is_chromeos_ui) { |
| 714 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] | 714 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] |
| 715 } | 715 } |
| 716 | 716 |
| 717 if (is_nacl) { | 717 if (is_nacl) { |
| 718 # We reset sources_assignment_filter in order to explicitly include | 718 # We reset sources_assignment_filter in order to explicitly include |
| 719 # the linux file (which would otherwise be filtered out). | 719 # the linux file (which would otherwise be filtered out). |
| 720 set_sources_assignment_filter([]) | 720 set_sources_assignment_filter([]) |
| 721 sources += [ | 721 sources += [ |
| 722 "files/file_path_watcher_stub.cc", | 722 "files/file_path_watcher_stub.cc", |
| 723 "sync_socket_nacl.cc", | 723 "sync_socket_nacl.cc", |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 | 1013 |
| 1014 if (!is_debug) { | 1014 if (!is_debug) { |
| 1015 configs -= [ "//build/config/compiler:optimize" ] | 1015 configs -= [ "//build/config/compiler:optimize" ] |
| 1016 configs += [ "//build/config/compiler:optimize_max" ] | 1016 configs += [ "//build/config/compiler:optimize_max" ] |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1019 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1020 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1020 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 if (is_ios || is_win || (is_linux && !is_chromeos)) { | 1023 if (is_ios || is_win || is_desktop_linux) { |
| 1024 # TODO(GYP): Figure out which of these work and are needed on other platforms. | 1024 # TODO(GYP): Figure out which of these work and are needed on other platforms. |
| 1025 test("base_perftests") { | 1025 test("base_perftests") { |
| 1026 sources = [ | 1026 sources = [ |
| 1027 "message_loop/message_pump_perftest.cc", | 1027 "message_loop/message_pump_perftest.cc", |
| 1028 | 1028 |
| 1029 # "test/run_all_unittests.cc", | 1029 # "test/run_all_unittests.cc", |
| 1030 "threading/thread_perftest.cc", | 1030 "threading/thread_perftest.cc", |
| 1031 ] | 1031 ] |
| 1032 deps = [ | 1032 deps = [ |
| 1033 ":base", | 1033 ":base", |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1445 "//testing/gtest", | 1445 "//testing/gtest", |
| 1446 "//third_party/icu", | 1446 "//third_party/icu", |
| 1447 ] | 1447 ] |
| 1448 | 1448 |
| 1449 data = [ | 1449 data = [ |
| 1450 "test/data/", | 1450 "test/data/", |
| 1451 ] | 1451 ] |
| 1452 | 1452 |
| 1453 # Allow more direct string conversions on platforms with native utf8 | 1453 # Allow more direct string conversions on platforms with native utf8 |
| 1454 # strings | 1454 # strings |
| 1455 if (is_mac || is_ios || is_chromeos) { | 1455 if (is_mac || is_ios || is_chromeos_os) { |
| 1456 defines = [ "SYSTEM_NATIVE_UTF8" ] | 1456 defines = [ "SYSTEM_NATIVE_UTF8" ] |
| 1457 } | 1457 } |
| 1458 | 1458 |
| 1459 if (is_android) { | 1459 if (is_android) { |
| 1460 apk_deps = [ | 1460 apk_deps = [ |
| 1461 ":base_java", | 1461 ":base_java", |
| 1462 ":base_java_unittest_support", | 1462 ":base_java_unittest_support", |
| 1463 ] | 1463 ] |
| 1464 | 1464 |
| 1465 # 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 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1650 | 1650 |
| 1651 # GYP: //base.gyp:base_java_unittest_support | 1651 # GYP: //base.gyp:base_java_unittest_support |
| 1652 android_library("base_java_unittest_support") { | 1652 android_library("base_java_unittest_support") { |
| 1653 deps = [ | 1653 deps = [ |
| 1654 ":base_java", | 1654 ":base_java", |
| 1655 ] | 1655 ] |
| 1656 java_files = | 1656 java_files = |
| 1657 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1657 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
| 1658 } | 1658 } |
| 1659 } | 1659 } |
| OLD | NEW |