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

Side by Side Diff: chrome_elf/BUILD.gn

Issue 2053953002: Add chrome_crash_reporter_client_win.cc to the source file list for chrome_elf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 6 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/install_static/install_util_unittest.cc ('k') | chrome_elf/DEPS » ('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 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
11 sources = [ 11 sources = [
12 "chrome_elf.ver", 12 "chrome_elf.ver",
13 ] 13 ]
14 output = "$target_gen_dir/chrome_elf_version.rc" 14 output = "$target_gen_dir/chrome_elf_version.rc"
15 } 15 }
16 16
17 # This manifest matches what GYP produces. It may not even be necessary. 17 # This manifest matches what GYP produces. It may not even be necessary.
18 windows_manifest("chrome_elf_manifest") { 18 windows_manifest("chrome_elf_manifest") {
19 sources = [ 19 sources = [
20 as_invoker_manifest, 20 as_invoker_manifest,
21 ] 21 ]
22 type = "dll" 22 type = "dll"
23 } 23 }
24 24
25 # We should move chrome_result_codes.h to another target which does not bring
26 # in the world.
25 shared_library("chrome_elf") { 27 shared_library("chrome_elf") {
26 sources = [ 28 sources = [
29 "//chrome/app/chrome_crash_reporter_client_win.cc",
30 "//chrome/app/chrome_crash_reporter_client_win.h",
31 "//chrome/common/chrome_result_codes.h",
27 "chrome_elf.def", 32 "chrome_elf.def",
28 "chrome_elf_main.cc", 33 "chrome_elf_main.cc",
29 "chrome_elf_main.h", 34 "chrome_elf_main.h",
30 ] 35 ]
31 deps = [ 36 deps = [
32 ":blacklist", 37 ":blacklist",
33 ":breakpad", 38 ":breakpad",
34 ":chrome_elf_manifest", 39 ":chrome_elf_manifest",
35 ":chrome_elf_resources", 40 ":chrome_elf_resources",
36 ":common", 41 ":common",
42 "//base",
37 "//build/config/sanitizers:deps", 43 "//build/config/sanitizers:deps",
38 "//chrome/install_static:install_static_util", 44 "//chrome/install_static:install_static_util",
45 "//components/crash/content/app",
46 "//components/crash/core/common",
47 "//content/public/common:result_codes",
39 ] 48 ]
40 configs += [ "//build/config/win:windowed" ] 49 configs += [ "//build/config/win:windowed" ]
41 configs -= [ "//build/config/win:console" ] 50 configs -= [ "//build/config/win:console" ]
42 ldflags = [ "/NODEFAULTLIB:user32.lib" ] 51 ldflags = [
52 "/NODEFAULTLIB:user32.lib",
53 "/DELAYLOAD:dbghelp.dll",
grt (UTC plus 2) 2016/06/14 20:07:13 is the idea here that these are all delayloads tha
ananta 2016/06/14 21:27:40 The expectation is that these dlls were load after
54 "/DELAYLOAD:ole32.dll",
55 "/DELAYLOAD:psapi.dll",
56 "/DELAYLOAD:rpcrt4.dll",
57 "/DELAYLOAD:shell32.dll",
58 "/DELAYLOAD:user32.dll",
59 "/DELAYLOAD:winhttp.dll",
60 "/DELAYLOAD:winmm.dll",
61 "/DELAYLOAD:ws2_32.dll",
62 ]
43 if (current_cpu == "x86") { 63 if (current_cpu == "x86") {
44 # Don"t set an x64 base address (to avoid breaking HE-ASLR). 64 # Don"t set an x64 base address (to avoid breaking HE-ASLR).
45 ldflags += [ "/BASE:0x01c20000" ] 65 ldflags += [ "/BASE:0x01c20000" ]
46 } 66 }
47 } 67 }
48 68
49 source_set("constants") { 69 source_set("constants") {
50 sources = [ 70 sources = [
51 "chrome_elf_constants.cc", 71 "chrome_elf_constants.cc",
52 "chrome_elf_constants.h", 72 "chrome_elf_constants.h",
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 # which does), Ninja would get confused and always rebuild this target because 219 # which does), Ninja would get confused and always rebuild this target because
200 # it sees a declared output file but that file doesn't exist on disk. 220 # it sees a declared output file but that file doesn't exist on disk.
201 loadable_module("blacklist_test_dll_3") { 221 loadable_module("blacklist_test_dll_3") {
202 sources = [ 222 sources = [
203 "blacklist/test/blacklist_test_dll_3.cc", 223 "blacklist/test/blacklist_test_dll_3.cc",
204 ] 224 ]
205 deps = [ 225 deps = [
206 "//build/config/sanitizers:deps", 226 "//build/config/sanitizers:deps",
207 ] 227 ]
208 } 228 }
OLDNEW
« no previous file with comments | « chrome/install_static/install_util_unittest.cc ('k') | chrome_elf/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698