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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 "files/scoped_temp_dir.h", | 239 "files/scoped_temp_dir.h", |
240 "format_macros.h", | 240 "format_macros.h", |
241 "gtest_prod_util.h", | 241 "gtest_prod_util.h", |
242 "guid.cc", | 242 "guid.cc", |
243 "guid.h", | 243 "guid.h", |
244 "guid_posix.cc", | 244 "guid_posix.cc", |
245 "guid_win.cc", | 245 "guid_win.cc", |
246 "hash.cc", | 246 "hash.cc", |
247 "hash.h", | 247 "hash.h", |
248 "id_map.h", | 248 "id_map.h", |
| 249 "ios/crb_protocol_observers.h", |
| 250 "ios/crb_protocol_observers.mm", |
249 "ios/device_util.h", | 251 "ios/device_util.h", |
250 "ios/device_util.mm", | 252 "ios/device_util.mm", |
251 "ios/ios_util.h", | 253 "ios/ios_util.h", |
252 "ios/ios_util.mm", | 254 "ios/ios_util.mm", |
| 255 "ios/ns_error_util.h", |
| 256 "ios/ns_error_util.mm", |
253 "ios/scoped_critical_action.h", | 257 "ios/scoped_critical_action.h", |
254 "ios/scoped_critical_action.mm", | 258 "ios/scoped_critical_action.mm", |
255 "ios/weak_nsobject.h", | 259 "ios/weak_nsobject.h", |
256 "ios/weak_nsobject.mm", | 260 "ios/weak_nsobject.mm", |
257 "lazy_instance.cc", | 261 "lazy_instance.cc", |
258 "lazy_instance.h", | 262 "lazy_instance.h", |
259 "linux_util.cc", | 263 "linux_util.cc", |
260 "linux_util.h", | 264 "linux_util.h", |
261 "location.cc", | 265 "location.cc", |
262 "location.h", | 266 "location.h", |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 "win/startup_information.cc", | 635 "win/startup_information.cc", |
632 "win/startup_information.h", | 636 "win/startup_information.h", |
633 "win/win_util.cc", | 637 "win/win_util.cc", |
634 "win/win_util.h", | 638 "win/win_util.h", |
635 "win/windows_version.cc", | 639 "win/windows_version.cc", |
636 "win/windows_version.h", | 640 "win/windows_version.h", |
637 "win/wrapped_window_proc.cc", | 641 "win/wrapped_window_proc.cc", |
638 "win/wrapped_window_proc.h", | 642 "win/wrapped_window_proc.h", |
639 ] | 643 ] |
640 | 644 |
| 645 if (is_ios) { |
| 646 sources += [ "process/memory_stubs.cc" ] |
| 647 sources -= [ |
| 648 "message_loop/message_pump_libevent.cc", |
| 649 "message_loop/message_pump_libevent.h", |
| 650 ] |
| 651 |
| 652 set_sources_assignment_filter([]) |
| 653 sources += [ "files/file_path_watcher_mac.cc" ] |
| 654 set_sources_assignment_filter(sources_assignment_filter) |
| 655 } |
| 656 |
641 sources -= [ | 657 sources -= [ |
642 "sys_info_freebsd.cc", | 658 "sys_info_freebsd.cc", |
643 "sys_info_openbsd.cc", | 659 "sys_info_openbsd.cc", |
644 ] | 660 ] |
645 | 661 |
646 data = [] | 662 data = [] |
647 | 663 |
648 configs += [ | 664 configs += [ |
649 ":base_implementation", | 665 ":base_implementation", |
650 "//build/config:precompiled_headers", | 666 "//build/config:precompiled_headers", |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 | 1010 |
995 if (!is_debug) { | 1011 if (!is_debug) { |
996 configs -= [ "//build/config/compiler:optimize" ] | 1012 configs -= [ "//build/config/compiler:optimize" ] |
997 configs += [ "//build/config/compiler:optimize_max" ] | 1013 configs += [ "//build/config/compiler:optimize_max" ] |
998 } | 1014 } |
999 | 1015 |
1000 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1016 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1001 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1017 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
1002 } | 1018 } |
1003 | 1019 |
1004 if (is_win || (is_linux && !is_chromeos)) { | 1020 if (is_ios || is_win || (is_linux && !is_chromeos)) { |
1005 # TODO(GYP): Figure out which of these work and are needed on other platforms. | 1021 # TODO(GYP): Figure out which of these work and are needed on other platforms. |
1006 test("base_perftests") { | 1022 test("base_perftests") { |
1007 sources = [ | 1023 sources = [ |
1008 "message_loop/message_pump_perftest.cc", | 1024 "message_loop/message_pump_perftest.cc", |
1009 | 1025 |
1010 # "test/run_all_unittests.cc", | 1026 # "test/run_all_unittests.cc", |
1011 "threading/thread_perftest.cc", | 1027 "threading/thread_perftest.cc", |
1012 ] | 1028 ] |
1013 deps = [ | 1029 deps = [ |
1014 ":base", | 1030 ":base", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 ] | 1069 ] |
1054 deps = [ | 1070 deps = [ |
1055 ":base", | 1071 ":base", |
1056 ] | 1072 ] |
1057 } | 1073 } |
1058 } | 1074 } |
1059 } | 1075 } |
1060 | 1076 |
1061 component("prefs") { | 1077 component("prefs") { |
1062 sources = [ | 1078 sources = [ |
1063 "prefs/base_prefs_export.h", | |
1064 "prefs/default_pref_store.cc", | 1079 "prefs/default_pref_store.cc", |
1065 "prefs/default_pref_store.h", | 1080 "prefs/default_pref_store.h", |
1066 "prefs/json_pref_store.cc", | 1081 "prefs/json_pref_store.cc", |
1067 "prefs/json_pref_store.h", | 1082 "prefs/json_pref_store.h", |
1068 "prefs/overlay_user_pref_store.cc", | 1083 "prefs/overlay_user_pref_store.cc", |
1069 "prefs/overlay_user_pref_store.h", | 1084 "prefs/overlay_user_pref_store.h", |
1070 "prefs/persistent_pref_store.h", | |
1071 "prefs/pref_change_registrar.cc", | 1085 "prefs/pref_change_registrar.cc", |
1072 "prefs/pref_change_registrar.h", | 1086 "prefs/pref_change_registrar.h", |
1073 "prefs/pref_filter.h", | |
1074 "prefs/pref_member.cc", | 1087 "prefs/pref_member.cc", |
1075 "prefs/pref_member.h", | 1088 "prefs/pref_member.h", |
1076 "prefs/pref_notifier.h", | |
1077 "prefs/pref_notifier_impl.cc", | 1089 "prefs/pref_notifier_impl.cc", |
1078 "prefs/pref_notifier_impl.h", | 1090 "prefs/pref_notifier_impl.h", |
1079 "prefs/pref_observer.h", | |
1080 "prefs/pref_registry.cc", | 1091 "prefs/pref_registry.cc", |
1081 "prefs/pref_registry.h", | 1092 "prefs/pref_registry.h", |
1082 "prefs/pref_registry_simple.cc", | 1093 "prefs/pref_registry_simple.cc", |
1083 "prefs/pref_registry_simple.h", | 1094 "prefs/pref_registry_simple.h", |
1084 "prefs/pref_service.cc", | 1095 "prefs/pref_service.cc", |
1085 "prefs/pref_service.h", | 1096 "prefs/pref_service.h", |
1086 "prefs/pref_service_factory.cc", | 1097 "prefs/pref_service_factory.cc", |
1087 "prefs/pref_service_factory.h", | 1098 "prefs/pref_service_factory.h", |
1088 "prefs/pref_store.cc", | 1099 "prefs/pref_store.cc", |
1089 "prefs/pref_store.h", | 1100 "prefs/pref_store.h", |
1090 "prefs/pref_value_map.cc", | 1101 "prefs/pref_value_map.cc", |
1091 "prefs/pref_value_map.h", | 1102 "prefs/pref_value_map.h", |
1092 "prefs/pref_value_store.cc", | 1103 "prefs/pref_value_store.cc", |
1093 "prefs/pref_value_store.h", | 1104 "prefs/pref_value_store.h", |
1094 "prefs/scoped_user_pref_update.cc", | 1105 "prefs/scoped_user_pref_update.cc", |
1095 "prefs/scoped_user_pref_update.h", | 1106 "prefs/scoped_user_pref_update.h", |
1096 "prefs/value_map_pref_store.cc", | 1107 "prefs/value_map_pref_store.cc", |
1097 "prefs/value_map_pref_store.h", | 1108 "prefs/value_map_pref_store.h", |
1098 "prefs/writeable_pref_store.h", | |
1099 ] | 1109 ] |
| 1110 if (!is_ios) { |
| 1111 sources += [ |
| 1112 "prefs/base_prefs_export.h", |
| 1113 "prefs/persistent_pref_store.h", |
| 1114 "prefs/pref_filter.h", |
| 1115 "prefs/pref_notifier.h", |
| 1116 "prefs/pref_observer.h", |
| 1117 "prefs/writeable_pref_store.h", |
| 1118 ] |
| 1119 } |
1100 | 1120 |
1101 defines = [ "BASE_PREFS_IMPLEMENTATION" ] | 1121 defines = [ "BASE_PREFS_IMPLEMENTATION" ] |
1102 | 1122 |
1103 deps = [ | 1123 deps = [ |
1104 ":base", | 1124 ":base", |
1105 ] | 1125 ] |
1106 | 1126 |
1107 if (!is_debug) { | 1127 if (!is_debug) { |
1108 configs -= [ "//build/config/compiler:optimize" ] | 1128 configs -= [ "//build/config/compiler:optimize" ] |
1109 configs += [ "//build/config/compiler:optimize_max" ] | 1129 configs += [ "//build/config/compiler:optimize_max" ] |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1625 | 1645 |
1626 # GYP: //base.gyp:base_java_unittest_support | 1646 # GYP: //base.gyp:base_java_unittest_support |
1627 android_library("base_java_unittest_support") { | 1647 android_library("base_java_unittest_support") { |
1628 deps = [ | 1648 deps = [ |
1629 ":base_java", | 1649 ":base_java", |
1630 ] | 1650 ] |
1631 java_files = | 1651 java_files = |
1632 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1652 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1633 } | 1653 } |
1634 } | 1654 } |
OLD | NEW |