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 27 matching lines...) Expand all Loading... |
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", | 45 ":breakpad", |
46 ":chrome_elf_manifest", | 46 ":chrome_elf_manifest", |
47 ":chrome_elf_resources", | 47 ":chrome_elf_resources", |
| 48 ":chrome_elf_security", |
48 ":hook_util", | 49 ":hook_util", |
49 "//base", | 50 "//base", |
50 "//build/config/sanitizers:deps", | 51 "//build/config/sanitizers:deps", |
51 "//chrome/install_static:install_static_util", | 52 "//chrome/install_static:install_static_util", |
52 "//chrome_elf/nt_registry:nt_registry", | 53 "//chrome_elf/nt_registry:nt_registry", |
53 "//components/crash/content/app", | 54 "//components/crash/content/app", |
54 "//components/crash/core/common", | 55 "//components/crash/core/common", |
55 "//content/public/common:result_codes", | 56 "//content/public/common:result_codes", |
56 ] | 57 ] |
57 configs += [ "//build/config/win:windowed" ] | 58 configs += [ "//build/config/win:windowed" ] |
(...skipping 13 matching lines...) Expand all Loading... |
71 if (current_cpu == "x86") { | 72 if (current_cpu == "x86") { |
72 # Don"t set an x64 base address (to avoid breaking HE-ASLR). | 73 # Don"t set an x64 base address (to avoid breaking HE-ASLR). |
73 ldflags += [ "/BASE:0x01c20000" ] | 74 ldflags += [ "/BASE:0x01c20000" ] |
74 } | 75 } |
75 } | 76 } |
76 | 77 |
77 ##------------------------------------------------------------------------------ | 78 ##------------------------------------------------------------------------------ |
78 ## source sets | 79 ## source sets |
79 ##------------------------------------------------------------------------------ | 80 ##------------------------------------------------------------------------------ |
80 | 81 |
| 82 source_set("chrome_elf_security") { |
| 83 sources = [ |
| 84 "chrome_elf_security.cc", |
| 85 "chrome_elf_security.h", |
| 86 ] |
| 87 deps = [ |
| 88 ":constants", |
| 89 "//chrome_elf/nt_registry:nt_registry", |
| 90 ] |
| 91 } |
| 92 |
81 source_set("constants") { | 93 source_set("constants") { |
82 sources = [ | 94 sources = [ |
83 "chrome_elf_constants.cc", | 95 "chrome_elf_constants.cc", |
84 "chrome_elf_constants.h", | 96 "chrome_elf_constants.h", |
85 ] | 97 ] |
86 } | 98 } |
87 | 99 |
88 source_set("dll_hash") { | 100 source_set("dll_hash") { |
89 deps = [ | 101 deps = [ |
90 "//base", | 102 "//base", |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 sources = [ | 177 sources = [ |
166 "blacklist/test/blacklist_test.cc", | 178 "blacklist/test/blacklist_test.cc", |
167 "chrome_elf_util_unittest.cc", | 179 "chrome_elf_util_unittest.cc", |
168 "elf_imports_unittest.cc", | 180 "elf_imports_unittest.cc", |
169 "run_all_unittests.cc", | 181 "run_all_unittests.cc", |
170 ] | 182 ] |
171 include_dirs = [ "$target_gen_dir" ] | 183 include_dirs = [ "$target_gen_dir" ] |
172 deps = [ | 184 deps = [ |
173 ":blacklist", | 185 ":blacklist", |
174 ":blacklist_test_main_dll", | 186 ":blacklist_test_main_dll", |
| 187 ":chrome_elf_security", |
175 ":constants", | 188 ":constants", |
176 ":hook_util", | 189 ":hook_util", |
177 "//base", | 190 "//base", |
178 "//base/test:test_support", | 191 "//base/test:test_support", |
179 "//chrome", | 192 "//chrome", |
180 "//chrome/common:version_header", | 193 "//chrome/common:version_header", |
181 "//chrome/install_static:install_static_util", | 194 "//chrome/install_static:install_static_util", |
182 "//chrome_elf/nt_registry:nt_registry", | 195 "//chrome_elf/nt_registry:nt_registry", |
183 "//sandbox", | 196 "//sandbox", |
184 "//testing/gtest", | 197 "//testing/gtest", |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 # which does), Ninja would get confused and always rebuild this target because | 264 # which does), Ninja would get confused and always rebuild this target because |
252 # it sees a declared output file but that file doesn't exist on disk. | 265 # it sees a declared output file but that file doesn't exist on disk. |
253 loadable_module("blacklist_test_dll_3") { | 266 loadable_module("blacklist_test_dll_3") { |
254 sources = [ | 267 sources = [ |
255 "blacklist/test/blacklist_test_dll_3.cc", | 268 "blacklist/test/blacklist_test_dll_3.cc", |
256 ] | 269 ] |
257 deps = [ | 270 deps = [ |
258 "//build/config/sanitizers:deps", | 271 "//build/config/sanitizers:deps", |
259 ] | 272 ] |
260 } | 273 } |
OLD | NEW |