Index: base/BUILD.gn |
diff --git a/base/BUILD.gn b/base/BUILD.gn |
index c63d3778ca4cd3ff5cf103efdd915dd78692bfe0..9dbc41c6f4fc23a07e653241c17f5292c781b599 100644 |
--- a/base/BUILD.gn |
+++ b/base/BUILD.gn |
@@ -310,6 +310,7 @@ component("base") { |
"mac/scoped_sending_event.h", |
"mac/scoped_sending_event.mm", |
"mac/sdk_forward_declarations.h", |
+ "mac/sdk_forward_declarations.mm", |
"macros.h", |
"md5.cc", |
"md5.h", |
@@ -675,6 +676,10 @@ component("base") { |
"trace_event/memory_dump_provider.h", |
"trace_event/process_memory_dump.cc", |
"trace_event/process_memory_dump.h", |
+ "trace_event/process_memory_maps.cc", |
+ "trace_event/process_memory_maps.h", |
+ "trace_event/process_memory_maps_dump_provider.cc", |
+ "trace_event/process_memory_maps_dump_provider.h", |
"trace_event/process_memory_totals.cc", |
"trace_event/process_memory_totals.h", |
"trace_event/process_memory_totals_dump_provider.cc", |
@@ -759,7 +764,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 -= [ |
@@ -847,11 +874,12 @@ component("base") { |
"process/launch_posix.cc", |
"process/process_metrics_posix.cc", |
"process/process_posix.cc", |
+ "rand_util_posix.cc", |
"sync_socket_posix.cc", |
"sys_info_posix.cc", |
] |
} else { |
- # Remove nacl stuff. |
+ # Remove NaCl stuff. |
sources -= [ |
"memory/shared_memory_nacl.cc", |
"os_compat_nacl.cc", |
@@ -1134,6 +1162,23 @@ source_set("protect_file_posix") { |
] |
} |
+if (is_win) { |
+ shared_library("pe_image_test") { |
+ sources = [ |
+ "win/pe_image_test.cc", |
+ ] |
+ ldflags = [ |
+ "/DELAYLOAD:cfgmgr32.dll", |
+ "/DELAYLOAD:shell32.dll", |
+ "/SUBSYSTEM:WINDOWS", |
+ ] |
+ libs = [ |
+ "cfgmgr32.lib", |
+ "shell32.lib", |
+ ] |
+ } |
+} |
+ |
test("base_unittests") { |
sources = [ |
"android/application_status_listener_unittest.cc", |
@@ -1336,6 +1381,7 @@ test("base_unittests") { |
"timer/timer_unittest.cc", |
"tools_sanity_unittest.cc", |
"trace_event/memory_dump_manager_unittest.cc", |
+ "trace_event/process_memory_maps_dump_provider_unittest.cc", |
"trace_event/process_memory_totals_dump_provider_unittest.cc", |
"trace_event/trace_event_argument_unittest.cc", |
"trace_event/trace_event_memory_unittest.cc", |
@@ -1441,6 +1487,10 @@ test("base_unittests") { |
set_sources_assignment_filter(sources_assignment_filter) |
} |
+ if (is_win) { |
+ deps += [ ":pe_image_test" ] |
+ } |
+ |
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
} |