| 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 } |
| 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 Loading... |
| 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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 "win/scoped_bstr_unittest.cc", | 1276 "win/scoped_bstr_unittest.cc", |
| 1273 "win/scoped_comptr_unittest.cc", | 1277 "win/scoped_comptr_unittest.cc", |
| 1274 "win/scoped_process_information_unittest.cc", | 1278 "win/scoped_process_information_unittest.cc", |
| 1275 "win/scoped_variant_unittest.cc", | 1279 "win/scoped_variant_unittest.cc", |
| 1276 "win/shortcut_unittest.cc", | 1280 "win/shortcut_unittest.cc", |
| 1277 "win/startup_information_unittest.cc", | 1281 "win/startup_information_unittest.cc", |
| 1278 "win/win_util_unittest.cc", | 1282 "win/win_util_unittest.cc", |
| 1279 "win/wrapped_window_proc_unittest.cc", | 1283 "win/wrapped_window_proc_unittest.cc", |
| 1280 ] | 1284 ] |
| 1281 | 1285 |
| 1282 defines = [] | |
| 1283 | |
| 1284 deps = [ | 1286 deps = [ |
| 1285 ":base", | 1287 ":base", |
| 1286 ":i18n", | 1288 ":i18n", |
| 1287 ":message_loop_tests", | 1289 ":message_loop_tests", |
| 1288 ":prefs", | 1290 ":prefs", |
| 1289 ":prefs_test_support", | 1291 ":prefs_test_support", |
| 1290 "//base/allocator", | 1292 "//base/allocator", |
| 1291 "//base/test:run_all_unittests", | 1293 "//base/test:run_all_unittests", |
| 1292 "//base/test:test_support", | 1294 "//base/test:test_support", |
| 1293 "//base/third_party/dynamic_annotations", | 1295 "//base/third_party/dynamic_annotations", |
| 1294 "//base/third_party/nspr", | 1296 "//base/third_party/nspr", |
| 1295 "//testing/gmock", | 1297 "//testing/gmock", |
| 1296 "//testing/gtest", | 1298 "//testing/gtest", |
| 1297 "//third_party/icu", | 1299 "//third_party/icu", |
| 1298 ] | 1300 ] |
| 1299 | 1301 |
| 1300 # Allow more direct string conversions on platforms with native utf8 | 1302 # Allow more direct string conversions on platforms with native utf8 |
| 1301 # strings | 1303 # strings |
| 1302 if (is_mac || is_ios || is_chromeos) { | 1304 if (is_mac || is_ios || is_chromeos) { |
| 1303 defines += [ "SYSTEM_NATIVE_UTF8" ] | 1305 defines = [ "SYSTEM_NATIVE_UTF8" ] |
| 1304 } | 1306 } |
| 1305 | 1307 |
| 1306 if (is_android) { | 1308 if (is_android) { |
| 1307 apk_deps = [ | 1309 apk_deps = [ |
| 1308 ":base_java", | 1310 ":base_java", |
| 1309 ":base_java_unittest_support", | 1311 ":base_java_unittest_support", |
| 1310 ] | 1312 ] |
| 1311 } | 1313 } |
| 1312 | 1314 |
| 1313 if (is_ios) { | 1315 if (is_ios) { |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 | 1461 |
| 1460 # GYP: //base.gyp:base_java_unittest_support | 1462 # GYP: //base.gyp:base_java_unittest_support |
| 1461 android_library("base_java_unittest_support") { | 1463 android_library("base_java_unittest_support") { |
| 1462 deps = [ | 1464 deps = [ |
| 1463 ":base_java", | 1465 ":base_java", |
| 1464 ] | 1466 ] |
| 1465 java_files = | 1467 java_files = |
| 1466 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1468 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
| 1467 } | 1469 } |
| 1468 } | 1470 } |
| OLD | NEW |