Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1067)

Side by Side Diff: base/BUILD.gn

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « DEPS ('k') | base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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") {
13 defines = [ "BASE_IMPLEMENTATION" ]
14 }
15
12 source_set("base_paths") { 16 source_set("base_paths") {
13 sources = [ 17 sources = [
14 "base_paths.cc", 18 "base_paths.cc",
15 "base_paths.h", 19 "base_paths.h",
16 "base_paths_android.cc", 20 "base_paths_android.cc",
17 "base_paths_android.h", 21 "base_paths_android.h",
18 "base_paths_mac.h", 22 "base_paths_mac.h",
19 "base_paths_mac.mm", 23 "base_paths_mac.mm",
20 "base_paths_posix.cc", 24 "base_paths_posix.cc",
21 "base_paths_posix.h", 25 "base_paths_posix.h",
22 "base_paths_win.cc", 26 "base_paths_win.cc",
23 "base_paths_win.h", 27 "base_paths_win.h",
24 ] 28 ]
25 29
26 if (is_android || is_mac) { 30 if (is_android || is_mac) {
27 sources -= [ "base_paths_posix.cc" ] 31 sources -= [ "base_paths_posix.cc" ]
28 } 32 }
29 33
30 if (is_nacl) { 34 if (is_nacl) {
31 sources -= [ 35 sources -= [
32 "base_paths.cc", 36 "base_paths.cc",
33 "base_paths_posix.cc", 37 "base_paths_posix.cc",
34 ] 38 ]
35 } 39 }
36 40
37 defines = [ "BASE_IMPLEMENTATION" ] 41 configs += [ ":base_implementation" ]
38 42
39 deps = [ 43 deps = [
40 "//base/memory", 44 "//base/memory",
41 "//base/process", 45 "//base/process",
42 ] 46 ]
43 47
44 visibility = [ ":base" ] 48 visibility = [ ":base" ]
45 } 49 }
46 50
47 component("base") { 51 component("base") {
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 "win/windows_version.h", 604 "win/windows_version.h",
601 "win/wrapped_window_proc.cc", 605 "win/wrapped_window_proc.cc",
602 "win/wrapped_window_proc.h", 606 "win/wrapped_window_proc.h",
603 ] 607 ]
604 608
605 sources -= [ 609 sources -= [
606 "sys_info_freebsd.cc", 610 "sys_info_freebsd.cc",
607 "sys_info_openbsd.cc", 611 "sys_info_openbsd.cc",
608 ] 612 ]
609 613
610 defines = [ "BASE_IMPLEMENTATION" ] 614 configs += [ ":base_implementation" ]
611 615
612 deps = [ 616 deps = [
613 ":base_static", 617 ":base_static",
614 "//base/allocator:allocator_extension_thunks", 618 "//base/allocator:allocator_extension_thunks",
615 "//base/third_party/dynamic_annotations", 619 "//base/third_party/dynamic_annotations",
616 "//base/third_party/nspr", 620 "//base/third_party/nspr",
617 "//third_party/modp_b64", 621 "//third_party/modp_b64",
618 ] 622 ]
619 623
620 public_deps = [ 624 public_deps = [
621 ":base_paths", 625 ":base_paths",
622 "//base/debug", 626 "//base/debug",
623 "//base/json", 627 "//base/json",
624 "//base/memory", 628 "//base/memory",
625 "//base/metrics", 629 "//base/metrics",
626 "//base/process", 630 "//base/process",
627 "//base/trace_event", 631 "//base/trace_event",
628 ] 632 ]
629 633
630 # Allow more direct string conversions on platforms with native utf8 634 # Allow more direct string conversions on platforms with native utf8
631 # strings 635 # strings
632 if (is_mac || is_ios || is_chromeos) { 636 if (is_mac || is_ios || is_chromeos) {
633 defines += [ "SYSTEM_NATIVE_UTF8" ] 637 defines = [ "SYSTEM_NATIVE_UTF8" ]
634 } 638 }
635 639
636 if (is_android) { 640 if (is_android) {
637 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] 641 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ]
638 642
639 # Android uses some Linux sources, put those back. 643 # Android uses some Linux sources, put those back.
640 set_sources_assignment_filter([]) 644 set_sources_assignment_filter([])
641 sources += [ 645 sources += [
642 "files/file_path_watcher_linux.cc", 646 "files/file_path_watcher_linux.cc",
643 "posix/unix_domain_socket_linux.cc", 647 "posix/unix_domain_socket_linux.cc",
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 if (is_linux) { 755 if (is_linux) {
752 # TODO(brettw) this will need to be parameterized at some point. 756 # TODO(brettw) this will need to be parameterized at some point.
753 linux_configs = [] 757 linux_configs = []
754 if (use_glib) { 758 if (use_glib) {
755 linux_configs += [ "//build/config/linux:glib" ] 759 linux_configs += [ "//build/config/linux:glib" ]
756 } 760 }
757 761
758 configs += linux_configs 762 configs += linux_configs
759 all_dependent_configs = linux_configs 763 all_dependent_configs = linux_configs
760 764
761 defines += [ "USE_SYMBOLIZE" ]
762
763 # These dependencies are not required on Android, and in the case 765 # These dependencies are not required on Android, and in the case
764 # of xdg_mime must be excluded due to licensing restrictions. 766 # of xdg_mime must be excluded due to licensing restrictions.
765 deps += [ 767 deps += [
766 "//base/third_party/symbolize",
767 "//base/third_party/xdg_mime", 768 "//base/third_party/xdg_mime",
768 "//base/third_party/xdg_user_dirs", 769 "//base/third_party/xdg_user_dirs",
769 ] 770 ]
770 } else { 771 } else {
771 # Non-Linux. 772 # Non-Linux.
772 sources -= [ 773 sources -= [
773 "nix/mime_util_xdg.cc", 774 "nix/mime_util_xdg.cc",
774 "nix/mime_util_xdg.h", 775 "nix/mime_util_xdg.h",
775 "nix/xdg_util.cc", 776 "nix/xdg_util.cc",
776 "nix/xdg_util.h", 777 "nix/xdg_util.h",
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 "mac/bind_objc_block_unittest.mm", 1129 "mac/bind_objc_block_unittest.mm",
1129 "mac/foundation_util_unittest.mm", 1130 "mac/foundation_util_unittest.mm",
1130 "mac/libdispatch_task_runner_unittest.cc", 1131 "mac/libdispatch_task_runner_unittest.cc",
1131 "mac/mac_util_unittest.mm", 1132 "mac/mac_util_unittest.mm",
1132 "mac/objc_property_releaser_unittest.mm", 1133 "mac/objc_property_releaser_unittest.mm",
1133 "mac/scoped_nsobject_unittest.mm", 1134 "mac/scoped_nsobject_unittest.mm",
1134 "mac/scoped_objc_class_swizzler_unittest.mm", 1135 "mac/scoped_objc_class_swizzler_unittest.mm",
1135 "mac/scoped_sending_event_unittest.mm", 1136 "mac/scoped_sending_event_unittest.mm",
1136 "md5_unittest.cc", 1137 "md5_unittest.cc",
1137 "memory/aligned_memory_unittest.cc", 1138 "memory/aligned_memory_unittest.cc",
1138 "memory/discardable_memory_unittest.cc",
1139 "memory/discardable_shared_memory_unittest.cc", 1139 "memory/discardable_shared_memory_unittest.cc",
1140 "memory/linked_ptr_unittest.cc", 1140 "memory/linked_ptr_unittest.cc",
1141 "memory/ref_counted_memory_unittest.cc", 1141 "memory/ref_counted_memory_unittest.cc",
1142 "memory/ref_counted_unittest.cc", 1142 "memory/ref_counted_unittest.cc",
1143 "memory/scoped_ptr_unittest.cc", 1143 "memory/scoped_ptr_unittest.cc",
1144 "memory/scoped_ptr_unittest.nc", 1144 "memory/scoped_ptr_unittest.nc",
1145 "memory/scoped_vector_unittest.cc", 1145 "memory/scoped_vector_unittest.cc",
1146 "memory/shared_memory_unittest.cc", 1146 "memory/shared_memory_unittest.cc",
1147 "memory/singleton_unittest.cc", 1147 "memory/singleton_unittest.cc",
1148 "memory/weak_ptr_unittest.cc", 1148 "memory/weak_ptr_unittest.cc",
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 "win/scoped_bstr_unittest.cc", 1276 "win/scoped_bstr_unittest.cc",
1277 "win/scoped_comptr_unittest.cc", 1277 "win/scoped_comptr_unittest.cc",
1278 "win/scoped_process_information_unittest.cc", 1278 "win/scoped_process_information_unittest.cc",
1279 "win/scoped_variant_unittest.cc", 1279 "win/scoped_variant_unittest.cc",
1280 "win/shortcut_unittest.cc", 1280 "win/shortcut_unittest.cc",
1281 "win/startup_information_unittest.cc", 1281 "win/startup_information_unittest.cc",
1282 "win/win_util_unittest.cc", 1282 "win/win_util_unittest.cc",
1283 "win/wrapped_window_proc_unittest.cc", 1283 "win/wrapped_window_proc_unittest.cc",
1284 ] 1284 ]
1285 1285
1286 defines = []
1287
1288 deps = [ 1286 deps = [
1289 ":base", 1287 ":base",
1290 ":i18n", 1288 ":i18n",
1291 ":message_loop_tests", 1289 ":message_loop_tests",
1292 ":prefs", 1290 ":prefs",
1293 ":prefs_test_support", 1291 ":prefs_test_support",
1294 "//base/allocator", 1292 "//base/allocator",
1295 "//base/test:run_all_unittests", 1293 "//base/test:run_all_unittests",
1296 "//base/test:test_support", 1294 "//base/test:test_support",
1297 "//base/third_party/dynamic_annotations", 1295 "//base/third_party/dynamic_annotations",
1298 "//base/third_party/nspr", 1296 "//base/third_party/nspr",
1299 "//testing/gmock", 1297 "//testing/gmock",
1300 "//testing/gtest", 1298 "//testing/gtest",
1301 "//third_party/icu", 1299 "//third_party/icu",
1302 ] 1300 ]
1303 1301
1304 # Allow more direct string conversions on platforms with native utf8 1302 # Allow more direct string conversions on platforms with native utf8
1305 # strings 1303 # strings
1306 if (is_mac || is_ios || is_chromeos) { 1304 if (is_mac || is_ios || is_chromeos) {
1307 defines += [ "SYSTEM_NATIVE_UTF8" ] 1305 defines = [ "SYSTEM_NATIVE_UTF8" ]
1308 } 1306 }
1309 1307
1310 if (is_android) { 1308 if (is_android) {
1311 apk_deps = [ 1309 apk_deps = [
1312 ":base_java", 1310 ":base_java",
1313 ":base_java_unittest_support", 1311 ":base_java_unittest_support",
1314 ] 1312 ]
1315 } 1313 }
1316 1314
1317 if (is_ios) { 1315 if (is_ios) {
(...skipping 16 matching lines...) Expand all
1334 "sys_string_conversions_mac_unittest.mm", 1332 "sys_string_conversions_mac_unittest.mm",
1335 ] 1333 ]
1336 set_sources_assignment_filter(sources_assignment_filter) 1334 set_sources_assignment_filter(sources_assignment_filter)
1337 1335
1338 # TODO(GYP): dep on copy_test_data_ios action. 1336 # TODO(GYP): dep on copy_test_data_ios action.
1339 } 1337 }
1340 1338
1341 if (is_linux) { 1339 if (is_linux) {
1342 sources -= [ "file_version_info_unittest.cc" ] 1340 sources -= [ "file_version_info_unittest.cc" ]
1343 sources += [ "nix/xdg_util_unittest.cc" ] 1341 sources += [ "nix/xdg_util_unittest.cc" ]
1344 defines += [ "USE_SYMBOLIZE" ]
1345 if (use_glib) { 1342 if (use_glib) {
1346 configs += [ "//build/config/linux:glib" ] 1343 configs += [ "//build/config/linux:glib" ]
1347 } 1344 }
1348 } 1345 }
1349 1346
1350 if (!is_linux || use_ozone) { 1347 if (!is_linux || use_ozone) {
1351 sources -= [ "message_loop/message_pump_glib_unittest.cc" ] 1348 sources -= [ "message_loop/message_pump_glib_unittest.cc" ]
1352 } 1349 }
1353 1350
1354 if (is_posix || is_ios) { 1351 if (is_posix || is_ios) {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 1461
1465 # GYP: //base.gyp:base_java_unittest_support 1462 # GYP: //base.gyp:base_java_unittest_support
1466 android_library("base_java_unittest_support") { 1463 android_library("base_java_unittest_support") {
1467 deps = [ 1464 deps = [
1468 ":base_java", 1465 ":base_java",
1469 ] 1466 ]
1470 java_files = 1467 java_files =
1471 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] 1468 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]
1472 } 1469 }
1473 } 1470 }
OLDNEW
« no previous file with comments | « DEPS ('k') | base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698