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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 "win/startup_information.h", | 748 "win/startup_information.h", |
749 "win/win_util.cc", | 749 "win/win_util.cc", |
750 "win/win_util.h", | 750 "win/win_util.h", |
751 "win/windows_version.cc", | 751 "win/windows_version.cc", |
752 "win/windows_version.h", | 752 "win/windows_version.h", |
753 "win/wrapped_window_proc.cc", | 753 "win/wrapped_window_proc.cc", |
754 "win/wrapped_window_proc.h", | 754 "win/wrapped_window_proc.h", |
755 ] | 755 ] |
756 | 756 |
757 if (is_nacl) { | 757 if (is_nacl) { |
758 sources += [ "files/file_path_watcher_stub.cc" ] | 758 # We reset sources_assignment_filter in order to explicitly include |
| 759 # the linux file (which would otherwise be filtered out). |
| 760 set_sources_assignment_filter([]) |
| 761 sources += [ |
| 762 "files/file_path_watcher_stub.cc", |
| 763 "sync_socket_nacl.cc", |
| 764 "threading/platform_thread_linux.cc", |
| 765 ] |
| 766 set_sources_assignment_filter(sources_assignment_filter) |
| 767 |
| 768 sources -= [ |
| 769 "allocator/type_profiler_control.cc", |
| 770 "allocator/type_profiler_control.h", |
| 771 "async_socket_io_handler_posix.cc", |
| 772 "base_paths.cc", |
| 773 "cpu.cc", |
| 774 "files/file_proxy.cc", |
| 775 "files/file_util.cc", |
| 776 "files/file_util_proxy.cc", |
| 777 "path_service.cc", |
| 778 "scoped_native_library.cc", |
| 779 "files/scoped_temp_dir.cc", |
| 780 ] |
759 } | 781 } |
760 | 782 |
761 sources -= [ | 783 sources -= [ |
762 "process/process_handle_freebsd.cc", | 784 "process/process_handle_freebsd.cc", |
763 "process/process_handle_openbsd.cc", | 785 "process/process_handle_openbsd.cc", |
764 "process/process_iterator_freebsd.cc", | 786 "process/process_iterator_freebsd.cc", |
765 "process/process_iterator_openbsd.cc", | 787 "process/process_iterator_openbsd.cc", |
766 "process/process_metrics_freebsd.cc", | 788 "process/process_metrics_freebsd.cc", |
767 "process/process_metrics_openbsd.cc", | 789 "process/process_metrics_openbsd.cc", |
768 "sys_info_freebsd.cc", | 790 "sys_info_freebsd.cc", |
769 "sys_info_openbsd.cc", | 791 "sys_info_openbsd.cc", |
770 ] | 792 ] |
771 | 793 |
772 defines = [ "BASE_IMPLEMENTATION" ] | 794 defines = [ "BASE_IMPLEMENTATION" ] |
773 | 795 |
774 deps = [ | 796 deps = [ |
775 ":base_static", | 797 ":base_static", |
776 "//base/allocator:allocator_extension_thunks", | 798 "//base/allocator:allocator_extension_thunks", |
777 "//base/third_party/dynamic_annotations", | |
778 "//base/third_party/nspr", | 799 "//base/third_party/nspr", |
779 "//third_party/modp_b64", | 800 "//third_party/modp_b64", |
780 ] | 801 ] |
781 | 802 |
| 803 if (!is_nacl) { |
| 804 deps += [ "//base/third_party/dynamic_annotations" ] |
| 805 } |
| 806 |
782 # Allow more direct string conversions on platforms with native utf8 | 807 # Allow more direct string conversions on platforms with native utf8 |
783 # strings | 808 # strings |
784 if (is_mac || is_ios || is_chromeos) { | 809 if (is_mac || is_ios || is_chromeos) { |
785 defines += [ "SYSTEM_NATIVE_UTF8" ] | 810 defines += [ "SYSTEM_NATIVE_UTF8" ] |
786 } | 811 } |
787 | 812 |
788 if (is_android) { | 813 if (is_android) { |
789 sources += [ | 814 sources += [ |
790 "memory/discardable_memory_ashmem_allocator.cc", | 815 "memory/discardable_memory_ashmem_allocator.cc", |
791 "memory/discardable_memory_ashmem_allocator.h", | 816 "memory/discardable_memory_ashmem_allocator.h", |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] | 853 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] |
829 } | 854 } |
830 | 855 |
831 if (is_nacl) { | 856 if (is_nacl) { |
832 # These things would otherwise be built on a Posix build but aren't | 857 # These things would otherwise be built on a Posix build but aren't |
833 # supported on NaCl. | 858 # supported on NaCl. |
834 sources -= [ | 859 sources -= [ |
835 "debug/stack_trace_posix.cc", | 860 "debug/stack_trace_posix.cc", |
836 "files/file_enumerator_posix.cc", | 861 "files/file_enumerator_posix.cc", |
837 "files/file_util_posix.cc", | 862 "files/file_util_posix.cc", |
| 863 "memory/shared_memory_posix.cc", |
838 "message_loop/message_pump_libevent.cc", | 864 "message_loop/message_pump_libevent.cc", |
| 865 "metrics/field_trial.cc", |
| 866 "native_library_posix.cc", |
839 "process/kill_posix.cc", | 867 "process/kill_posix.cc", |
840 "process/launch_posix.cc", | 868 "process/launch_posix.cc", |
841 "process/process_metrics_posix.cc", | 869 "process/process_metrics_posix.cc", |
842 "process/process_posix.cc", | 870 "process/process_posix.cc", |
843 "metrics/field_trial.cc", | 871 "rand_util_posix.cc", |
844 "native_library_posix.cc", | |
845 "memory/shared_memory_posix.cc", | |
846 "sync_socket_posix.cc", | 872 "sync_socket_posix.cc", |
847 "sys_info_posix.cc", | 873 "sys_info_posix.cc", |
848 ] | 874 ] |
849 } else { | 875 } else { |
850 # Remove nacl stuff. | 876 # Remove nacl stuff. |
851 sources -= [ | 877 sources -= [ |
852 "os_compat_nacl.cc", | 878 "os_compat_nacl.cc", |
853 "os_compat_nacl.h", | 879 "os_compat_nacl.h", |
854 "rand_util_nacl.cc", | 880 "rand_util_nacl.cc", |
855 "memory/shared_memory_nacl.cc", | 881 "memory/shared_memory_nacl.cc", |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 "i18n/time_formatting.h", | 1037 "i18n/time_formatting.h", |
1012 "i18n/timezone.cc", | 1038 "i18n/timezone.cc", |
1013 "i18n/timezone.h", | 1039 "i18n/timezone.h", |
1014 "i18n/utf8_validator_tables.cc", | 1040 "i18n/utf8_validator_tables.cc", |
1015 "i18n/utf8_validator_tables.h", | 1041 "i18n/utf8_validator_tables.h", |
1016 ] | 1042 ] |
1017 defines = [ "BASE_I18N_IMPLEMENTATION" ] | 1043 defines = [ "BASE_I18N_IMPLEMENTATION" ] |
1018 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 1044 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
1019 deps = [ | 1045 deps = [ |
1020 ":base", | 1046 ":base", |
1021 "//base/third_party/dynamic_annotations", | |
1022 "//third_party/icu", | 1047 "//third_party/icu", |
1023 ] | 1048 ] |
1024 | 1049 |
| 1050 if (!is_nacl) { |
| 1051 deps += [ "//base/third_party/dynamic_annotations" ] |
| 1052 } |
| 1053 |
1025 if (is_android && !is_debug) { | 1054 if (is_android && !is_debug) { |
1026 configs -= [ "//build/config/compiler:optimize" ] | 1055 configs -= [ "//build/config/compiler:optimize" ] |
1027 configs += [ "//build/config/compiler:optimize_max" ] | 1056 configs += [ "//build/config/compiler:optimize_max" ] |
1028 } | 1057 } |
1029 | 1058 |
1030 if (is_win) { | 1059 if (is_win) { |
1031 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1060 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1032 cflags = [ "/wd4267" ] | 1061 cflags = [ "/wd4267" ] |
1033 } | 1062 } |
1034 } | 1063 } |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1433 sources += [ "debug/proc_maps_linux_unittest.cc" ] | 1462 sources += [ "debug/proc_maps_linux_unittest.cc" ] |
1434 set_sources_assignment_filter(sources_assignment_filter) | 1463 set_sources_assignment_filter(sources_assignment_filter) |
1435 } | 1464 } |
1436 | 1465 |
1437 if (is_win) { | 1466 if (is_win) { |
1438 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1467 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1439 cflags = [ "/wd4267" ] | 1468 cflags = [ "/wd4267" ] |
1440 } | 1469 } |
1441 } | 1470 } |
1442 | 1471 |
| 1472 test("base_i18n_perftests") { |
| 1473 sources = [ |
| 1474 "i18n/streaming_utf8_validator_perftest.cc", |
| 1475 ] |
| 1476 |
| 1477 deps = [ |
| 1478 ":base", |
| 1479 ":i18n", |
| 1480 "//base/test/:test_support", |
| 1481 "//base/test/:test_support_perf", |
| 1482 "//testing/gtest", |
| 1483 ] |
| 1484 } |
| 1485 |
1443 if (is_android) { | 1486 if (is_android) { |
1444 # GYP: //base.gyp:base_jni_headers | 1487 # GYP: //base.gyp:base_jni_headers |
1445 generate_jni("base_jni_headers") { | 1488 generate_jni("base_jni_headers") { |
1446 sources = [ | 1489 sources = [ |
1447 "android/java/src/org/chromium/base/ApplicationStatus.java", | 1490 "android/java/src/org/chromium/base/ApplicationStatus.java", |
1448 "android/java/src/org/chromium/base/BuildInfo.java", | 1491 "android/java/src/org/chromium/base/BuildInfo.java", |
1449 "android/java/src/org/chromium/base/CommandLine.java", | 1492 "android/java/src/org/chromium/base/CommandLine.java", |
1450 "android/java/src/org/chromium/base/ContentUriUtils.java", | 1493 "android/java/src/org/chromium/base/ContentUriUtils.java", |
1451 "android/java/src/org/chromium/base/CpuFeatures.java", | 1494 "android/java/src/org/chromium/base/CpuFeatures.java", |
1452 "android/java/src/org/chromium/base/EventLog.java", | 1495 "android/java/src/org/chromium/base/EventLog.java", |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1533 | 1576 |
1534 # GYP: //base.gyp:base_java_unittest_support | 1577 # GYP: //base.gyp:base_java_unittest_support |
1535 android_library("base_java_unittest_support") { | 1578 android_library("base_java_unittest_support") { |
1536 deps = [ | 1579 deps = [ |
1537 ":base_java", | 1580 ":base_java", |
1538 ] | 1581 ] |
1539 java_files = | 1582 java_files = |
1540 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1583 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1541 } | 1584 } |
1542 } | 1585 } |
OLD | NEW |