| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 "//chrome/install_static:install_static_util", | 141 "//chrome/install_static:install_static_util", |
| 142 ] | 142 ] |
| 143 } | 143 } |
| 144 | 144 |
| 145 test("chrome_elf_unittests") { | 145 test("chrome_elf_unittests") { |
| 146 output_name = "chrome_elf_unittests" | 146 output_name = "chrome_elf_unittests" |
| 147 sources = [ | 147 sources = [ |
| 148 "blacklist/test/blacklist_test.cc", | 148 "blacklist/test/blacklist_test.cc", |
| 149 "chrome_elf_util_unittest.cc", | 149 "chrome_elf_util_unittest.cc", |
| 150 "elf_imports_unittest.cc", | 150 "elf_imports_unittest.cc", |
| 151 "run_all_unittests.cc", |
| 151 ] | 152 ] |
| 152 include_dirs = [ "$target_gen_dir" ] | 153 include_dirs = [ "$target_gen_dir" ] |
| 153 deps = [ | 154 deps = [ |
| 154 ":blacklist", | 155 ":blacklist", |
| 155 ":blacklist_test_main_dll", | 156 ":blacklist_test_main_dll", |
| 156 ":common", | 157 ":common", |
| 157 "//base", | 158 "//base", |
| 158 "//base/test:run_all_unittests", | |
| 159 "//base/test:test_support", | 159 "//base/test:test_support", |
| 160 "//chrome", | 160 "//chrome", |
| 161 "//chrome/common:version_header", | 161 "//chrome/common:version_header", |
| 162 "//chrome/install_static:install_static_util", | 162 "//chrome/install_static:install_static_util", |
| 163 "//sandbox", | 163 "//sandbox", |
| 164 "//testing/gtest", | 164 "//testing/gtest", |
| 165 ] | 165 ] |
| 166 | 166 |
| 167 # It's not easily possible to have //chrome in data_deps without changing | 167 # It's not easily possible to have //chrome in data_deps without changing |
| 168 # the //chrome target to bundle up both initial/chrome.exe and chrome.exe. | 168 # the //chrome target to bundle up both initial/chrome.exe and chrome.exe. |
| 169 # As a workaround, explicitly include a data dep on just chrome.exe, and | 169 # As a workaround, explicitly include a data dep on just chrome.exe, and |
| 170 # add //chrome to deps above to make sure it's been built. | 170 # add //chrome to deps above to make sure it's been built. |
| 171 data = [ | 171 data = [ |
| 172 "$root_out_dir/chrome.exe", | 172 "$root_out_dir/chrome.exe", |
| 173 ] | 173 ] |
| 174 data_deps = [ | 174 data_deps = [ |
| 175 ":blacklist_test_dll_1", | 175 ":blacklist_test_dll_1", |
| 176 ":blacklist_test_dll_2", | 176 ":blacklist_test_dll_2", |
| 177 ":blacklist_test_dll_3", | 177 ":blacklist_test_dll_3", |
| 178 ":chrome_elf", | 178 ":chrome_elf", |
| 179 ] | 179 ] |
| 180 ldflags = [ |
| 181 "/DELAYLOAD:dbghelp.dll", |
| 182 "/DELAYLOAD:ole32.dll", |
| 183 "/DELAYLOAD:psapi.dll", |
| 184 "/DELAYLOAD:rpcrt4.dll", |
| 185 "/DELAYLOAD:shell32.dll", |
| 186 "/DELAYLOAD:shlwapi.dll", |
| 187 "/DELAYLOAD:user32.dll", |
| 188 "/DELAYLOAD:winhttp.dll", |
| 189 "/DELAYLOAD:winmm.dll", |
| 190 "/DELAYLOAD:ws2_32.dll", |
| 191 ] |
| 180 } | 192 } |
| 181 | 193 |
| 182 shared_library("blacklist_test_main_dll") { | 194 shared_library("blacklist_test_main_dll") { |
| 183 sources = [ | 195 sources = [ |
| 184 "blacklist/test/blacklist_test_main_dll.cc", | 196 "blacklist/test/blacklist_test_main_dll.cc", |
| 185 "blacklist/test/blacklist_test_main_dll.def", | 197 "blacklist/test/blacklist_test_main_dll.def", |
| 186 ] | 198 ] |
| 187 deps = [ | 199 deps = [ |
| 188 ":blacklist", | 200 ":blacklist", |
| 189 ":common", | 201 ":common", |
| (...skipping 29 matching lines...) Expand all Loading... |
| 219 # 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 |
| 220 # 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. |
| 221 loadable_module("blacklist_test_dll_3") { | 233 loadable_module("blacklist_test_dll_3") { |
| 222 sources = [ | 234 sources = [ |
| 223 "blacklist/test/blacklist_test_dll_3.cc", | 235 "blacklist/test/blacklist_test_dll_3.cc", |
| 224 ] | 236 ] |
| 225 deps = [ | 237 deps = [ |
| 226 "//build/config/sanitizers:deps", | 238 "//build/config/sanitizers:deps", |
| 227 ] | 239 ] |
| 228 } | 240 } |
| OLD | NEW |