OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # Chrome elf targets (excepting tests) should only link in kernel32. | 5 # Chrome elf targets (excepting tests) should only link in kernel32. |
6 # Please don't add dependencies on any other system libraries. | 6 # Please don't add dependencies on any other system libraries. |
7 | 7 |
8 import("//build/config/compiler/compiler.gni") | 8 import("//build/config/compiler/compiler.gni") |
9 import("//build/config/win/manifest.gni") | 9 import("//build/config/win/manifest.gni") |
10 import("//chrome/process_version_rc_template.gni") | 10 import("//chrome/process_version_rc_template.gni") |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 ":blacklist_test_dll_3", | 235 ":blacklist_test_dll_3", |
236 ":chrome_elf", | 236 ":chrome_elf", |
237 ] | 237 ] |
238 | 238 |
239 # Don't want the test-specific dependencies to affect ChromeElfLoadSanityTest. | 239 # Don't want the test-specific dependencies to affect ChromeElfLoadSanityTest. |
240 # In particular, a few system DLLs cause user32 to be loaded, which is bad. | 240 # In particular, a few system DLLs cause user32 to be loaded, which is bad. |
241 ldflags = [ | 241 ldflags = [ |
242 "/DELAYLOAD:advapi32.dll", | 242 "/DELAYLOAD:advapi32.dll", |
243 "/DELAYLOAD:ole32.dll", | 243 "/DELAYLOAD:ole32.dll", |
244 "/DELAYLOAD:shell32.dll", | 244 "/DELAYLOAD:shell32.dll", |
| 245 "/DELAYLOAD:shlwapi.dll", |
245 "/DELAYLOAD:user32.dll", | 246 "/DELAYLOAD:user32.dll", |
246 "/DELAYLOAD:winmm.dll", | 247 "/DELAYLOAD:winmm.dll", |
247 ] | 248 ] |
248 } | 249 } |
249 | 250 |
250 shared_library("blacklist_test_main_dll") { | 251 shared_library("blacklist_test_main_dll") { |
251 testonly = true | 252 testonly = true |
252 sources = [ | 253 sources = [ |
253 "blacklist/test/blacklist_test_main_dll.cc", | 254 "blacklist/test/blacklist_test_main_dll.cc", |
254 "blacklist/test/blacklist_test_main_dll.def", | 255 "blacklist/test/blacklist_test_main_dll.def", |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 shared_library("hook_util_test_dll") { | 304 shared_library("hook_util_test_dll") { |
304 testonly = true | 305 testonly = true |
305 sources = [ | 306 sources = [ |
306 "hook_util/test/hook_util_test_dll.cc", | 307 "hook_util/test/hook_util_test_dll.cc", |
307 "hook_util/test/hook_util_test_dll.h", | 308 "hook_util/test/hook_util_test_dll.h", |
308 ] | 309 ] |
309 deps = [ | 310 deps = [ |
310 "//build/config:exe_and_shlib_deps", | 311 "//build/config:exe_and_shlib_deps", |
311 ] | 312 ] |
312 } | 313 } |
OLD | NEW |