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

Unified Diff: base/BUILD.gn

Issue 2884353004: fuchsia: base_unittests (mostly) compiling (Closed)
Patch Set: rebase Created 3 years, 7 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 | « BUILD.gn ('k') | base/files/file_enumerator_posix.cc » ('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 49e16f5c0bdedc4956a7bf827fdf614834b8674c..7596768fd3ff88092786d590c61c701f064cbcf5 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -1105,7 +1105,7 @@ component("base") {
"base_paths_win.h",
]
- if (is_linux) {
+ if (is_linux || is_fuchsia) {
sources += [ "base_paths_posix.cc" ]
}
}
@@ -1230,6 +1230,17 @@ component("base") {
sources += [ "power_monitor/power_monitor_device_source_chromeos.cc" ]
}
+ if (is_fuchsia) {
+ sources -= [
+ "debug/stack_trace_posix.cc",
+ "message_loop/message_pump_libevent.cc",
+ "message_loop/message_pump_libevent.h",
+ "process/kill_posix.cc",
+ "process/launch_posix.cc",
+ "process/process_posix.cc",
+ ]
+ }
+
# NaCl.
if (is_nacl) {
# We reset sources_assignment_filter in order to explicitly include
@@ -1442,7 +1453,7 @@ component("base") {
"winmm.lib",
]
all_dependent_configs += [ ":base_win_linker_flags" ]
- } else if (!is_nacl || is_nacl_nonsfi) {
+ } else if ((!is_nacl && !is_fuchsia) || is_nacl_nonsfi) {
# Non-Windows.
deps += [ "//base/third_party/libevent" ]
}
@@ -2337,7 +2348,7 @@ test("base_unittests") {
sources -= [ "message_loop/message_pump_glib_unittest.cc" ]
}
- if (is_posix && !is_ios) {
+ if (is_posix && !is_ios && !is_fuchsia) {
sources += [ "message_loop/message_pump_libevent_unittest.cc" ]
deps += [ "//base/third_party/libevent" ]
}
« no previous file with comments | « BUILD.gn ('k') | base/files/file_enumerator_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698