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

Side by Side Diff: chrome_elf/BUILD.gn

Issue 1904613002: Preparation patch for moving the chrome crashpad integration into chrome_elf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent Created 4 years, 8 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
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
(...skipping 16 matching lines...) Expand all
27 "chrome_elf_main.cc", 27 "chrome_elf_main.cc",
28 "chrome_elf_main.h", 28 "chrome_elf_main.h",
29 ] 29 ]
30 deps = [ 30 deps = [
31 ":blacklist", 31 ":blacklist",
32 ":breakpad", 32 ":breakpad",
33 ":chrome_elf_manifest", 33 ":chrome_elf_manifest",
34 ":chrome_elf_resources", 34 ":chrome_elf_resources",
35 ":common", 35 ":common",
36 "//build/config/sanitizers:deps", 36 "//build/config/sanitizers:deps",
37 "//chrome/install_static:install_static_util",
37 ] 38 ]
38 configs += [ "//build/config/win:windowed" ] 39 configs += [ "//build/config/win:windowed" ]
39 configs -= [ "//build/config/win:console" ] 40 configs -= [ "//build/config/win:console" ]
40 ldflags = [ 41 ldflags = [
41 "/NODEFAULTLIB:user32.lib", 42 "/NODEFAULTLIB:user32.lib",
42 "/DEF:" + rebase_path("chrome_elf.def"), 43 "/DEF:" + rebase_path("chrome_elf.def"),
43 ] 44 ]
44 if (current_cpu == "x86") { 45 if (current_cpu == "x86") {
45 # Don"t set an x64 base address (to avoid breaking HE-ASLR). 46 # Don"t set an x64 base address (to avoid breaking HE-ASLR).
46 ldflags += [ "/BASE:0x01c20000" ] 47 ldflags += [ "/BASE:0x01c20000" ]
47 } 48 }
48 } 49 }
49 50
50 source_set("constants") { 51 source_set("constants") {
51 sources = [ 52 sources = [
52 "chrome_elf_constants.cc", 53 "chrome_elf_constants.cc",
53 "chrome_elf_constants.h", 54 "chrome_elf_constants.h",
54 ] 55 ]
55 } 56 }
56 57
57 source_set("common") { 58 source_set("common") {
58 public_deps = [ 59 public_deps = [
59 ":constants", 60 ":constants",
60 ] 61 ]
61 deps = [ 62 deps = [
62 "//base", 63 "//base",
63 "//sandbox", 64 "//sandbox",
64 ] 65 ]
65 sources = [ 66 sources = [
66 "chrome_elf_util.cc",
67 "chrome_elf_util.h",
68 "thunk_getter.cc", 67 "thunk_getter.cc",
69 "thunk_getter.h", 68 "thunk_getter.h",
70 ] 69 ]
71 } 70 }
72 71
73 source_set("breakpad") { 72 source_set("breakpad") {
74 include_dirs = [ "$target_gen_dir" ] 73 include_dirs = [ "$target_gen_dir" ]
75 sources = [ 74 sources = [
76 "breakpad.cc", 75 "breakpad.cc",
77 "breakpad.h", 76 "breakpad.h",
78 ] 77 ]
79 deps = [ 78 deps = [
80 ":common", 79 ":common",
81 "//base", 80 "//base",
82 "//breakpad:breakpad_handler", 81 "//breakpad:breakpad_handler",
83 "//chrome/common:version_header", 82 "//chrome/common:version_header",
83 "//chrome/install_static:install_static_util",
84 ] 84 ]
85 } 85 }
86 86
87 source_set("dll_hash") { 87 source_set("dll_hash") {
88 deps = [ 88 deps = [
89 "//base", 89 "//base",
90 ] 90 ]
91 sources = [ 91 sources = [
92 "dll_hash/dll_hash.cc", 92 "dll_hash/dll_hash.cc",
93 "dll_hash/dll_hash.h", 93 "dll_hash/dll_hash.h",
(...skipping 18 matching lines...) Expand all
112 "blacklist/blacklist_interceptions.h", 112 "blacklist/blacklist_interceptions.h",
113 ] 113 ]
114 public_deps = [ 114 public_deps = [
115 "//sandbox", 115 "//sandbox",
116 ] 116 ]
117 deps = [ 117 deps = [
118 ":breakpad", 118 ":breakpad",
119 ":common", 119 ":common",
120 ":constants", 120 ":constants",
121 "//base", 121 "//base",
122 "//chrome/install_static:install_static_util",
122 ] 123 ]
123 } 124 }
124 125
125 test("chrome_elf_unittests") { 126 test("chrome_elf_unittests") {
126 output_name = "chrome_elf_unittests" 127 output_name = "chrome_elf_unittests"
127 sources = [ 128 sources = [
128 "blacklist/test/blacklist_test.cc", 129 "blacklist/test/blacklist_test.cc",
129 "chrome_elf_util_unittest.cc", 130 "chrome_elf_util_unittest.cc",
130 "elf_imports_unittest.cc", 131 "elf_imports_unittest.cc",
131 ] 132 ]
132 include_dirs = [ "$target_gen_dir" ] 133 include_dirs = [ "$target_gen_dir" ]
133 deps = [ 134 deps = [
134 ":blacklist", 135 ":blacklist",
135 ":blacklist_test_main_dll", 136 ":blacklist_test_main_dll",
136 ":common", 137 ":common",
137 "//base", 138 "//base",
138 "//base/test:run_all_unittests", 139 "//base/test:run_all_unittests",
139 "//base/test:test_support", 140 "//base/test:test_support",
140 "//chrome", 141 "//chrome",
141 "//chrome/common:version_header", 142 "//chrome/common:version_header",
143 "//chrome/install_static:install_static_util",
142 "//sandbox", 144 "//sandbox",
143 "//testing/gtest", 145 "//testing/gtest",
144 ] 146 ]
145 147
146 # It's not easily possible to have //chrome in data_deps without changing 148 # It's not easily possible to have //chrome in data_deps without changing
147 # the //chrome target to bundle up both initial/chrome.exe and chrome.exe. 149 # the //chrome target to bundle up both initial/chrome.exe and chrome.exe.
148 # As a workaround, explicitly include a data dep on just chrome.exe, and 150 # As a workaround, explicitly include a data dep on just chrome.exe, and
149 # add //chrome to deps above to make sure it's been built. 151 # add //chrome to deps above to make sure it's been built.
150 data = [ 152 data = [
151 "$root_out_dir/chrome.exe", 153 "$root_out_dir/chrome.exe",
152 ] 154 ]
153 data_deps = [ 155 data_deps = [
154 ":blacklist_test_dll_1", 156 ":blacklist_test_dll_1",
155 ":blacklist_test_dll_2", 157 ":blacklist_test_dll_2",
156 ":blacklist_test_dll_3", 158 ":blacklist_test_dll_3",
157 ":chrome_elf", 159 ":chrome_elf",
158 ] 160 ]
159 } 161 }
160 162
161 shared_library("blacklist_test_main_dll") { 163 shared_library("blacklist_test_main_dll") {
162 sources = [ 164 sources = [
163 "blacklist/test/blacklist_test_main_dll.cc", 165 "blacklist/test/blacklist_test_main_dll.cc",
164 ] 166 ]
165 deps = [ 167 deps = [
166 ":blacklist", 168 ":blacklist",
167 ":common", 169 ":common",
168 "//base", 170 "//base",
169 "//build/config/sanitizers:deps", 171 "//build/config/sanitizers:deps",
172 "//chrome/install_static:install_static_util",
170 ] 173 ]
171 ldflags = 174 ldflags =
172 [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_main_dll.def", 175 [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_main_dll.def",
173 root_build_dir) ] 176 root_build_dir) ]
174 } 177 }
175 178
176 shared_library("blacklist_test_dll_1") { 179 shared_library("blacklist_test_dll_1") {
177 sources = [ 180 sources = [
178 "blacklist/test/blacklist_test_dll_1.cc", 181 "blacklist/test/blacklist_test_dll_1.cc",
179 ] 182 ]
(...skipping 16 matching lines...) Expand all
196 } 199 }
197 200
198 shared_library("blacklist_test_dll_3") { 201 shared_library("blacklist_test_dll_3") {
199 sources = [ 202 sources = [
200 "blacklist/test/blacklist_test_dll_3.cc", 203 "blacklist/test/blacklist_test_dll_3.cc",
201 ] 204 ]
202 deps = [ 205 deps = [
203 "//build/config/sanitizers:deps", 206 "//build/config/sanitizers:deps",
204 ] 207 ]
205 } 208 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698