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/compiler/compiler.gni") | 5 import("//build/config/compiler/compiler.gni") |
6 import("//build/config/nacl/config.gni") | |
6 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
8 | 9 |
9 if (is_android) { | 10 if (is_android) { |
10 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
11 } | 12 } |
12 | 13 |
13 config("base_implementation") { | 14 config("base_implementation") { |
14 defines = [ "BASE_IMPLEMENTATION" ] | 15 defines = [ "BASE_IMPLEMENTATION" ] |
15 } | 16 } |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
674 deps = [ | 675 deps = [ |
675 ":base_static", | 676 ":base_static", |
676 "//base/allocator:allocator_extension_thunks", | 677 "//base/allocator:allocator_extension_thunks", |
677 "//base/third_party/dynamic_annotations", | 678 "//base/third_party/dynamic_annotations", |
678 "//third_party/modp_b64", | 679 "//third_party/modp_b64", |
679 ] | 680 ] |
680 | 681 |
681 public_deps = [ | 682 public_deps = [ |
682 ":base_paths", | 683 ":base_paths", |
683 "//base/debug", | 684 "//base/debug", |
685 "//base/metrics", | |
Dirk Pranke
2015/10/23 04:18:40
nit: re-sort this (not sure why it moved?)
Petr Hosek
2015/10/23 17:53:07
Done.
| |
684 "//base/json", | 686 "//base/json", |
685 "//base/memory", | 687 "//base/memory", |
686 "//base/metrics", | |
687 "//base/process", | 688 "//base/process", |
688 "//base/trace_event", | 689 "//base/trace_event", |
689 ] | 690 ] |
690 | 691 |
691 # Allow more direct string conversions on platforms with native utf8 | 692 # Allow more direct string conversions on platforms with native utf8 |
692 # strings | 693 # strings |
693 if (is_mac || is_ios || is_chromeos) { | 694 if (is_mac || is_ios || is_chromeos) { |
694 defines = [ "SYSTEM_NATIVE_UTF8" ] | 695 defines = [ "SYSTEM_NATIVE_UTF8" ] |
695 } | 696 } |
696 | 697 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
728 "files/file_path_watcher_stub.cc", | 729 "files/file_path_watcher_stub.cc", |
729 "sync_socket_nacl.cc", | 730 "sync_socket_nacl.cc", |
730 "threading/platform_thread_linux.cc", | 731 "threading/platform_thread_linux.cc", |
731 ] | 732 ] |
732 set_sources_assignment_filter(sources_assignment_filter) | 733 set_sources_assignment_filter(sources_assignment_filter) |
733 | 734 |
734 sources -= [ | 735 sources -= [ |
735 "cpu.cc", | 736 "cpu.cc", |
736 "files/file_enumerator_posix.cc", | 737 "files/file_enumerator_posix.cc", |
737 "files/file_proxy.cc", | 738 "files/file_proxy.cc", |
738 "files/file_util.cc", | |
739 "files/file_util_posix.cc", | |
740 "files/file_util_proxy.cc", | 739 "files/file_util_proxy.cc", |
741 "files/important_file_writer.cc", | 740 "files/important_file_writer.cc", |
742 "files/important_file_writer.h", | 741 "files/important_file_writer.h", |
743 "files/scoped_temp_dir.cc", | 742 "files/scoped_temp_dir.cc", |
744 "message_loop/message_pump_libevent.cc", | |
745 "native_library_posix.cc", | 743 "native_library_posix.cc", |
746 "path_service.cc", | 744 "path_service.cc", |
747 "rand_util_posix.cc", | |
748 "scoped_native_library.cc", | 745 "scoped_native_library.cc", |
749 "sync_socket_posix.cc", | 746 "sync_socket_posix.cc", |
750 "sys_info.cc", | 747 "sys_info.cc", |
751 "sys_info_posix.cc", | 748 "sys_info_posix.cc", |
752 ] | 749 ] |
750 | |
751 if (is_nacl_nonsfi) { | |
752 set_sources_assignment_filter([]) | |
753 sources += [ "posix/unix_domain_socket_linux.cc" ] | |
754 set_sources_assignment_filter(sources_assignment_filter) | |
755 sources -= [ "rand_util_nacl.cc" ] | |
756 } else { | |
757 sources -= [ | |
758 "files/file_util.cc", | |
759 "files/file_util.h", | |
760 "files/file_util_posix.cc", | |
761 "message_loop/message_pump_libevent.cc", | |
762 "message_loop/message_pump_libevent.h", | |
763 "rand_util_posix.cc", | |
764 ] | |
765 } | |
753 } else { | 766 } else { |
754 # Remove NaCl stuff. | 767 # Remove NaCl stuff. |
755 sources -= [ | 768 sources -= [ |
756 "os_compat_nacl.cc", | 769 "os_compat_nacl.cc", |
757 "os_compat_nacl.h", | 770 "os_compat_nacl.h", |
758 "rand_util_nacl.cc", | 771 "rand_util_nacl.cc", |
759 ] | 772 ] |
760 } | 773 } |
761 | 774 |
762 # Windows. | 775 # Windows. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
802 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 815 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
803 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 816 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
804 | 817 |
805 libs = [ | 818 libs = [ |
806 "cfgmgr32.lib", | 819 "cfgmgr32.lib", |
807 "netapi32.lib", | 820 "netapi32.lib", |
808 "powrprof.lib", | 821 "powrprof.lib", |
809 "setupapi.lib", | 822 "setupapi.lib", |
810 ] | 823 ] |
811 all_dependent_configs = [ ":base_win_linker_flags" ] | 824 all_dependent_configs = [ ":base_win_linker_flags" ] |
812 } else if (!is_nacl) { | 825 } else if (!is_nacl || is_nacl_nonsfi) { |
813 # Non-Windows. | 826 # Non-Windows. |
814 deps += [ "//third_party/libevent" ] | 827 deps += [ "//third_party/libevent" ] |
815 } | 828 } |
816 | 829 |
817 # Mac. | 830 # Mac. |
818 if (is_mac || is_ios) { | 831 if (is_mac || is_ios) { |
819 # Common Desktop / iOS excludes | 832 # Common Desktop / iOS excludes |
820 sources -= [ | 833 sources -= [ |
821 "native_library_posix.cc", | 834 "native_library_posix.cc", |
822 "strings/sys_string_conversions_posix.cc", | 835 "strings/sys_string_conversions_posix.cc", |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1686 | 1699 |
1687 # GYP: //base.gyp:base_java_unittest_support | 1700 # GYP: //base.gyp:base_java_unittest_support |
1688 android_library("base_java_unittest_support") { | 1701 android_library("base_java_unittest_support") { |
1689 deps = [ | 1702 deps = [ |
1690 ":base_java", | 1703 ":base_java", |
1691 ] | 1704 ] |
1692 java_files = | 1705 java_files = |
1693 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1706 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1694 } | 1707 } |
1695 } | 1708 } |
OLD | NEW |