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/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 | 7 |
8 component("base") { | 8 component("base") { |
9 sources = [ | 9 sources = [ |
10 "third_party/dmg_fp/dmg_fp.h", | 10 "third_party/dmg_fp/dmg_fp.h", |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 # Windows. | 803 # Windows. |
804 if (is_win) { | 804 if (is_win) { |
805 sources -= [ | 805 sources -= [ |
806 "message_loop/message_pump_libevent.cc", | 806 "message_loop/message_pump_libevent.cc", |
807 "strings/string16.cc", | 807 "strings/string16.cc", |
808 # Not using sha1_win.cc because it may have caused a | 808 # Not using sha1_win.cc because it may have caused a |
809 # regression to page cycler moz. | 809 # regression to page cycler moz. |
810 "sha1_win.cc", | 810 "sha1_win.cc", |
811 ] | 811 ] |
812 | 812 |
813 if (is_component_build) { | 813 libs = [ |
814 sources -= [ "debug/debug_on_start_win.cc" ] | 814 "netapi32.lib", |
815 } | 815 "powrprof.lib", |
816 | 816 ] |
817 # Needed by win_util.h | 817 ldflags = [ |
818 libs = [ "netapi32.lib" ] | 818 "/DELAYLOAD:powrprof.dll", |
| 819 ] |
819 } else if (!is_nacl) { | 820 } else if (!is_nacl) { |
820 # Non-Windows. | 821 # Non-Windows. |
821 deps += [ "//third_party/libevent" ] | 822 deps += [ "//third_party/libevent" ] |
822 } | 823 } |
823 | 824 |
824 # Mac. | 825 # Mac. |
825 if (is_mac) { | 826 if (is_mac) { |
826 sources -= [ | 827 sources -= [ |
827 "base_paths_posix.cc", | 828 "base_paths_posix.cc", |
828 "native_library_posix.cc", | 829 "native_library_posix.cc", |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 "prefs/pref_store.h", | 961 "prefs/pref_store.h", |
961 "prefs/pref_value_map.cc", | 962 "prefs/pref_value_map.cc", |
962 "prefs/pref_value_map.h", | 963 "prefs/pref_value_map.h", |
963 "prefs/pref_value_store.cc", | 964 "prefs/pref_value_store.cc", |
964 "prefs/pref_value_store.h", | 965 "prefs/pref_value_store.h", |
965 "prefs/scoped_user_pref_update.cc", | 966 "prefs/scoped_user_pref_update.cc", |
966 "prefs/scoped_user_pref_update.h", | 967 "prefs/scoped_user_pref_update.h", |
967 "prefs/value_map_pref_store.cc", | 968 "prefs/value_map_pref_store.cc", |
968 "prefs/value_map_pref_store.h", | 969 "prefs/value_map_pref_store.h", |
969 "prefs/writeable_pref_store.h", | 970 "prefs/writeable_pref_store.h", |
970 | |
971 ] | 971 ] |
972 | 972 |
973 defines = [ "BASE_PREFS_IMPLEMENTATION" ] | 973 defines = [ "BASE_PREFS_IMPLEMENTATION" ] |
974 | 974 |
975 deps = [ ":base" ] | 975 deps = [ ":base" ] |
976 } | 976 } |
977 | 977 |
978 source_set("prefs_test_support") { | 978 source_set("prefs_test_support") { |
979 sources = [ | 979 sources = [ |
980 "prefs/mock_pref_change_callback.cc", | 980 "prefs/mock_pref_change_callback.cc", |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 "memory/scoped_vector_unittest.cc", | 1102 "memory/scoped_vector_unittest.cc", |
1103 "memory/shared_memory_unittest.cc", | 1103 "memory/shared_memory_unittest.cc", |
1104 "memory/singleton_unittest.cc", | 1104 "memory/singleton_unittest.cc", |
1105 "memory/weak_ptr_unittest.cc", | 1105 "memory/weak_ptr_unittest.cc", |
1106 "memory/weak_ptr_unittest.nc", | 1106 "memory/weak_ptr_unittest.nc", |
1107 "message_loop/message_loop_proxy_impl_unittest.cc", | 1107 "message_loop/message_loop_proxy_impl_unittest.cc", |
1108 "message_loop/message_loop_proxy_unittest.cc", | 1108 "message_loop/message_loop_proxy_unittest.cc", |
1109 "message_loop/message_loop_unittest.cc", | 1109 "message_loop/message_loop_unittest.cc", |
1110 "message_loop/message_pump_glib_unittest.cc", | 1110 "message_loop/message_pump_glib_unittest.cc", |
1111 "message_loop/message_pump_io_ios_unittest.cc", | 1111 "message_loop/message_pump_io_ios_unittest.cc", |
1112 "message_loop/message_pump_libevent_unittest.cc", | |
1113 "metrics/sample_map_unittest.cc", | 1112 "metrics/sample_map_unittest.cc", |
1114 "metrics/sample_vector_unittest.cc", | 1113 "metrics/sample_vector_unittest.cc", |
1115 "metrics/bucket_ranges_unittest.cc", | 1114 "metrics/bucket_ranges_unittest.cc", |
1116 "metrics/field_trial_unittest.cc", | 1115 "metrics/field_trial_unittest.cc", |
1117 "metrics/histogram_base_unittest.cc", | 1116 "metrics/histogram_base_unittest.cc", |
1118 "metrics/histogram_delta_serialization_unittest.cc", | 1117 "metrics/histogram_delta_serialization_unittest.cc", |
1119 "metrics/histogram_snapshot_manager_unittest.cc", | 1118 "metrics/histogram_snapshot_manager_unittest.cc", |
1120 "metrics/histogram_unittest.cc", | 1119 "metrics/histogram_unittest.cc", |
1121 "metrics/sparse_histogram_unittest.cc", | 1120 "metrics/sparse_histogram_unittest.cc", |
1122 "metrics/stats_table_unittest.cc", | 1121 "metrics/stats_table_unittest.cc", |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 "//base/test:run_all_unittests", | 1243 "//base/test:run_all_unittests", |
1245 "//base/test:test_support", | 1244 "//base/test:test_support", |
1246 "//base/third_party/dynamic_annotations", | 1245 "//base/third_party/dynamic_annotations", |
1247 "//testing/gmock", | 1246 "//testing/gmock", |
1248 "//testing/gtest", | 1247 "//testing/gtest", |
1249 "//third_party/icu", | 1248 "//third_party/icu", |
1250 ] | 1249 ] |
1251 | 1250 |
1252 if (is_ios) { | 1251 if (is_ios) { |
1253 sources -= [ | 1252 sources -= [ |
1254 "message_loop/message_pump_libevent_unittest.cc", # libevent not used. | |
1255 "metrics/stats_table_uinittest.cc", # Requires spawning a process. | 1253 "metrics/stats_table_uinittest.cc", # Requires spawning a process. |
1256 "process/memory_unittest.cc", | 1254 "process/memory_unittest.cc", |
1257 "process/memory_unittest_mac.h", | 1255 "process/memory_unittest_mac.h", |
1258 "process/memory_unittest_mac.mm", | 1256 "process/memory_unittest_mac.mm", |
1259 "process/process_util_unittest.cc", | 1257 "process/process_util_unittest.cc", |
1260 ] | 1258 ] |
1261 | 1259 |
1262 # Pull in specific Mac files for iOS (which have been filtered out by file | 1260 # Pull in specific Mac files for iOS (which have been filtered out by file |
1263 # name rules). | 1261 # name rules). |
1264 set_sources_assignment_filter([]) | 1262 set_sources_assignment_filter([]) |
(...skipping 13 matching lines...) Expand all Loading... |
1278 sources -= [ "file_version_info_unittest.cc" ] | 1276 sources -= [ "file_version_info_unittest.cc" ] |
1279 sources += [ "nix/xdg_util_unittest.cc" ] | 1277 sources += [ "nix/xdg_util_unittest.cc" ] |
1280 defines = [ "USE_SYMBOLIZE" ] | 1278 defines = [ "USE_SYMBOLIZE" ] |
1281 configs += [ "//build/config/linux:glib" ] | 1279 configs += [ "//build/config/linux:glib" ] |
1282 } | 1280 } |
1283 | 1281 |
1284 if (!is_linux || use_ozone) { | 1282 if (!is_linux || use_ozone) { |
1285 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] | 1283 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] |
1286 } | 1284 } |
1287 | 1285 |
1288 if (is_win) { | 1286 if (is_posix || is_ios) { |
1289 sources -= [ | 1287 sources += [ "message_loop/message_pump_libevent_unittest.cc" ] |
1290 "file_descriptor_shuffle_unittest.cc", | |
1291 "files/dir_reader_posix_unittest.cc", | |
1292 "threading/worker_pool_posix_unittest.cc", | |
1293 "message_loop/message_pump_libevent_unittest.cc", | |
1294 ] | |
1295 } | |
1296 | |
1297 if (!is_win || is_ios) { | |
1298 deps += [ "//third_party/libevent" ] | 1288 deps += [ "//third_party/libevent" ] |
1299 } | 1289 } |
1300 | 1290 |
1301 if (is_android) { | 1291 if (is_android) { |
1302 set_sources_assignment_filter([]) | 1292 set_sources_assignment_filter([]) |
1303 sources += [ "debug/proc_maps_linux_unittest.cc" ] | 1293 sources += [ "debug/proc_maps_linux_unittest.cc" ] |
1304 set_sources_assignment_filter(sources_assignment_filter) | 1294 set_sources_assignment_filter(sources_assignment_filter) |
1305 } | 1295 } |
1306 } | 1296 } |
1307 | 1297 |
(...skipping 13 matching lines...) Expand all Loading... |
1321 "android/java/src/org/chromium/base/PathUtils.java", | 1311 "android/java/src/org/chromium/base/PathUtils.java", |
1322 "android/java/src/org/chromium/base/PowerMonitor.java", | 1312 "android/java/src/org/chromium/base/PowerMonitor.java", |
1323 "android/java/src/org/chromium/base/SystemMessageHandler.java", | 1313 "android/java/src/org/chromium/base/SystemMessageHandler.java", |
1324 "android/java/src/org/chromium/base/SysUtils.java", | 1314 "android/java/src/org/chromium/base/SysUtils.java", |
1325 "android/java/src/org/chromium/base/ThreadUtils.java", | 1315 "android/java/src/org/chromium/base/ThreadUtils.java", |
1326 "android/java/src/org/chromium/base/TraceEvent.java", | 1316 "android/java/src/org/chromium/base/TraceEvent.java", |
1327 ] | 1317 ] |
1328 jni_package = "base" | 1318 jni_package = "base" |
1329 } | 1319 } |
1330 } | 1320 } |
OLD | NEW |