| 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 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 17 matching lines...) Expand all Loading... |
| 28 sources = [ | 28 sources = [ |
| 29 "//chrome/app/chrome_crash_reporter_client_win.cc", | 29 "//chrome/app/chrome_crash_reporter_client_win.cc", |
| 30 "//chrome/app/chrome_crash_reporter_client_win.h", | 30 "//chrome/app/chrome_crash_reporter_client_win.h", |
| 31 "//chrome/common/chrome_result_codes.h", | 31 "//chrome/common/chrome_result_codes.h", |
| 32 "chrome_elf.def", | 32 "chrome_elf.def", |
| 33 "chrome_elf_main.cc", | 33 "chrome_elf_main.cc", |
| 34 "chrome_elf_main.h", | 34 "chrome_elf_main.h", |
| 35 ] | 35 ] |
| 36 deps = [ | 36 deps = [ |
| 37 ":blacklist", | 37 ":blacklist", |
| 38 ":breakpad", | |
| 39 ":chrome_elf_manifest", | 38 ":chrome_elf_manifest", |
| 40 ":chrome_elf_resources", | 39 ":chrome_elf_resources", |
| 41 ":common", | 40 ":common", |
| 42 "//base", | 41 "//base", |
| 43 "//build/config/sanitizers:deps", | 42 "//build/config/sanitizers:deps", |
| 44 "//chrome/install_static:install_static_util", | 43 "//chrome/install_static:install_static_util", |
| 45 "//components/crash/content/app", | 44 "//components/crash/content/app", |
| 46 "//components/crash/core/common", | 45 "//components/crash/core/common", |
| 47 "//content/public/common:result_codes", | 46 "//content/public/common:result_codes", |
| 47 "//third_party/crashpad/crashpad/client:client", |
| 48 ] | 48 ] |
| 49 configs += [ "//build/config/win:windowed" ] | 49 configs += [ "//build/config/win:windowed" ] |
| 50 configs -= [ "//build/config/win:console" ] | 50 configs -= [ "//build/config/win:console" ] |
| 51 ldflags = [ | 51 ldflags = [ |
| 52 "/NODEFAULTLIB:user32.lib", | 52 "/NODEFAULTLIB:user32.lib", |
| 53 "/DELAYLOAD:dbghelp.dll", | 53 "/DELAYLOAD:dbghelp.dll", |
| 54 "/DELAYLOAD:ole32.dll", | 54 "/DELAYLOAD:ole32.dll", |
| 55 "/DELAYLOAD:psapi.dll", | 55 "/DELAYLOAD:psapi.dll", |
| 56 "/DELAYLOAD:rpcrt4.dll", | 56 "/DELAYLOAD:rpcrt4.dll", |
| 57 "/DELAYLOAD:shell32.dll", | 57 "/DELAYLOAD:shell32.dll", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 80 deps = [ | 80 deps = [ |
| 81 "//base", | 81 "//base", |
| 82 "//sandbox", | 82 "//sandbox", |
| 83 ] | 83 ] |
| 84 sources = [ | 84 sources = [ |
| 85 "thunk_getter.cc", | 85 "thunk_getter.cc", |
| 86 "thunk_getter.h", | 86 "thunk_getter.h", |
| 87 ] | 87 ] |
| 88 } | 88 } |
| 89 | 89 |
| 90 source_set("breakpad") { | |
| 91 include_dirs = [ "$target_gen_dir" ] | |
| 92 sources = [ | |
| 93 "breakpad.cc", | |
| 94 "breakpad.h", | |
| 95 ] | |
| 96 deps = [ | |
| 97 ":common", | |
| 98 "//base", | |
| 99 "//breakpad:breakpad_handler", | |
| 100 "//chrome/common:version_header", | |
| 101 "//chrome/install_static:install_static_util", | |
| 102 ] | |
| 103 } | |
| 104 | |
| 105 source_set("dll_hash") { | 90 source_set("dll_hash") { |
| 106 deps = [ | 91 deps = [ |
| 107 "//base", | 92 "//base", |
| 108 ] | 93 ] |
| 109 sources = [ | 94 sources = [ |
| 110 "dll_hash/dll_hash.cc", | 95 "dll_hash/dll_hash.cc", |
| 111 "dll_hash/dll_hash.h", | 96 "dll_hash/dll_hash.h", |
| 112 ] | 97 ] |
| 113 } | 98 } |
| 114 | 99 |
| 115 executable("dll_hash_main") { | 100 executable("dll_hash_main") { |
| 116 sources = [ | 101 sources = [ |
| 117 "dll_hash/dll_hash_main.cc", | 102 "dll_hash/dll_hash_main.cc", |
| 118 ] | 103 ] |
| 119 deps = [ | 104 deps = [ |
| 120 ":dll_hash", | 105 ":dll_hash", |
| 121 "//build/config/sanitizers:deps", | 106 "//build/config/sanitizers:deps", |
| 122 "//build/win:default_exe_manifest", | 107 "//build/win:default_exe_manifest", |
| 123 ] | 108 ] |
| 124 } | 109 } |
| 125 | 110 |
| 126 static_library("blacklist") { | 111 static_library("blacklist") { |
| 127 sources = [ | 112 sources = [ |
| 128 "blacklist/blacklist.cc", | 113 "blacklist/blacklist.cc", |
| 129 "blacklist/blacklist.h", | 114 "blacklist/blacklist.h", |
| 130 "blacklist/blacklist_interceptions.cc", | 115 "blacklist/blacklist_interceptions.cc", |
| 131 "blacklist/blacklist_interceptions.h", | 116 "blacklist/blacklist_interceptions.h", |
| 117 "blacklist/crashpad_helper.cc", |
| 118 "blacklist/crashpad_helper.h", |
| 132 ] | 119 ] |
| 133 public_deps = [ | 120 public_deps = [ |
| 134 "//sandbox", | 121 "//sandbox", |
| 135 ] | 122 ] |
| 136 deps = [ | 123 deps = [ |
| 137 ":breakpad", | |
| 138 ":common", | 124 ":common", |
| 139 ":constants", | 125 ":constants", |
| 140 "//base", | 126 "//base", |
| 141 "//chrome/install_static:install_static_util", | 127 "//chrome/install_static:install_static_util", |
| 128 "//components/crash/content/app", |
| 129 "//third_party/crashpad/crashpad/client:client", |
| 142 ] | 130 ] |
| 143 } | 131 } |
| 144 | 132 |
| 145 test("chrome_elf_unittests") { | 133 test("chrome_elf_unittests") { |
| 146 output_name = "chrome_elf_unittests" | 134 output_name = "chrome_elf_unittests" |
| 147 sources = [ | 135 sources = [ |
| 148 "blacklist/test/blacklist_test.cc", | 136 "blacklist/test/blacklist_test.cc", |
| 149 "chrome_elf_util_unittest.cc", | 137 "chrome_elf_util_unittest.cc", |
| 150 "elf_imports_unittest.cc", | 138 "elf_imports_unittest.cc", |
| 151 "run_all_unittests.cc", | 139 "run_all_unittests.cc", |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 "blacklist/test/blacklist_test_main_dll.cc", | 184 "blacklist/test/blacklist_test_main_dll.cc", |
| 197 "blacklist/test/blacklist_test_main_dll.def", | 185 "blacklist/test/blacklist_test_main_dll.def", |
| 198 ] | 186 ] |
| 199 deps = [ | 187 deps = [ |
| 200 ":blacklist", | 188 ":blacklist", |
| 201 ":common", | 189 ":common", |
| 202 "//base", | 190 "//base", |
| 203 "//build/config/sanitizers:deps", | 191 "//build/config/sanitizers:deps", |
| 204 "//chrome/install_static:install_static_util", | 192 "//chrome/install_static:install_static_util", |
| 205 ] | 193 ] |
| 194 ldflags = [ |
| 195 "/NODEFAULTLIB:user32.lib", |
| 196 "/DELAYLOAD:dbghelp.dll", |
| 197 "/DELAYLOAD:ole32.dll", |
| 198 "/DELAYLOAD:psapi.dll", |
| 199 "/DELAYLOAD:rpcrt4.dll", |
| 200 "/DELAYLOAD:shell32.dll", |
| 201 "/DELAYLOAD:user32.dll", |
| 202 "/DELAYLOAD:winhttp.dll", |
| 203 "/DELAYLOAD:winmm.dll", |
| 204 "/DELAYLOAD:ws2_32.dll", |
| 205 ] |
| 206 } | 206 } |
| 207 | 207 |
| 208 loadable_module("blacklist_test_dll_1") { | 208 loadable_module("blacklist_test_dll_1") { |
| 209 sources = [ | 209 sources = [ |
| 210 "blacklist/test/blacklist_test_dll_1.cc", | 210 "blacklist/test/blacklist_test_dll_1.cc", |
| 211 "blacklist/test/blacklist_test_dll_1.def", | 211 "blacklist/test/blacklist_test_dll_1.def", |
| 212 ] | 212 ] |
| 213 deps = [ | 213 deps = [ |
| 214 "//build/config/sanitizers:deps", | 214 "//build/config/sanitizers:deps", |
| 215 ] | 215 ] |
| (...skipping 15 matching lines...) Expand all Loading... |
| 231 # which does), Ninja would get confused and always rebuild this target because | 231 # which does), Ninja would get confused and always rebuild this target because |
| 232 # it sees a declared output file but that file doesn't exist on disk. | 232 # it sees a declared output file but that file doesn't exist on disk. |
| 233 loadable_module("blacklist_test_dll_3") { | 233 loadable_module("blacklist_test_dll_3") { |
| 234 sources = [ | 234 sources = [ |
| 235 "blacklist/test/blacklist_test_dll_3.cc", | 235 "blacklist/test/blacklist_test_dll_3.cc", |
| 236 ] | 236 ] |
| 237 deps = [ | 237 deps = [ |
| 238 "//build/config/sanitizers:deps", | 238 "//build/config/sanitizers:deps", |
| 239 ] | 239 ] |
| 240 } | 240 } |
| OLD | NEW |