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

Side by Side Diff: chrome_elf/BUILD.gn

Issue 2892493002: Replace sanitizers:deps with exe_and_shlib_deps (Chromium repo only) (Closed)
Patch Set: Fix find/replace error in nacl Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « chrome/tools/service_discovery_sniffer/BUILD.gn ('k') | chromecast/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 28 matching lines...) Expand all
39 ] 39 ]
40 deps = [ 40 deps = [
41 ":blacklist", 41 ":blacklist",
42 ":chrome_elf_manifest", 42 ":chrome_elf_manifest",
43 ":chrome_elf_resources", 43 ":chrome_elf_resources",
44 ":constants", 44 ":constants",
45 ":crash", 45 ":crash",
46 ":hook_util", 46 ":hook_util",
47 ":nt_registry", 47 ":nt_registry",
48 ":security", 48 ":security",
49 "//build/config/sanitizers:deps", 49 "//build/config:exe_and_shlib_deps",
50 "//chrome/install_static:install_static_util", 50 "//chrome/install_static:install_static_util",
51 "//chrome/install_static:primary_module", 51 "//chrome/install_static:primary_module",
52 ] 52 ]
53 configs += [ "//build/config/win:windowed" ] 53 configs += [ "//build/config/win:windowed" ]
54 configs -= [ "//build/config/win:console" ] 54 configs -= [ "//build/config/win:console" ]
55 55
56 # Delay loads in this list will prevent user32.dll 56 # Delay loads in this list will prevent user32.dll
57 # from loading too early. 57 # from loading too early.
58 ldflags = [ 58 ldflags = [
59 "/DELAYLOAD:advapi32.dll", 59 "/DELAYLOAD:advapi32.dll",
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 ##------------------------------------------------------------------------------ 103 ##------------------------------------------------------------------------------
104 ## chrome_elf sub targets 104 ## chrome_elf sub targets
105 ##------------------------------------------------------------------------------ 105 ##------------------------------------------------------------------------------
106 106
107 executable("dll_hash_main") { 107 executable("dll_hash_main") {
108 sources = [ 108 sources = [
109 "dll_hash/dll_hash_main.cc", 109 "dll_hash/dll_hash_main.cc",
110 ] 110 ]
111 deps = [ 111 deps = [
112 ":dll_hash", 112 ":dll_hash",
113 "//build/config/sanitizers:deps", 113 "//build/config:exe_and_shlib_deps",
114 "//build/win:default_exe_manifest", 114 "//build/win:default_exe_manifest",
115 ] 115 ]
116 } 116 }
117 117
118 static_library("blacklist") { 118 static_library("blacklist") {
119 sources = [ 119 sources = [
120 "blacklist/blacklist.cc", 120 "blacklist/blacklist.cc",
121 "blacklist/blacklist.h", 121 "blacklist/blacklist.h",
122 "blacklist/blacklist_interceptions.cc", 122 "blacklist/blacklist_interceptions.cc",
123 "blacklist/blacklist_interceptions.h", 123 "blacklist/blacklist_interceptions.h",
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 testonly = true 251 testonly = true
252 sources = [ 252 sources = [
253 "blacklist/test/blacklist_test_main_dll.cc", 253 "blacklist/test/blacklist_test_main_dll.cc",
254 "blacklist/test/blacklist_test_main_dll.def", 254 "blacklist/test/blacklist_test_main_dll.def",
255 "blacklist/test/blacklist_test_main_dll.h", 255 "blacklist/test/blacklist_test_main_dll.h",
256 ] 256 ]
257 deps = [ 257 deps = [
258 ":blacklist", 258 ":blacklist",
259 ":nt_registry", 259 ":nt_registry",
260 "//base", 260 "//base",
261 "//build/config/sanitizers:deps", 261 "//build/config:exe_and_shlib_deps",
262 "//chrome/install_static:install_static_util", 262 "//chrome/install_static:install_static_util",
263 ] 263 ]
264 } 264 }
265 265
266 loadable_module("blacklist_test_dll_1") { 266 loadable_module("blacklist_test_dll_1") {
267 testonly = true 267 testonly = true
268 sources = [ 268 sources = [
269 "blacklist/test/blacklist_test_dll_1.cc", 269 "blacklist/test/blacklist_test_dll_1.cc",
270 "blacklist/test/blacklist_test_dll_1.def", 270 "blacklist/test/blacklist_test_dll_1.def",
271 ] 271 ]
272 deps = [ 272 deps = [
273 "//build/config/sanitizers:deps", 273 "//build/config:exe_and_shlib_deps",
274 ] 274 ]
275 } 275 }
276 276
277 loadable_module("blacklist_test_dll_2") { 277 loadable_module("blacklist_test_dll_2") {
278 testonly = true 278 testonly = true
279 sources = [ 279 sources = [
280 "blacklist/test/blacklist_test_dll_2.cc", 280 "blacklist/test/blacklist_test_dll_2.cc",
281 "blacklist/test/blacklist_test_dll_2.def", 281 "blacklist/test/blacklist_test_dll_2.def",
282 ] 282 ]
283 deps = [ 283 deps = [
284 "//build/config/sanitizers:deps", 284 "//build/config:exe_and_shlib_deps",
285 ] 285 ]
286 } 286 }
287 287
288 # As-is, this does not generate a .lib file because there are no exports and no 288 # As-is, this does not generate a .lib file because there are no exports and no
289 # .def file. The current definition of loadable_module does not declare a .lib 289 # .def file. The current definition of loadable_module does not declare a .lib
290 # file as an output, so this is OK. If it did (or if this used shared_library 290 # file as an output, so this is OK. If it did (or if this used shared_library
291 # which does), Ninja would get confused and always rebuild this target because 291 # which does), Ninja would get confused and always rebuild this target because
292 # it sees a declared output file but that file doesn't exist on disk. 292 # it sees a declared output file but that file doesn't exist on disk.
293 loadable_module("blacklist_test_dll_3") { 293 loadable_module("blacklist_test_dll_3") {
294 testonly = true 294 testonly = true
295 sources = [ 295 sources = [
296 "blacklist/test/blacklist_test_dll_3.cc", 296 "blacklist/test/blacklist_test_dll_3.cc",
297 ] 297 ]
298 deps = [ 298 deps = [
299 "//build/config/sanitizers:deps", 299 "//build/config:exe_and_shlib_deps",
300 ] 300 ]
301 } 301 }
302 302
303 shared_library("hook_util_test_dll") { 303 shared_library("hook_util_test_dll") {
304 testonly = true 304 testonly = true
305 sources = [ 305 sources = [
306 "hook_util/test/hook_util_test_dll.cc", 306 "hook_util/test/hook_util_test_dll.cc",
307 "hook_util/test/hook_util_test_dll.h", 307 "hook_util/test/hook_util_test_dll.h",
308 ] 308 ]
309 deps = [ 309 deps = [
310 "//build/config/sanitizers:deps", 310 "//build/config:exe_and_shlib_deps",
311 ] 311 ]
312 } 312 }
OLDNEW
« no previous file with comments | « chrome/tools/service_discovery_sniffer/BUILD.gn ('k') | chromecast/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698