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 import("//build/config/win/manifest.gni") | 5 import("//build/config/win/manifest.gni") |
6 import("//chrome/version.gni") | 6 import("//chrome/version.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 process_version("chrome_elf_resources") { | 9 process_version("chrome_elf_resources") { |
10 template_file = chrome_version_rc_template | 10 template_file = chrome_version_rc_template |
(...skipping 17 matching lines...) Expand all Loading... |
28 sources = [ | 28 sources = [ |
29 "//chrome/app/chrome_crash_reporter_client_win.cc", | 29 "//chrome/app/chrome_crash_reporter_client_win.cc", |
30 "//chrome/app/chrome_crash_reporter_client_win.h", | 30 "//chrome/app/chrome_crash_reporter_client_win.h", |
31 "//chrome/common/chrome_result_codes.h", | 31 "//chrome/common/chrome_result_codes.h", |
32 "chrome_elf.def", | 32 "chrome_elf.def", |
33 "chrome_elf_main.cc", | 33 "chrome_elf_main.cc", |
34 "chrome_elf_main.h", | 34 "chrome_elf_main.h", |
35 ] | 35 ] |
36 deps = [ | 36 deps = [ |
37 ":blacklist", | 37 ":blacklist", |
| 38 ":breakpad", |
38 ":chrome_elf_manifest", | 39 ":chrome_elf_manifest", |
39 ":chrome_elf_resources", | 40 ":chrome_elf_resources", |
40 ":common", | 41 ":common", |
41 "//base", | 42 "//base", |
42 "//build/config/sanitizers:deps", | 43 "//build/config/sanitizers:deps", |
43 "//chrome/install_static:install_static_util", | 44 "//chrome/install_static:install_static_util", |
44 "//components/crash/content/app", | 45 "//components/crash/content/app", |
45 "//components/crash/core/common", | 46 "//components/crash/core/common", |
46 "//content/public/common:result_codes", | 47 "//content/public/common:result_codes", |
47 "//third_party/crashpad/crashpad/client:client", | |
48 ] | 48 ] |
49 configs += [ "//build/config/win:windowed" ] | 49 configs += [ "//build/config/win:windowed" ] |
50 configs -= [ "//build/config/win:console" ] | 50 configs -= [ "//build/config/win:console" ] |
51 ldflags = [ | 51 ldflags = [ |
52 "/NODEFAULTLIB:user32.lib", | 52 "/NODEFAULTLIB:user32.lib", |
53 "/DELAYLOAD:dbghelp.dll", | 53 "/DELAYLOAD:dbghelp.dll", |
54 "/DELAYLOAD:ole32.dll", | 54 "/DELAYLOAD:ole32.dll", |
55 "/DELAYLOAD:psapi.dll", | 55 "/DELAYLOAD:psapi.dll", |
56 "/DELAYLOAD:rpcrt4.dll", | 56 "/DELAYLOAD:rpcrt4.dll", |
57 "/DELAYLOAD:shell32.dll", | 57 "/DELAYLOAD:shell32.dll", |
(...skipping 22 matching lines...) Expand all Loading... |
80 deps = [ | 80 deps = [ |
81 "//base", | 81 "//base", |
82 "//sandbox", | 82 "//sandbox", |
83 ] | 83 ] |
84 sources = [ | 84 sources = [ |
85 "thunk_getter.cc", | 85 "thunk_getter.cc", |
86 "thunk_getter.h", | 86 "thunk_getter.h", |
87 ] | 87 ] |
88 } | 88 } |
89 | 89 |
| 90 source_set("breakpad") { |
| 91 include_dirs = [ "$target_gen_dir" ] |
| 92 sources = [ |
| 93 "breakpad.cc", |
| 94 "breakpad.h", |
| 95 ] |
| 96 deps = [ |
| 97 ":common", |
| 98 "//base", |
| 99 "//breakpad:breakpad_handler", |
| 100 "//chrome/common:version_header", |
| 101 "//chrome/install_static:install_static_util", |
| 102 ] |
| 103 } |
| 104 |
90 source_set("dll_hash") { | 105 source_set("dll_hash") { |
91 deps = [ | 106 deps = [ |
92 "//base", | 107 "//base", |
93 ] | 108 ] |
94 sources = [ | 109 sources = [ |
95 "dll_hash/dll_hash.cc", | 110 "dll_hash/dll_hash.cc", |
96 "dll_hash/dll_hash.h", | 111 "dll_hash/dll_hash.h", |
97 ] | 112 ] |
98 } | 113 } |
99 | 114 |
100 executable("dll_hash_main") { | 115 executable("dll_hash_main") { |
101 sources = [ | 116 sources = [ |
102 "dll_hash/dll_hash_main.cc", | 117 "dll_hash/dll_hash_main.cc", |
103 ] | 118 ] |
104 deps = [ | 119 deps = [ |
105 ":dll_hash", | 120 ":dll_hash", |
106 "//build/config/sanitizers:deps", | 121 "//build/config/sanitizers:deps", |
107 "//build/win:default_exe_manifest", | 122 "//build/win:default_exe_manifest", |
108 ] | 123 ] |
109 } | 124 } |
110 | 125 |
111 static_library("blacklist") { | 126 static_library("blacklist") { |
112 sources = [ | 127 sources = [ |
113 "blacklist/blacklist.cc", | 128 "blacklist/blacklist.cc", |
114 "blacklist/blacklist.h", | 129 "blacklist/blacklist.h", |
115 "blacklist/blacklist_interceptions.cc", | 130 "blacklist/blacklist_interceptions.cc", |
116 "blacklist/blacklist_interceptions.h", | 131 "blacklist/blacklist_interceptions.h", |
117 "blacklist/crashpad_helper.cc", | |
118 "blacklist/crashpad_helper.h", | |
119 ] | 132 ] |
120 public_deps = [ | 133 public_deps = [ |
121 "//sandbox", | 134 "//sandbox", |
122 ] | 135 ] |
123 deps = [ | 136 deps = [ |
| 137 ":breakpad", |
124 ":common", | 138 ":common", |
125 ":constants", | 139 ":constants", |
126 "//base", | 140 "//base", |
127 "//chrome/install_static:install_static_util", | 141 "//chrome/install_static:install_static_util", |
128 "//components/crash/content/app", | |
129 "//third_party/crashpad/crashpad/client:client", | |
130 ] | 142 ] |
131 } | 143 } |
132 | 144 |
133 test("chrome_elf_unittests") { | 145 test("chrome_elf_unittests") { |
134 output_name = "chrome_elf_unittests" | 146 output_name = "chrome_elf_unittests" |
135 sources = [ | 147 sources = [ |
136 "blacklist/test/blacklist_test.cc", | 148 "blacklist/test/blacklist_test.cc", |
137 "chrome_elf_util_unittest.cc", | 149 "chrome_elf_util_unittest.cc", |
138 "elf_imports_unittest.cc", | 150 "elf_imports_unittest.cc", |
139 "run_all_unittests.cc", | 151 "run_all_unittests.cc", |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 "blacklist/test/blacklist_test_main_dll.cc", | 196 "blacklist/test/blacklist_test_main_dll.cc", |
185 "blacklist/test/blacklist_test_main_dll.def", | 197 "blacklist/test/blacklist_test_main_dll.def", |
186 ] | 198 ] |
187 deps = [ | 199 deps = [ |
188 ":blacklist", | 200 ":blacklist", |
189 ":common", | 201 ":common", |
190 "//base", | 202 "//base", |
191 "//build/config/sanitizers:deps", | 203 "//build/config/sanitizers:deps", |
192 "//chrome/install_static:install_static_util", | 204 "//chrome/install_static:install_static_util", |
193 ] | 205 ] |
194 ldflags = [ | |
195 "/NODEFAULTLIB:user32.lib", | |
196 "/DELAYLOAD:dbghelp.dll", | |
197 "/DELAYLOAD:ole32.dll", | |
198 "/DELAYLOAD:psapi.dll", | |
199 "/DELAYLOAD:rpcrt4.dll", | |
200 "/DELAYLOAD:shell32.dll", | |
201 "/DELAYLOAD:user32.dll", | |
202 "/DELAYLOAD:winhttp.dll", | |
203 "/DELAYLOAD:winmm.dll", | |
204 "/DELAYLOAD:ws2_32.dll", | |
205 ] | |
206 } | 206 } |
207 | 207 |
208 loadable_module("blacklist_test_dll_1") { | 208 loadable_module("blacklist_test_dll_1") { |
209 sources = [ | 209 sources = [ |
210 "blacklist/test/blacklist_test_dll_1.cc", | 210 "blacklist/test/blacklist_test_dll_1.cc", |
211 "blacklist/test/blacklist_test_dll_1.def", | 211 "blacklist/test/blacklist_test_dll_1.def", |
212 ] | 212 ] |
213 deps = [ | 213 deps = [ |
214 "//build/config/sanitizers:deps", | 214 "//build/config/sanitizers:deps", |
215 ] | 215 ] |
(...skipping 15 matching lines...) Expand all Loading... |
231 # which does), Ninja would get confused and always rebuild this target because | 231 # which does), Ninja would get confused and always rebuild this target because |
232 # it sees a declared output file but that file doesn't exist on disk. | 232 # it sees a declared output file but that file doesn't exist on disk. |
233 loadable_module("blacklist_test_dll_3") { | 233 loadable_module("blacklist_test_dll_3") { |
234 sources = [ | 234 sources = [ |
235 "blacklist/test/blacklist_test_dll_3.cc", | 235 "blacklist/test/blacklist_test_dll_3.cc", |
236 ] | 236 ] |
237 deps = [ | 237 deps = [ |
238 "//build/config/sanitizers:deps", | 238 "//build/config/sanitizers:deps", |
239 ] | 239 ] |
240 } | 240 } |
OLD | NEW |