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

Unified Diff: base/BUILD.gn

Issue 2692273008: Hacky slashy (Closed)
Patch Set: . Created 3 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
Index: base/BUILD.gn
diff --git a/base/BUILD.gn b/base/BUILD.gn
index 11236dcd171b1a85d861094613942425e6432490..67bf0cfea6cc05b70f4ef39b8093256c7826e137 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -1205,6 +1205,28 @@ component("base") {
sources += [ "power_monitor/power_monitor_device_source_chromeos.cc" ]
}
+ if (is_fuchsia) {
+ sources -= [
+ "debug/stack_trace_posix.cc",
+ "files/file_descriptor_watcher_posix.cc",
+ "files/file_descriptor_watcher_posix.h",
+ "message_loop/message_pump_libevent.cc",
+ "message_loop/message_pump_libevent.h",
+ "task_scheduler/task_tracker_posix.cc",
+ "task_scheduler/task_tracker_posix.h",
+ ]
+
+ sources += [
+ "debug/stack_trace_fuchsia.cc",
+ "process/memory_stubs.cc",
+ "process/process_handle_fuchsia.cc",
+ "process/process_iterator_fuchsia.cc",
+ "process/process_metrics_fuchsia.cc",
+ "sys_info_fuchsia.cc",
+ "threading/platform_thread_fuchsia.cc",
+ ]
+ }
+
# NaCl.
if (is_nacl) {
# We reset sources_assignment_filter in order to explicitly include
@@ -1421,7 +1443,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" ]
}
@@ -2257,6 +2279,16 @@ test("base_unittests") {
# TODO(GYP): dep on copy_test_data_ios action.
}
+ if (is_fuchsia) {
+ sources -= [
+ "debug/activity_tracker_unittest.cc",
+ "files/file_descriptor_watcher_posix_unittest.cc",
+ "files/file_path_watcher_unittest.cc",
+ "task_scheduler/task_tracker_posix_unittest.cc",
+ "task_scheduler/task_tracker_unittest.cc",
+ ]
+ }
+
if (use_partition_alloc) {
sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ]
}
@@ -2285,7 +2317,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 | « PRESUBMIT.py ('k') | base/base_paths_posix.cc » ('j') | base/process/process_handle_fuchsia.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698