| 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",
|
|
|