| 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 "chrome_elf_main.cc", | 28 "chrome_elf_main.cc", |
| 29 "chrome_elf_main.h", | 29 "chrome_elf_main.h", |
| 30 ] | 30 ] |
| 31 deps = [ | 31 deps = [ |
| 32 ":blacklist", | 32 ":blacklist", |
| 33 ":breakpad", | 33 ":breakpad", |
| 34 ":chrome_elf_manifest", | 34 ":chrome_elf_manifest", |
| 35 ":chrome_elf_resources", | 35 ":chrome_elf_resources", |
| 36 ":common", | 36 ":common", |
| 37 "//build/config/sanitizers:deps", | 37 "//build/config/sanitizers:deps", |
| 38 "//chrome/install_static:install_static_util", |
| 38 ] | 39 ] |
| 39 configs += [ "//build/config/win:windowed" ] | 40 configs += [ "//build/config/win:windowed" ] |
| 40 configs -= [ "//build/config/win:console" ] | 41 configs -= [ "//build/config/win:console" ] |
| 41 ldflags = [ "/NODEFAULTLIB:user32.lib" ] | 42 ldflags = [ "/NODEFAULTLIB:user32.lib" ] |
| 42 if (current_cpu == "x86") { | 43 if (current_cpu == "x86") { |
| 43 # Don"t set an x64 base address (to avoid breaking HE-ASLR). | 44 # Don"t set an x64 base address (to avoid breaking HE-ASLR). |
| 44 ldflags += [ "/BASE:0x01c20000" ] | 45 ldflags += [ "/BASE:0x01c20000" ] |
| 45 } | 46 } |
| 46 } | 47 } |
| 47 | 48 |
| 48 source_set("constants") { | 49 source_set("constants") { |
| 49 sources = [ | 50 sources = [ |
| 50 "chrome_elf_constants.cc", | 51 "chrome_elf_constants.cc", |
| 51 "chrome_elf_constants.h", | 52 "chrome_elf_constants.h", |
| 52 ] | 53 ] |
| 53 } | 54 } |
| 54 | 55 |
| 55 source_set("common") { | 56 source_set("common") { |
| 56 public_deps = [ | 57 public_deps = [ |
| 57 ":constants", | 58 ":constants", |
| 58 ] | 59 ] |
| 59 deps = [ | 60 deps = [ |
| 60 "//base", | 61 "//base", |
| 61 "//sandbox", | 62 "//sandbox", |
| 62 ] | 63 ] |
| 63 sources = [ | 64 sources = [ |
| 64 "chrome_elf_util.cc", | |
| 65 "chrome_elf_util.h", | |
| 66 "thunk_getter.cc", | 65 "thunk_getter.cc", |
| 67 "thunk_getter.h", | 66 "thunk_getter.h", |
| 68 ] | 67 ] |
| 69 } | 68 } |
| 70 | 69 |
| 71 source_set("breakpad") { | 70 source_set("breakpad") { |
| 72 include_dirs = [ "$target_gen_dir" ] | 71 include_dirs = [ "$target_gen_dir" ] |
| 73 sources = [ | 72 sources = [ |
| 74 "breakpad.cc", | 73 "breakpad.cc", |
| 75 "breakpad.h", | 74 "breakpad.h", |
| 76 ] | 75 ] |
| 77 deps = [ | 76 deps = [ |
| 78 ":common", | 77 ":common", |
| 79 "//base", | 78 "//base", |
| 80 "//breakpad:breakpad_handler", | 79 "//breakpad:breakpad_handler", |
| 81 "//chrome/common:version_header", | 80 "//chrome/common:version_header", |
| 81 "//chrome/install_static:install_static_util", |
| 82 ] | 82 ] |
| 83 } | 83 } |
| 84 | 84 |
| 85 source_set("dll_hash") { | 85 source_set("dll_hash") { |
| 86 deps = [ | 86 deps = [ |
| 87 "//base", | 87 "//base", |
| 88 ] | 88 ] |
| 89 sources = [ | 89 sources = [ |
| 90 "dll_hash/dll_hash.cc", | 90 "dll_hash/dll_hash.cc", |
| 91 "dll_hash/dll_hash.h", | 91 "dll_hash/dll_hash.h", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 110 "blacklist/blacklist_interceptions.h", | 110 "blacklist/blacklist_interceptions.h", |
| 111 ] | 111 ] |
| 112 public_deps = [ | 112 public_deps = [ |
| 113 "//sandbox", | 113 "//sandbox", |
| 114 ] | 114 ] |
| 115 deps = [ | 115 deps = [ |
| 116 ":breakpad", | 116 ":breakpad", |
| 117 ":common", | 117 ":common", |
| 118 ":constants", | 118 ":constants", |
| 119 "//base", | 119 "//base", |
| 120 "//chrome/install_static:install_static_util", |
| 120 ] | 121 ] |
| 121 } | 122 } |
| 122 | 123 |
| 123 test("chrome_elf_unittests") { | 124 test("chrome_elf_unittests") { |
| 124 output_name = "chrome_elf_unittests" | 125 output_name = "chrome_elf_unittests" |
| 125 sources = [ | 126 sources = [ |
| 126 "blacklist/test/blacklist_test.cc", | 127 "blacklist/test/blacklist_test.cc", |
| 127 "chrome_elf_util_unittest.cc", | 128 "chrome_elf_util_unittest.cc", |
| 128 "elf_imports_unittest.cc", | 129 "elf_imports_unittest.cc", |
| 129 ] | 130 ] |
| 130 include_dirs = [ "$target_gen_dir" ] | 131 include_dirs = [ "$target_gen_dir" ] |
| 131 deps = [ | 132 deps = [ |
| 132 ":blacklist", | 133 ":blacklist", |
| 133 ":blacklist_test_main_dll", | 134 ":blacklist_test_main_dll", |
| 134 ":common", | 135 ":common", |
| 135 "//base", | 136 "//base", |
| 136 "//base/test:run_all_unittests", | 137 "//base/test:run_all_unittests", |
| 137 "//base/test:test_support", | 138 "//base/test:test_support", |
| 138 "//chrome", | 139 "//chrome", |
| 139 "//chrome/common:version_header", | 140 "//chrome/common:version_header", |
| 141 "//chrome/install_static:install_static_util", |
| 140 "//sandbox", | 142 "//sandbox", |
| 141 "//testing/gtest", | 143 "//testing/gtest", |
| 142 ] | 144 ] |
| 143 | 145 |
| 144 # It's not easily possible to have //chrome in data_deps without changing | 146 # It's not easily possible to have //chrome in data_deps without changing |
| 145 # the //chrome target to bundle up both initial/chrome.exe and chrome.exe. | 147 # the //chrome target to bundle up both initial/chrome.exe and chrome.exe. |
| 146 # As a workaround, explicitly include a data dep on just chrome.exe, and | 148 # As a workaround, explicitly include a data dep on just chrome.exe, and |
| 147 # add //chrome to deps above to make sure it's been built. | 149 # add //chrome to deps above to make sure it's been built. |
| 148 data = [ | 150 data = [ |
| 149 "$root_out_dir/chrome.exe", | 151 "$root_out_dir/chrome.exe", |
| 150 ] | 152 ] |
| 151 data_deps = [ | 153 data_deps = [ |
| 152 ":blacklist_test_dll_1", | 154 ":blacklist_test_dll_1", |
| 153 ":blacklist_test_dll_2", | 155 ":blacklist_test_dll_2", |
| 154 ":blacklist_test_dll_3", | 156 ":blacklist_test_dll_3", |
| 155 ":chrome_elf", | 157 ":chrome_elf", |
| 156 ] | 158 ] |
| 157 } | 159 } |
| 158 | 160 |
| 159 shared_library("blacklist_test_main_dll") { | 161 shared_library("blacklist_test_main_dll") { |
| 160 sources = [ | 162 sources = [ |
| 161 "blacklist/test/blacklist_test_main_dll.cc", | 163 "blacklist/test/blacklist_test_main_dll.cc", |
| 162 "blacklist/test/blacklist_test_main_dll.def", | 164 "blacklist/test/blacklist_test_main_dll.def", |
| 163 ] | 165 ] |
| 164 deps = [ | 166 deps = [ |
| 165 ":blacklist", | 167 ":blacklist", |
| 166 ":common", | 168 ":common", |
| 167 "//base", | 169 "//base", |
| 168 "//build/config/sanitizers:deps", | 170 "//build/config/sanitizers:deps", |
| 171 "//chrome/install_static:install_static_util", |
| 169 ] | 172 ] |
| 170 } | 173 } |
| 171 | 174 |
| 172 loadable_module("blacklist_test_dll_1") { | 175 loadable_module("blacklist_test_dll_1") { |
| 173 sources = [ | 176 sources = [ |
| 174 "blacklist/test/blacklist_test_dll_1.cc", | 177 "blacklist/test/blacklist_test_dll_1.cc", |
| 175 "blacklist/test/blacklist_test_dll_1.def", | 178 "blacklist/test/blacklist_test_dll_1.def", |
| 176 ] | 179 ] |
| 177 deps = [ | 180 deps = [ |
| 178 "//build/config/sanitizers:deps", | 181 "//build/config/sanitizers:deps", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 195 # which does), Ninja would get confused and always rebuild this target because | 198 # which does), Ninja would get confused and always rebuild this target because |
| 196 # it sees a declared output file but that file doesn't exist on disk. | 199 # it sees a declared output file but that file doesn't exist on disk. |
| 197 loadable_module("blacklist_test_dll_3") { | 200 loadable_module("blacklist_test_dll_3") { |
| 198 sources = [ | 201 sources = [ |
| 199 "blacklist/test/blacklist_test_dll_3.cc", | 202 "blacklist/test/blacklist_test_dll_3.cc", |
| 200 ] | 203 ] |
| 201 deps = [ | 204 deps = [ |
| 202 "//build/config/sanitizers:deps", | 205 "//build/config/sanitizers:deps", |
| 203 ] | 206 ] |
| 204 } | 207 } |
| OLD | NEW |