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

Unified Diff: chrome_elf/BUILD.gn

Issue 2183263003: [chrome_elf] Big ELF cleanup. Part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjusted g_crash_reports. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome_elf/blacklist.gypi » ('j') | chrome_elf/crash/crash_helper.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_elf/BUILD.gn
diff --git a/chrome_elf/BUILD.gn b/chrome_elf/BUILD.gn
index 5cc27bdf330d2cf70d2459ad86c098a2e294b632..876965066294c24427f544d3a04562cc7b51269e 100644
--- a/chrome_elf/BUILD.gn
+++ b/chrome_elf/BUILD.gn
@@ -33,9 +33,6 @@ windows_manifest("chrome_elf_manifest") {
# in the world.
shared_library("chrome_elf") {
sources = [
- "//chrome/app/chrome_crash_reporter_client_win.cc",
- "//chrome/app/chrome_crash_reporter_client_win.h",
- "//chrome/common/chrome_result_codes.h",
"chrome_elf.def",
"chrome_elf_main.cc",
"chrome_elf_main.h",
@@ -44,17 +41,13 @@ shared_library("chrome_elf") {
":blacklist",
":chrome_elf_manifest",
":chrome_elf_resources",
- ":chrome_elf_security",
":constants",
+ ":crash",
":hook_util",
- "//base",
+ ":security",
"//build/config/sanitizers:deps",
"//chrome/install_static:install_static_util",
"//chrome_elf/nt_registry:nt_registry",
- "//components/crash/content/app",
- "//components/crash/core/common",
- "//content/public/common:result_codes",
- "//third_party/crashpad/crashpad/client:client",
]
configs += [ "//build/config/win:windowed" ]
configs -= [ "//build/config/win:console" ]
@@ -65,7 +58,6 @@ shared_library("chrome_elf") {
"/DELAYLOAD:psapi.dll",
"/DELAYLOAD:rpcrt4.dll",
"/DELAYLOAD:shell32.dll",
- "/DELAYLOAD:user32.dll",
"/DELAYLOAD:winhttp.dll",
"/DELAYLOAD:winmm.dll",
"/DELAYLOAD:ws2_32.dll",
@@ -80,7 +72,7 @@ shared_library("chrome_elf") {
## source sets
##------------------------------------------------------------------------------
-source_set("chrome_elf_security") {
+source_set("security") {
sources = [
"chrome_elf_security.cc",
"chrome_elf_security.h",
@@ -129,30 +121,48 @@ static_library("blacklist") {
"blacklist/blacklist.h",
"blacklist/blacklist_interceptions.cc",
"blacklist/blacklist_interceptions.h",
- "blacklist/crashpad_helper.cc",
- "blacklist/crashpad_helper.h",
]
public_deps = [
"//sandbox",
]
deps = [
":constants",
+ ":crash",
":hook_util",
+ "//base:base_static", # pe_image
"//chrome/install_static:install_static_util",
"//chrome_elf/nt_registry:nt_registry",
+ ]
+}
- # Still uses base/win/pe_image.h
- "//base",
- "//third_party/crashpad/crashpad/client:client",
+static_library("crash") {
+ sources = [
+ "../chrome/app/chrome_crash_reporter_client_win.cc",
+ "../chrome/app/chrome_crash_reporter_client_win.h",
+ "../chrome/common/chrome_result_codes.h",
+ "crash/crash_helper.cc",
+ "crash/crash_helper.h",
+ ]
+ deps = [
+ ":hook_util",
+ "//base:base", # This needs to go.
+ "//base:base_static", # pe_image
+ "//chrome/install_static:install_static_util",
+ "//components/crash/content/app:app",
+ "//components/crash/core/common", # crash_keys
+ "//content/public/common:result_codes",
+ "//third_party/crashpad/crashpad/client:client", # DumpWithoutCrash
]
}
static_library("hook_util") {
sources = [
- "hook_util/thunk_getter.cc",
- "hook_util/thunk_getter.h",
+ "../base/macros.h",
+ "hook_util/hook_util.cc",
+ "hook_util/hook_util.h",
]
deps = [
+ "//base:base_static", # pe_image
"//sandbox",
]
}
@@ -173,9 +183,10 @@ test("chrome_elf_unittests") {
deps = [
":blacklist",
":blacklist_test_main_dll",
- ":chrome_elf_security",
":constants",
+ ":crash",
":hook_util",
+ ":security",
"//base",
"//base/test:test_support",
"//chrome",
« no previous file with comments | « no previous file | chrome_elf/blacklist.gypi » ('j') | chrome_elf/crash/crash_helper.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698