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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
749 "win/startup_information.h", | 749 "win/startup_information.h", |
750 "win/win_util.cc", | 750 "win/win_util.cc", |
751 "win/win_util.h", | 751 "win/win_util.h", |
752 "win/windows_version.cc", | 752 "win/windows_version.cc", |
753 "win/windows_version.h", | 753 "win/windows_version.h", |
754 "win/wrapped_window_proc.cc", | 754 "win/wrapped_window_proc.cc", |
755 "win/wrapped_window_proc.h", | 755 "win/wrapped_window_proc.h", |
756 ] | 756 ] |
757 | 757 |
758 if (is_nacl) { | 758 if (is_nacl) { |
759 sources += [ "files/file_path_watcher_stub.cc" ] | 759 set_sources_assignment_filter([]) |
Nick Bray (chromium)
2015/02/05 23:21:45
Why? Comment.
Dirk Pranke
2015/02/05 23:52:19
I will add a comment, but we need to include the _
| |
760 sources += [ | |
761 "files/file_path_watcher_stub.cc", | |
762 "sync_socket_nacl.cc", | |
763 "threading/platform_thread_linux.cc", | |
764 ] | |
765 set_sources_assignment_filter(sources_assignment_filter) | |
766 | |
767 sources -= [ | |
768 "allocator/type_profiler_control.cc", | |
769 "allocator/type_profiler_control.h", | |
770 "async_socket_io_handler_posix.cc", | |
771 "base_paths.cc", | |
772 "cpu.cc", | |
773 "files/file_proxy.cc", | |
774 "files/file_util.cc", | |
775 "files/file_util_proxy.cc", | |
776 "path_service.cc", | |
777 "scoped_native_library.cc", | |
778 "files/scoped_temp_dir.cc", | |
779 ] | |
760 } | 780 } |
761 | 781 |
762 sources -= [ | 782 sources -= [ |
763 "process/process_handle_freebsd.cc", | 783 "process/process_handle_freebsd.cc", |
764 "process/process_handle_openbsd.cc", | 784 "process/process_handle_openbsd.cc", |
765 "process/process_iterator_freebsd.cc", | 785 "process/process_iterator_freebsd.cc", |
766 "process/process_iterator_openbsd.cc", | 786 "process/process_iterator_openbsd.cc", |
767 "process/process_metrics_freebsd.cc", | 787 "process/process_metrics_freebsd.cc", |
768 "process/process_metrics_openbsd.cc", | 788 "process/process_metrics_openbsd.cc", |
769 "sys_info_freebsd.cc", | 789 "sys_info_freebsd.cc", |
770 "sys_info_openbsd.cc", | 790 "sys_info_openbsd.cc", |
771 ] | 791 ] |
772 | 792 |
773 defines = [ "BASE_IMPLEMENTATION" ] | 793 defines = [ "BASE_IMPLEMENTATION" ] |
774 | 794 |
775 deps = [ | 795 deps = [ |
776 ":base_static", | 796 ":base_static", |
777 "//base/allocator:allocator_extension_thunks", | 797 "//base/allocator:allocator_extension_thunks", |
778 "//base/third_party/dynamic_annotations", | |
779 "//base/third_party/nspr", | 798 "//base/third_party/nspr", |
780 "//third_party/modp_b64", | 799 "//third_party/modp_b64", |
781 ] | 800 ] |
782 | 801 |
802 if (!is_nacl) { | |
803 deps += [ "//base/third_party/dynamic_annotations" ] | |
Nick Bray (chromium)
2015/02/05 23:21:45
Nit: comment why?
Dirk Pranke
2015/02/05 23:52:19
I'm not sure what I would say in a comment here; w
| |
804 } | |
805 | |
783 # Allow more direct string conversions on platforms with native utf8 | 806 # Allow more direct string conversions on platforms with native utf8 |
784 # strings | 807 # strings |
785 if (is_mac || is_ios || is_chromeos) { | 808 if (is_mac || is_ios || is_chromeos) { |
786 defines += [ "SYSTEM_NATIVE_UTF8" ] | 809 defines += [ "SYSTEM_NATIVE_UTF8" ] |
787 } | 810 } |
788 | 811 |
789 if (is_android) { | 812 if (is_android) { |
790 sources += [ | 813 sources += [ |
791 "memory/discardable_memory_ashmem_allocator.cc", | 814 "memory/discardable_memory_ashmem_allocator.cc", |
792 "memory/discardable_memory_ashmem_allocator.h", | 815 "memory/discardable_memory_ashmem_allocator.h", |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
829 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] | 852 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] |
830 } | 853 } |
831 | 854 |
832 if (is_nacl) { | 855 if (is_nacl) { |
833 # These things would otherwise be built on a Posix build but aren't | 856 # These things would otherwise be built on a Posix build but aren't |
834 # supported on NaCl. | 857 # supported on NaCl. |
835 sources -= [ | 858 sources -= [ |
836 "debug/stack_trace_posix.cc", | 859 "debug/stack_trace_posix.cc", |
837 "files/file_enumerator_posix.cc", | 860 "files/file_enumerator_posix.cc", |
838 "files/file_util_posix.cc", | 861 "files/file_util_posix.cc", |
862 "memory/shared_memory_posix.cc", | |
839 "message_loop/message_pump_libevent.cc", | 863 "message_loop/message_pump_libevent.cc", |
864 "metrics/field_trial.cc", | |
865 "native_library_posix.cc", | |
840 "process/kill_posix.cc", | 866 "process/kill_posix.cc", |
841 "process/launch_posix.cc", | 867 "process/launch_posix.cc", |
842 "process/process_metrics_posix.cc", | 868 "process/process_metrics_posix.cc", |
843 "process/process_posix.cc", | 869 "process/process_posix.cc", |
844 "metrics/field_trial.cc", | 870 "rand_util_posix.cc", |
845 "native_library_posix.cc", | |
846 "memory/shared_memory_posix.cc", | |
847 "sync_socket_posix.cc", | 871 "sync_socket_posix.cc", |
848 "sys_info_posix.cc", | 872 "sys_info_posix.cc", |
849 ] | 873 ] |
850 } else { | 874 } else { |
851 # Remove nacl stuff. | 875 # Remove nacl stuff. |
852 sources -= [ | 876 sources -= [ |
853 "os_compat_nacl.cc", | 877 "os_compat_nacl.cc", |
854 "os_compat_nacl.h", | 878 "os_compat_nacl.h", |
855 "rand_util_nacl.cc", | 879 "rand_util_nacl.cc", |
856 "memory/shared_memory_nacl.cc", | 880 "memory/shared_memory_nacl.cc", |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1012 "i18n/time_formatting.h", | 1036 "i18n/time_formatting.h", |
1013 "i18n/timezone.cc", | 1037 "i18n/timezone.cc", |
1014 "i18n/timezone.h", | 1038 "i18n/timezone.h", |
1015 "i18n/utf8_validator_tables.cc", | 1039 "i18n/utf8_validator_tables.cc", |
1016 "i18n/utf8_validator_tables.h", | 1040 "i18n/utf8_validator_tables.h", |
1017 ] | 1041 ] |
1018 defines = [ "BASE_I18N_IMPLEMENTATION" ] | 1042 defines = [ "BASE_I18N_IMPLEMENTATION" ] |
1019 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 1043 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
1020 deps = [ | 1044 deps = [ |
1021 ":base", | 1045 ":base", |
1022 "//base/third_party/dynamic_annotations", | |
1023 "//third_party/icu", | 1046 "//third_party/icu", |
1024 ] | 1047 ] |
1025 | 1048 |
1049 if (!is_nacl) { | |
1050 deps += [ "//base/third_party/dynamic_annotations" ] | |
1051 } | |
1052 | |
1026 if (is_android && !is_debug) { | 1053 if (is_android && !is_debug) { |
1027 configs -= [ "//build/config/compiler:optimize" ] | 1054 configs -= [ "//build/config/compiler:optimize" ] |
1028 configs += [ "//build/config/compiler:optimize_max" ] | 1055 configs += [ "//build/config/compiler:optimize_max" ] |
1029 } | 1056 } |
1030 | 1057 |
1031 if (is_win) { | 1058 if (is_win) { |
1032 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1059 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1033 cflags = [ "/wd4267" ] | 1060 cflags = [ "/wd4267" ] |
1034 } | 1061 } |
1035 } | 1062 } |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1534 | 1561 |
1535 # GYP: //base.gyp:base_java_unittest_support | 1562 # GYP: //base.gyp:base_java_unittest_support |
1536 android_library("base_java_unittest_support") { | 1563 android_library("base_java_unittest_support") { |
1537 deps = [ | 1564 deps = [ |
1538 ":base_java", | 1565 ":base_java", |
1539 ] | 1566 ] |
1540 java_files = | 1567 java_files = |
1541 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1568 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1542 } | 1569 } |
1543 } | 1570 } |
OLD | NEW |