Index: base/trace_event/BUILD.gn |
diff --git a/base/trace_event/BUILD.gn b/base/trace_event/BUILD.gn |
index a55c55d75ce9f722bd9b268b7b224a8c51c10709..ad9344265bdcfee2beb55c627c708d31ebab47fc 100644 |
--- a/base/trace_event/BUILD.gn |
+++ b/base/trace_event/BUILD.gn |
@@ -23,7 +23,6 @@ source_set("trace_event") { |
"process_memory_dump.h", |
"process_memory_maps.cc", |
"process_memory_maps.h", |
- "process_memory_maps_dump_provider.cc", |
"process_memory_maps_dump_provider.h", |
"process_memory_totals.cc", |
"process_memory_totals.h", |
@@ -72,6 +71,7 @@ source_set("trace_event") { |
sources += [ |
"malloc_dump_provider.cc", |
"malloc_dump_provider.h", |
+ "process_memory_maps_dump_provider.cc", |
] |
} |
@@ -106,7 +106,6 @@ source_set("trace_event_unittests") { |
"memory_dump_manager_unittest.cc", |
"memory_profiler_allocation_context_unittest.cc", |
"process_memory_dump_unittest.cc", |
- "process_memory_maps_dump_provider_unittest.cc", |
"process_memory_totals_dump_provider_unittest.cc", |
"trace_config_memory_test_util.h", |
"trace_config_unittest.cc", |
@@ -119,6 +118,10 @@ source_set("trace_event_unittests") { |
"winheap_dump_provider_win_unittest.cc", |
] |
+ if (is_linux || is_android) { |
+ sources += [ "process_memory_maps_dump_provider_unittest.cc" ] |
+ } |
+ |
deps = [ |
"//base/test:test_support", |
"//testing/gmock", |