Chromium Code Reviews| 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 757 "win/startup_information.h", | 757 "win/startup_information.h", |
| 758 "win/win_util.cc", | 758 "win/win_util.cc", |
| 759 "win/win_util.h", | 759 "win/win_util.h", |
| 760 "win/windows_version.cc", | 760 "win/windows_version.cc", |
| 761 "win/windows_version.h", | 761 "win/windows_version.h", |
| 762 "win/wrapped_window_proc.cc", | 762 "win/wrapped_window_proc.cc", |
| 763 "win/wrapped_window_proc.h", | 763 "win/wrapped_window_proc.h", |
| 764 ] | 764 ] |
| 765 | 765 |
| 766 if (is_nacl) { | 766 if (is_nacl) { |
| 767 sources += [ "files/file_path_watcher_stub.cc" ] | 767 # We reset sources_assignment_filter in order to explicitly include |
| 768 # the linux file (which would otherwise be filtered out). | |
| 769 set_sources_assignment_filter([]) | |
| 770 sources += [ | |
| 771 "files/file_path_watcher_stub.cc", | |
| 772 "sync_socket_nacl.cc", | |
| 773 "threading/platform_thread_linux.cc", | |
| 774 ] | |
| 775 set_sources_assignment_filter(sources_assignment_filter) | |
| 776 | |
| 777 sources -= [ | |
| 778 "allocator/type_profiler_control.cc", | |
| 779 "allocator/type_profiler_control.h", | |
| 780 "async_socket_io_handler_posix.cc", | |
| 781 "base_paths.cc", | |
| 782 "cpu.cc", | |
| 783 "files/file_proxy.cc", | |
| 784 "files/file_util.cc", | |
| 785 "files/file_util_proxy.cc", | |
| 786 "path_service.cc", | |
| 787 "scoped_native_library.cc", | |
| 788 "files/scoped_temp_dir.cc", | |
| 789 ] | |
| 768 } | 790 } |
| 769 | 791 |
| 770 sources -= [ | 792 sources -= [ |
| 771 "process/process_handle_freebsd.cc", | 793 "process/process_handle_freebsd.cc", |
| 772 "process/process_handle_openbsd.cc", | 794 "process/process_handle_openbsd.cc", |
| 773 "process/process_iterator_freebsd.cc", | 795 "process/process_iterator_freebsd.cc", |
| 774 "process/process_iterator_openbsd.cc", | 796 "process/process_iterator_openbsd.cc", |
| 775 "process/process_metrics_freebsd.cc", | 797 "process/process_metrics_freebsd.cc", |
| 776 "process/process_metrics_openbsd.cc", | 798 "process/process_metrics_openbsd.cc", |
| 777 "sys_info_freebsd.cc", | 799 "sys_info_freebsd.cc", |
| 778 "sys_info_openbsd.cc", | 800 "sys_info_openbsd.cc", |
| 779 ] | 801 ] |
| 780 | 802 |
| 781 defines = [ "BASE_IMPLEMENTATION" ] | 803 defines = [ "BASE_IMPLEMENTATION" ] |
| 782 | 804 |
| 783 deps = [ | 805 deps = [ |
| 784 ":base_static", | 806 ":base_static", |
| 785 "//base/allocator:allocator_extension_thunks", | 807 "//base/allocator:allocator_extension_thunks", |
| 786 "//base/third_party/dynamic_annotations", | |
| 787 "//base/third_party/nspr", | 808 "//base/third_party/nspr", |
| 788 "//third_party/modp_b64", | 809 "//third_party/modp_b64", |
| 789 ] | 810 ] |
| 790 | 811 |
| 812 if (!is_nacl) { | |
| 813 deps += [ "//base/third_party/dynamic_annotations" ] | |
|
brettw
2015/02/25 21:27:29
Does dynamic_annotations ever make sense in nacl?
Dirk Pranke
2015/02/25 21:37:40
I don't think so; from what I could tell, we never
| |
| 814 } | |
| 815 | |
| 791 # Allow more direct string conversions on platforms with native utf8 | 816 # Allow more direct string conversions on platforms with native utf8 |
| 792 # strings | 817 # strings |
| 793 if (is_mac || is_ios || is_chromeos) { | 818 if (is_mac || is_ios || is_chromeos) { |
| 794 defines += [ "SYSTEM_NATIVE_UTF8" ] | 819 defines += [ "SYSTEM_NATIVE_UTF8" ] |
| 795 } | 820 } |
| 796 | 821 |
| 797 if (is_android) { | 822 if (is_android) { |
| 798 sources += [ | 823 sources += [ |
| 799 "memory/discardable_memory_ashmem.cc", | 824 "memory/discardable_memory_ashmem.cc", |
| 800 "memory/discardable_memory_ashmem.h", | 825 "memory/discardable_memory_ashmem.h", |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 845 "files/file_enumerator_posix.cc", | 870 "files/file_enumerator_posix.cc", |
| 846 "files/file_util_posix.cc", | 871 "files/file_util_posix.cc", |
| 847 "memory/shared_memory_posix.cc", | 872 "memory/shared_memory_posix.cc", |
| 848 "message_loop/message_pump_libevent.cc", | 873 "message_loop/message_pump_libevent.cc", |
| 849 "metrics/field_trial.cc", | 874 "metrics/field_trial.cc", |
| 850 "native_library_posix.cc", | 875 "native_library_posix.cc", |
| 851 "process/kill_posix.cc", | 876 "process/kill_posix.cc", |
| 852 "process/launch_posix.cc", | 877 "process/launch_posix.cc", |
| 853 "process/process_metrics_posix.cc", | 878 "process/process_metrics_posix.cc", |
| 854 "process/process_posix.cc", | 879 "process/process_posix.cc", |
| 880 "rand_util_posix.cc", | |
| 855 "sync_socket_posix.cc", | 881 "sync_socket_posix.cc", |
| 856 "sys_info_posix.cc", | 882 "sys_info_posix.cc", |
| 857 ] | 883 ] |
| 858 } else { | 884 } else { |
| 859 # Remove nacl stuff. | 885 # Remove nacl stuff. |
| 860 sources -= [ | 886 sources -= [ |
| 861 "memory/shared_memory_nacl.cc", | 887 "memory/shared_memory_nacl.cc", |
| 862 "os_compat_nacl.cc", | 888 "os_compat_nacl.cc", |
| 863 "os_compat_nacl.h", | 889 "os_compat_nacl.h", |
| 864 "rand_util_nacl.cc", | 890 "rand_util_nacl.cc", |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1020 "i18n/time_formatting.h", | 1046 "i18n/time_formatting.h", |
| 1021 "i18n/timezone.cc", | 1047 "i18n/timezone.cc", |
| 1022 "i18n/timezone.h", | 1048 "i18n/timezone.h", |
| 1023 "i18n/utf8_validator_tables.cc", | 1049 "i18n/utf8_validator_tables.cc", |
| 1024 "i18n/utf8_validator_tables.h", | 1050 "i18n/utf8_validator_tables.h", |
| 1025 ] | 1051 ] |
| 1026 defines = [ "BASE_I18N_IMPLEMENTATION" ] | 1052 defines = [ "BASE_I18N_IMPLEMENTATION" ] |
| 1027 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 1053 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 1028 deps = [ | 1054 deps = [ |
| 1029 ":base", | 1055 ":base", |
| 1030 "//base/third_party/dynamic_annotations", | |
| 1031 "//third_party/icu", | 1056 "//third_party/icu", |
| 1032 ] | 1057 ] |
| 1033 | 1058 |
| 1059 if (!is_nacl) { | |
| 1060 deps += [ "//base/third_party/dynamic_annotations" ] | |
|
brettw
2015/02/25 21:27:29
Ditto
| |
| 1061 } | |
| 1062 | |
| 1034 if (is_android && !is_debug) { | 1063 if (is_android && !is_debug) { |
| 1035 configs -= [ "//build/config/compiler:optimize" ] | 1064 configs -= [ "//build/config/compiler:optimize" ] |
| 1036 configs += [ "//build/config/compiler:optimize_max" ] | 1065 configs += [ "//build/config/compiler:optimize_max" ] |
| 1037 } | 1066 } |
| 1038 | 1067 |
| 1039 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1068 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1040 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1069 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1041 } | 1070 } |
| 1042 | 1071 |
| 1043 source_set("prefs") { | 1072 source_set("prefs") { |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1547 | 1576 |
| 1548 # GYP: //base.gyp:base_java_unittest_support | 1577 # GYP: //base.gyp:base_java_unittest_support |
| 1549 android_library("base_java_unittest_support") { | 1578 android_library("base_java_unittest_support") { |
| 1550 deps = [ | 1579 deps = [ |
| 1551 ":base_java", | 1580 ":base_java", |
| 1552 ] | 1581 ] |
| 1553 java_files = | 1582 java_files = |
| 1554 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1583 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
| 1555 } | 1584 } |
| 1556 } | 1585 } |
| OLD | NEW |