Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2925)

Unified Diff: base/BUILD.gn

Issue 901273003: roll up of misc. gn work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | build/all.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/BUILD.gn
diff --git a/base/BUILD.gn b/base/BUILD.gn
index 44e656c2f804a22677773b89887c291d2f0da776..85cdbe4545a6e497f5298a6d812f02f09fdfcd44 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -755,7 +755,29 @@ component("base") {
]
if (is_nacl) {
- sources += [ "files/file_path_watcher_stub.cc" ]
+ # We reset sources_assignment_filter in order to explicitly include
+ # the linux file (which would otherwise be filtered out).
+ set_sources_assignment_filter([])
+ sources += [
+ "files/file_path_watcher_stub.cc",
+ "sync_socket_nacl.cc",
+ "threading/platform_thread_linux.cc",
+ ]
+ set_sources_assignment_filter(sources_assignment_filter)
+
+ sources -= [
+ "allocator/type_profiler_control.cc",
+ "allocator/type_profiler_control.h",
+ "async_socket_io_handler_posix.cc",
+ "base_paths.cc",
+ "cpu.cc",
+ "files/file_proxy.cc",
+ "files/file_util.cc",
+ "files/file_util_proxy.cc",
+ "path_service.cc",
+ "scoped_native_library.cc",
+ "files/scoped_temp_dir.cc",
+ ]
}
sources -= [
@@ -774,11 +796,14 @@ component("base") {
deps = [
":base_static",
"//base/allocator:allocator_extension_thunks",
- "//base/third_party/dynamic_annotations",
"//base/third_party/nspr",
"//third_party/modp_b64",
]
+ if (!is_nacl) {
+ deps += [ "//base/third_party/dynamic_annotations" ]
+ }
+
# Allow more direct string conversions on platforms with native utf8
# strings
if (is_mac || is_ios || is_chromeos) {
@@ -835,14 +860,15 @@ component("base") {
"debug/stack_trace_posix.cc",
"files/file_enumerator_posix.cc",
"files/file_util_posix.cc",
+ "memory/shared_memory_posix.cc",
"message_loop/message_pump_libevent.cc",
+ "metrics/field_trial.cc",
+ "native_library_posix.cc",
"process/kill_posix.cc",
"process/launch_posix.cc",
"process/process_metrics_posix.cc",
"process/process_posix.cc",
- "metrics/field_trial.cc",
- "native_library_posix.cc",
- "memory/shared_memory_posix.cc",
+ "rand_util_posix.cc",
"sync_socket_posix.cc",
"sys_info_posix.cc",
]
@@ -1018,10 +1044,13 @@ component("i18n") {
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
":base",
- "//base/third_party/dynamic_annotations",
"//third_party/icu",
]
+ if (!is_nacl) {
+ deps += [ "//base/third_party/dynamic_annotations" ]
+ }
+
if (is_android && !is_debug) {
configs -= [ "//build/config/compiler:optimize" ]
configs += [ "//build/config/compiler:optimize_max" ]
@@ -1440,6 +1469,20 @@ test("base_unittests") {
}
}
+test("base_i18n_perftests") {
+ sources = [
+ "i18n/streaming_utf8_validator_perftest.cc",
+ ]
+
+ deps = [
+ ":base",
+ ":i18n",
+ "//base/test/:test_support",
+ "//base/test/:test_support_perf",
+ "//testing/gtest",
+ ]
+}
+
if (is_android) {
# GYP: //base.gyp:base_jni_headers
generate_jni("base_jni_headers") {
« no previous file with comments | « DEPS ('k') | build/all.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698