Commit 7bcad803 authored by brettw@chromium.org's avatar brettw@chromium.org

Fix GN win build.

Fixes some minor GN build issues on Windows

TBR=scottmg@chromium.org

Review URL: https://codereview.chromium.org/290633012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271159 0039d316-1c4b-4281-b951-d872f2087c98
parent abb63c78
...@@ -810,12 +810,13 @@ component("base") { ...@@ -810,12 +810,13 @@ component("base") {
"sha1_win.cc", "sha1_win.cc",
] ]
if (is_component_build) { libs = [
sources -= [ "debug/debug_on_start_win.cc" ] "netapi32.lib",
} "powrprof.lib",
]
# Needed by win_util.h ldflags = [
libs = [ "netapi32.lib" ] "/DELAYLOAD:powrprof.dll",
]
} else if (!is_nacl) { } else if (!is_nacl) {
# Non-Windows. # Non-Windows.
deps += [ "//third_party/libevent" ] deps += [ "//third_party/libevent" ]
...@@ -967,7 +968,6 @@ source_set("prefs") { ...@@ -967,7 +968,6 @@ source_set("prefs") {
"prefs/value_map_pref_store.cc", "prefs/value_map_pref_store.cc",
"prefs/value_map_pref_store.h", "prefs/value_map_pref_store.h",
"prefs/writeable_pref_store.h", "prefs/writeable_pref_store.h",
] ]
defines = [ "BASE_PREFS_IMPLEMENTATION" ] defines = [ "BASE_PREFS_IMPLEMENTATION" ]
...@@ -1109,7 +1109,6 @@ test("base_unittests") { ...@@ -1109,7 +1109,6 @@ test("base_unittests") {
"message_loop/message_loop_unittest.cc", "message_loop/message_loop_unittest.cc",
"message_loop/message_pump_glib_unittest.cc", "message_loop/message_pump_glib_unittest.cc",
"message_loop/message_pump_io_ios_unittest.cc", "message_loop/message_pump_io_ios_unittest.cc",
"message_loop/message_pump_libevent_unittest.cc",
"metrics/sample_map_unittest.cc", "metrics/sample_map_unittest.cc",
"metrics/sample_vector_unittest.cc", "metrics/sample_vector_unittest.cc",
"metrics/bucket_ranges_unittest.cc", "metrics/bucket_ranges_unittest.cc",
...@@ -1251,7 +1250,6 @@ test("base_unittests") { ...@@ -1251,7 +1250,6 @@ test("base_unittests") {
if (is_ios) { if (is_ios) {
sources -= [ sources -= [
"message_loop/message_pump_libevent_unittest.cc", # libevent not used.
"metrics/stats_table_uinittest.cc", # Requires spawning a process. "metrics/stats_table_uinittest.cc", # Requires spawning a process.
"process/memory_unittest.cc", "process/memory_unittest.cc",
"process/memory_unittest_mac.h", "process/memory_unittest_mac.h",
...@@ -1285,16 +1283,8 @@ test("base_unittests") { ...@@ -1285,16 +1283,8 @@ test("base_unittests") {
sources -= [ "message_loop/message_pump_glib_unittest.cc" ] sources -= [ "message_loop/message_pump_glib_unittest.cc" ]
} }
if (is_win) { if (is_posix || is_ios) {
sources -= [ sources += [ "message_loop/message_pump_libevent_unittest.cc" ]
"file_descriptor_shuffle_unittest.cc",
"files/dir_reader_posix_unittest.cc",
"threading/worker_pool_posix_unittest.cc",
"message_loop/message_pump_libevent_unittest.cc",
]
}
if (!is_win || is_ios) {
deps += [ "//third_party/libevent" ] deps += [ "//third_party/libevent" ]
} }
......
...@@ -34,6 +34,7 @@ if (!is_android) { ...@@ -34,6 +34,7 @@ if (!is_android) {
# We don't list dynamic_annotations.c since its copy is already # We don't list dynamic_annotations.c since its copy is already
# present in the dynamic_annotations target. # present in the dynamic_annotations target.
"$tcmalloc_dir/src/base/elf_mem_image.cc", "$tcmalloc_dir/src/base/elf_mem_image.cc",
"$tcmalloc_dir/src/base/elf_mem_image.h",
"$tcmalloc_dir/src/base/linuxthreads.cc", "$tcmalloc_dir/src/base/linuxthreads.cc",
"$tcmalloc_dir/src/base/linuxthreads.h", "$tcmalloc_dir/src/base/linuxthreads.h",
"$tcmalloc_dir/src/base/logging.cc", "$tcmalloc_dir/src/base/logging.cc",
...@@ -150,7 +151,7 @@ if (!is_android) { ...@@ -150,7 +151,7 @@ if (!is_android) {
"$tcmalloc_dir/src/profile-handler.h", "$tcmalloc_dir/src/profile-handler.h",
"$tcmalloc_dir/src/profiler.cc", "$tcmalloc_dir/src/profiler.cc",
] ]
defines = [ "PERFTOOLS_DLL_DECL=" ] defines += [ "PERFTOOLS_DLL_DECL=" ]
} }
if (is_linux || is_android) { if (is_linux || is_android) {
sources -= [ sources -= [
......
...@@ -359,7 +359,7 @@ if (is_linux) { ...@@ -359,7 +359,7 @@ if (is_linux) {
cflags = [ "-all_load" ] cflags = [ "-all_load" ]
} else if (is_win) { } else if (is_win) {
# Pass the def file to the linker. # Pass the def file to the linker.
ldflags += [ rebase_path("nss/exports_win.def", root_build_dir) ] ldflags = [ rebase_path("nss/exports_win.def", root_build_dir) ]
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment