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/win/manifest.gni") | 8 import("//build/config/win/manifest.gni") |
9 import("//chrome/version.gni") | 9 import("//chrome/version.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 24 matching lines...) Expand all Loading... |
35 sources = [ | 35 sources = [ |
36 "//chrome/app/chrome_crash_reporter_client_win.cc", | 36 "//chrome/app/chrome_crash_reporter_client_win.cc", |
37 "//chrome/app/chrome_crash_reporter_client_win.h", | 37 "//chrome/app/chrome_crash_reporter_client_win.h", |
38 "//chrome/common/chrome_result_codes.h", | 38 "//chrome/common/chrome_result_codes.h", |
39 "chrome_elf.def", | 39 "chrome_elf.def", |
40 "chrome_elf_main.cc", | 40 "chrome_elf_main.cc", |
41 "chrome_elf_main.h", | 41 "chrome_elf_main.h", |
42 ] | 42 ] |
43 deps = [ | 43 deps = [ |
44 ":blacklist", | 44 ":blacklist", |
45 ":breakpad", | |
46 ":chrome_elf_manifest", | 45 ":chrome_elf_manifest", |
47 ":chrome_elf_resources", | 46 ":chrome_elf_resources", |
48 ":chrome_elf_security", | 47 ":chrome_elf_security", |
| 48 ":constants", |
49 ":hook_util", | 49 ":hook_util", |
50 "//base", | 50 "//base", |
51 "//build/config/sanitizers:deps", | 51 "//build/config/sanitizers:deps", |
52 "//chrome/install_static:install_static_util", | 52 "//chrome/install_static:install_static_util", |
53 "//chrome_elf/nt_registry:nt_registry", | 53 "//chrome_elf/nt_registry:nt_registry", |
54 "//components/crash/content/app", | 54 "//components/crash/content/app", |
55 "//components/crash/core/common", | 55 "//components/crash/core/common", |
56 "//content/public/common:result_codes", | 56 "//content/public/common:result_codes", |
| 57 "//third_party/crashpad/crashpad/client:client", |
57 ] | 58 ] |
58 configs += [ "//build/config/win:windowed" ] | 59 configs += [ "//build/config/win:windowed" ] |
59 configs -= [ "//build/config/win:console" ] | 60 configs -= [ "//build/config/win:console" ] |
60 ldflags = [ | 61 ldflags = [ |
61 "/NODEFAULTLIB:user32.lib", | 62 "/NODEFAULTLIB:user32.lib", |
62 "/DELAYLOAD:dbghelp.dll", | 63 "/DELAYLOAD:dbghelp.dll", |
63 "/DELAYLOAD:ole32.dll", | 64 "/DELAYLOAD:ole32.dll", |
64 "/DELAYLOAD:psapi.dll", | 65 "/DELAYLOAD:psapi.dll", |
65 "/DELAYLOAD:rpcrt4.dll", | 66 "/DELAYLOAD:rpcrt4.dll", |
66 "/DELAYLOAD:shell32.dll", | 67 "/DELAYLOAD:shell32.dll", |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 "//build/win:default_exe_manifest", | 122 "//build/win:default_exe_manifest", |
122 ] | 123 ] |
123 } | 124 } |
124 | 125 |
125 static_library("blacklist") { | 126 static_library("blacklist") { |
126 sources = [ | 127 sources = [ |
127 "blacklist/blacklist.cc", | 128 "blacklist/blacklist.cc", |
128 "blacklist/blacklist.h", | 129 "blacklist/blacklist.h", |
129 "blacklist/blacklist_interceptions.cc", | 130 "blacklist/blacklist_interceptions.cc", |
130 "blacklist/blacklist_interceptions.h", | 131 "blacklist/blacklist_interceptions.h", |
| 132 "blacklist/crashpad_helper.cc", |
| 133 "blacklist/crashpad_helper.h", |
131 ] | 134 ] |
132 public_deps = [ | 135 public_deps = [ |
133 "//sandbox", | 136 "//sandbox", |
134 ] | 137 ] |
135 deps = [ | 138 deps = [ |
136 ":breakpad", | |
137 ":constants", | 139 ":constants", |
138 ":hook_util", | 140 ":hook_util", |
139 "//chrome/install_static:install_static_util", | 141 "//chrome/install_static:install_static_util", |
140 "//chrome_elf/nt_registry:nt_registry", | 142 "//chrome_elf/nt_registry:nt_registry", |
141 | 143 |
142 # Still uses base/win/pe_image.h | 144 # Still uses base/win/pe_image.h |
143 "//base", | 145 "//base", |
| 146 "//third_party/crashpad/crashpad/client:client", |
144 ] | 147 ] |
145 } | 148 } |
146 | 149 |
147 static_library("breakpad") { | |
148 include_dirs = [ "$target_gen_dir" ] | |
149 sources = [ | |
150 "breakpad/breakpad.cc", | |
151 "breakpad/breakpad.h", | |
152 ] | |
153 deps = [ | |
154 "//breakpad:breakpad_handler", | |
155 "//chrome/common:version_header", | |
156 "//chrome/install_static:install_static_util", | |
157 "//chrome_elf/nt_registry:nt_registry", | |
158 ] | |
159 } | |
160 | |
161 static_library("hook_util") { | 150 static_library("hook_util") { |
162 sources = [ | 151 sources = [ |
163 "hook_util/thunk_getter.cc", | 152 "hook_util/thunk_getter.cc", |
164 "hook_util/thunk_getter.h", | 153 "hook_util/thunk_getter.h", |
165 ] | 154 ] |
166 deps = [ | 155 deps = [ |
167 "//sandbox", | 156 "//sandbox", |
168 ] | 157 ] |
169 } | 158 } |
170 | 159 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 "blacklist/test/blacklist_test_main_dll.cc", | 218 "blacklist/test/blacklist_test_main_dll.cc", |
230 "blacklist/test/blacklist_test_main_dll.def", | 219 "blacklist/test/blacklist_test_main_dll.def", |
231 ] | 220 ] |
232 deps = [ | 221 deps = [ |
233 ":blacklist", | 222 ":blacklist", |
234 "//base", | 223 "//base", |
235 "//build/config/sanitizers:deps", | 224 "//build/config/sanitizers:deps", |
236 "//chrome/install_static:install_static_util", | 225 "//chrome/install_static:install_static_util", |
237 "//chrome_elf/nt_registry:nt_registry", | 226 "//chrome_elf/nt_registry:nt_registry", |
238 ] | 227 ] |
| 228 ldflags = [ |
| 229 "/NODEFAULTLIB:user32.lib", |
| 230 "/DELAYLOAD:dbghelp.dll", |
| 231 "/DELAYLOAD:ole32.dll", |
| 232 "/DELAYLOAD:psapi.dll", |
| 233 "/DELAYLOAD:rpcrt4.dll", |
| 234 "/DELAYLOAD:shell32.dll", |
| 235 "/DELAYLOAD:user32.dll", |
| 236 "/DELAYLOAD:winhttp.dll", |
| 237 "/DELAYLOAD:winmm.dll", |
| 238 "/DELAYLOAD:ws2_32.dll", |
| 239 ] |
239 } | 240 } |
240 | 241 |
241 loadable_module("blacklist_test_dll_1") { | 242 loadable_module("blacklist_test_dll_1") { |
242 sources = [ | 243 sources = [ |
243 "blacklist/test/blacklist_test_dll_1.cc", | 244 "blacklist/test/blacklist_test_dll_1.cc", |
244 "blacklist/test/blacklist_test_dll_1.def", | 245 "blacklist/test/blacklist_test_dll_1.def", |
245 ] | 246 ] |
246 deps = [ | 247 deps = [ |
247 "//build/config/sanitizers:deps", | 248 "//build/config/sanitizers:deps", |
248 ] | 249 ] |
(...skipping 15 matching lines...) Expand all Loading... |
264 # which does), Ninja would get confused and always rebuild this target because | 265 # which does), Ninja would get confused and always rebuild this target because |
265 # it sees a declared output file but that file doesn't exist on disk. | 266 # it sees a declared output file but that file doesn't exist on disk. |
266 loadable_module("blacklist_test_dll_3") { | 267 loadable_module("blacklist_test_dll_3") { |
267 sources = [ | 268 sources = [ |
268 "blacklist/test/blacklist_test_dll_3.cc", | 269 "blacklist/test/blacklist_test_dll_3.cc", |
269 ] | 270 ] |
270 deps = [ | 271 deps = [ |
271 "//build/config/sanitizers:deps", | 272 "//build/config/sanitizers:deps", |
272 ] | 273 ] |
273 } | 274 } |
OLD | NEW |