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 14 matching lines...) Expand all Loading... | |
25 # We should move chrome_result_codes.h to another target which does not bring | 25 # We should move chrome_result_codes.h to another target which does not bring |
26 # in the world. | 26 # in the world. |
27 shared_library("chrome_elf") { | 27 shared_library("chrome_elf") { |
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 "crashpad_helper.cc", | |
36 "crashpad_helper.h", | |
35 ] | 37 ] |
36 deps = [ | 38 deps = [ |
37 ":blacklist", | 39 ":blacklist", |
38 ":breakpad", | |
39 ":chrome_elf_manifest", | 40 ":chrome_elf_manifest", |
40 ":chrome_elf_resources", | 41 ":chrome_elf_resources", |
41 ":common", | 42 ":common", |
42 "//base", | 43 "//base", |
43 "//build/config/sanitizers:deps", | 44 "//build/config/sanitizers:deps", |
44 "//chrome/install_static:install_static_util", | 45 "//chrome/install_static:install_static_util", |
45 "//components/crash/content/app", | 46 "//components/crash/content/app", |
46 "//components/crash/core/common", | 47 "//components/crash/core/common", |
47 "//content/public/common:result_codes", | 48 "//content/public/common:result_codes", |
49 "//third_party/crashpad/crashpad/client:client", | |
48 ] | 50 ] |
49 configs += [ "//build/config/win:windowed" ] | 51 configs += [ "//build/config/win:windowed" ] |
50 configs -= [ "//build/config/win:console" ] | 52 configs -= [ "//build/config/win:console" ] |
51 ldflags = [ | 53 ldflags = [ |
52 "/NODEFAULTLIB:user32.lib", | 54 "/NODEFAULTLIB:user32.lib", |
53 "/DELAYLOAD:dbghelp.dll", | 55 "/DELAYLOAD:dbghelp.dll", |
54 "/DELAYLOAD:ole32.dll", | 56 "/DELAYLOAD:ole32.dll", |
55 "/DELAYLOAD:psapi.dll", | 57 "/DELAYLOAD:psapi.dll", |
56 "/DELAYLOAD:rpcrt4.dll", | 58 "/DELAYLOAD:rpcrt4.dll", |
57 "/DELAYLOAD:shell32.dll", | 59 "/DELAYLOAD:shell32.dll", |
(...skipping 22 matching lines...) Expand all Loading... | |
80 deps = [ | 82 deps = [ |
81 "//base", | 83 "//base", |
82 "//sandbox", | 84 "//sandbox", |
83 ] | 85 ] |
84 sources = [ | 86 sources = [ |
85 "thunk_getter.cc", | 87 "thunk_getter.cc", |
86 "thunk_getter.h", | 88 "thunk_getter.h", |
87 ] | 89 ] |
88 } | 90 } |
89 | 91 |
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 | |
105 source_set("dll_hash") { | 92 source_set("dll_hash") { |
106 deps = [ | 93 deps = [ |
107 "//base", | 94 "//base", |
108 ] | 95 ] |
109 sources = [ | 96 sources = [ |
110 "dll_hash/dll_hash.cc", | 97 "dll_hash/dll_hash.cc", |
111 "dll_hash/dll_hash.h", | 98 "dll_hash/dll_hash.h", |
112 ] | 99 ] |
113 } | 100 } |
114 | 101 |
115 executable("dll_hash_main") { | 102 executable("dll_hash_main") { |
116 sources = [ | 103 sources = [ |
117 "dll_hash/dll_hash_main.cc", | 104 "dll_hash/dll_hash_main.cc", |
118 ] | 105 ] |
119 deps = [ | 106 deps = [ |
120 ":dll_hash", | 107 ":dll_hash", |
121 "//build/config/sanitizers:deps", | 108 "//build/config/sanitizers:deps", |
122 "//build/win:default_exe_manifest", | 109 "//build/win:default_exe_manifest", |
123 ] | 110 ] |
124 } | 111 } |
125 | 112 |
126 static_library("blacklist") { | 113 static_library("blacklist") { |
127 sources = [ | 114 sources = [ |
128 "blacklist/blacklist.cc", | 115 "blacklist/blacklist.cc", |
129 "blacklist/blacklist.h", | 116 "blacklist/blacklist.h", |
130 "blacklist/blacklist_interceptions.cc", | 117 "blacklist/blacklist_interceptions.cc", |
131 "blacklist/blacklist_interceptions.h", | 118 "blacklist/blacklist_interceptions.h", |
119 "crashpad_helper.cc", | |
scottmg
2016/06/22 19:38:07
I don't think this should be in both blacklist and
ananta
2016/06/22 21:08:20
Yeah. Moved the files to the blacklist folder.
| |
120 "crashpad_helper.h", | |
132 ] | 121 ] |
133 public_deps = [ | 122 public_deps = [ |
134 "//sandbox", | 123 "//sandbox", |
135 ] | 124 ] |
136 deps = [ | 125 deps = [ |
137 ":breakpad", | |
138 ":common", | 126 ":common", |
139 ":constants", | 127 ":constants", |
140 "//base", | 128 "//base", |
141 "//chrome/install_static:install_static_util", | 129 "//chrome/install_static:install_static_util", |
130 "//components/crash/content/app", | |
131 "//third_party/crashpad/crashpad/client:client", | |
142 ] | 132 ] |
143 } | 133 } |
144 | 134 |
145 test("chrome_elf_unittests") { | 135 test("chrome_elf_unittests") { |
146 output_name = "chrome_elf_unittests" | 136 output_name = "chrome_elf_unittests" |
147 sources = [ | 137 sources = [ |
148 "blacklist/test/blacklist_test.cc", | 138 "blacklist/test/blacklist_test.cc", |
149 "chrome_elf_util_unittest.cc", | 139 "chrome_elf_util_unittest.cc", |
150 "elf_imports_unittest.cc", | 140 "elf_imports_unittest.cc", |
151 ] | 141 ] |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 # which does), Ninja would get confused and always rebuild this target because | 209 # which does), Ninja would get confused and always rebuild this target because |
220 # it sees a declared output file but that file doesn't exist on disk. | 210 # it sees a declared output file but that file doesn't exist on disk. |
221 loadable_module("blacklist_test_dll_3") { | 211 loadable_module("blacklist_test_dll_3") { |
222 sources = [ | 212 sources = [ |
223 "blacklist/test/blacklist_test_dll_3.cc", | 213 "blacklist/test/blacklist_test_dll_3.cc", |
224 ] | 214 ] |
225 deps = [ | 215 deps = [ |
226 "//build/config/sanitizers:deps", | 216 "//build/config/sanitizers:deps", |
227 ] | 217 ] |
228 } | 218 } |
OLD | NEW |