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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
664 | 665 |
665 data = [] | 666 data = [] |
666 | 667 |
667 configs += [ | 668 configs += [ |
668 ":base_implementation", | 669 ":base_implementation", |
669 "//build/config:precompiled_headers", | 670 "//build/config:precompiled_headers", |
670 ] | 671 ] |
671 | 672 |
672 deps = [ | 673 deps = [ |
673 ":base_static", | 674 ":base_static", |
674 "//base/allocator:allocator_extension_thunks", | |
675 "//base/third_party/dynamic_annotations", | |
676 "//third_party/modp_b64", | |
677 ] | 675 ] |
678 | 676 |
677 if (!is_nacl_nonsfi) { | |
Dirk Pranke
2015/10/21 20:03:52
can you move these blocks next to the if (is_nacl)
Petr Hosek
2015/10/22 18:32:13
Done.
| |
678 deps += [ | |
679 "//base/allocator:allocator_extension_thunks", | |
680 "//base/third_party/dynamic_annotations", | |
681 "//third_party/modp_b64", | |
682 ] | |
683 } | |
684 | |
679 public_deps = [ | 685 public_deps = [ |
680 ":base_paths", | 686 ":base_paths", |
681 "//base/debug", | |
682 "//base/json", | |
683 "//base/memory", | |
684 "//base/metrics", | 687 "//base/metrics", |
685 "//base/process", | |
686 "//base/trace_event", | 688 "//base/trace_event", |
687 ] | 689 ] |
688 | 690 |
691 if (!is_nacl_nonsfi) { | |
692 public_deps += [ | |
693 "//base/debug", | |
694 "//base/json", | |
695 "//base/memory", | |
696 "//base/process", | |
697 ] | |
698 } | |
699 | |
689 # Allow more direct string conversions on platforms with native utf8 | 700 # Allow more direct string conversions on platforms with native utf8 |
690 # strings | 701 # strings |
691 if (is_mac || is_ios || is_chromeos) { | 702 if (is_mac || is_ios || is_chromeos) { |
692 defines = [ "SYSTEM_NATIVE_UTF8" ] | 703 defines = [ "SYSTEM_NATIVE_UTF8" ] |
693 } | 704 } |
694 | 705 |
695 if (is_android) { | 706 if (is_android) { |
696 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] | 707 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ] |
697 | 708 |
698 # Android uses some Linux sources, put those back. | 709 # Android uses some Linux sources, put those back. |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
926 if (is_asan || is_lsan || is_msan || is_tsan) { | 937 if (is_asan || is_lsan || is_msan || is_tsan) { |
927 data += [ "//tools/valgrind/asan/" ] | 938 data += [ "//tools/valgrind/asan/" ] |
928 if (is_win) { | 939 if (is_win) { |
929 data += | 940 data += |
930 [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer.exe" ] | 941 [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer.exe" ] |
931 } else { | 942 } else { |
932 data += [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer" ] | 943 data += [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer" ] |
933 } | 944 } |
934 } | 945 } |
935 | 946 |
947 if (is_nacl_nonsfi) { | |
Dirk Pranke
2015/10/21 20:03:52
can we move this up next to the if (is_nacl) block
Petr Hosek
2015/10/22 18:32:13
Done.
| |
948 set_sources_assignment_filter([]) | |
949 sources += [ | |
950 "files/file_util.cc", | |
951 "files/file_util_posix.cc", | |
952 "message_loop/message_pump_libevent.cc", | |
953 "message_loop/message_pump_libevent.h", | |
954 "posix/unix_domain_socket_linux.cc", | |
955 "process/kill_posix.cc", | |
956 "process/launch.h", | |
957 "process/launch_posix.cc", | |
958 "rand_util_posix.cc", | |
959 ] | |
960 set_sources_assignment_filter(sources_assignment_filter) | |
961 sources -= [ | |
962 "allocator/allocator_extension.cc", | |
963 "allocator/allocator_extension.h", | |
964 "base64.cc", | |
965 "base64.h", | |
966 "rand_util_nacl.cc", | |
967 ] | |
968 deps += [ "//third_party/libevent" ] | |
969 } | |
970 | |
936 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 971 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
937 if (!is_debug) { | 972 if (!is_debug) { |
938 configs -= [ "//build/config/compiler:default_optimization" ] | 973 configs -= [ "//build/config/compiler:default_optimization" ] |
939 configs += [ "//build/config/compiler:optimize_max" ] | 974 configs += [ "//build/config/compiler:optimize_max" ] |
940 } | 975 } |
941 | 976 |
942 allow_circular_includes_from = public_deps | 977 allow_circular_includes_from = public_deps |
943 } | 978 } |
944 | 979 |
945 # This is the subset of files from base that should not be used with a dynamic | 980 # This is the subset of files from base that should not be used with a dynamic |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1684 | 1719 |
1685 # GYP: //base.gyp:base_java_unittest_support | 1720 # GYP: //base.gyp:base_java_unittest_support |
1686 android_library("base_java_unittest_support") { | 1721 android_library("base_java_unittest_support") { |
1687 deps = [ | 1722 deps = [ |
1688 ":base_java", | 1723 ":base_java", |
1689 ] | 1724 ] |
1690 java_files = | 1725 java_files = |
1691 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1726 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1692 } | 1727 } |
1693 } | 1728 } |
OLD | NEW |