| 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 15 matching lines...) Expand all Loading... |
| 26 sources = [ | 26 sources = [ |
| 27 "chrome_elf_main.cc", | 27 "chrome_elf_main.cc", |
| 28 "chrome_elf_main.h", | 28 "chrome_elf_main.h", |
| 29 ] | 29 ] |
| 30 deps = [ | 30 deps = [ |
| 31 ":blacklist", | 31 ":blacklist", |
| 32 ":breakpad", | 32 ":breakpad", |
| 33 ":chrome_elf_manifest", | 33 ":chrome_elf_manifest", |
| 34 ":lib", | 34 ":lib", |
| 35 ":chrome_elf_resources", | 35 ":chrome_elf_resources", |
| 36 "//build/config/sanitizers:deps", |
| 36 ] | 37 ] |
| 37 configs += [ "//build/config/win:windowed" ] | 38 configs += [ "//build/config/win:windowed" ] |
| 38 configs -= [ "//build/config/win:console" ] | 39 configs -= [ "//build/config/win:console" ] |
| 39 ldflags = [ | 40 ldflags = [ |
| 40 "/NODEFAULTLIB:user32.lib", | 41 "/NODEFAULTLIB:user32.lib", |
| 41 "/DEF:" + rebase_path("chrome_elf.def"), | 42 "/DEF:" + rebase_path("chrome_elf.def"), |
| 42 ] | 43 ] |
| 43 if (current_cpu == "x86") { | 44 if (current_cpu == "x86") { |
| 44 # Don"t set an x64 base address (to avoid breaking HE-ASLR). | 45 # Don"t set an x64 base address (to avoid breaking HE-ASLR). |
| 45 ldflags += [ "/BASE:0x01c20000" ] | 46 ldflags += [ "/BASE:0x01c20000" ] |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 ] | 94 ] |
| 94 } | 95 } |
| 95 | 96 |
| 96 if (is_component_build) { | 97 if (is_component_build) { |
| 97 shared_library("chrome_redirects") { | 98 shared_library("chrome_redirects") { |
| 98 sources = [ | 99 sources = [ |
| 99 "chrome_redirects_main.cc", | 100 "chrome_redirects_main.cc", |
| 100 ] | 101 ] |
| 101 deps = [ | 102 deps = [ |
| 102 ":lib", | 103 ":lib", |
| 104 "//build/config/sanitizers:deps", |
| 103 ] | 105 ] |
| 104 configs += [ "//build/config/win:windowed" ] | 106 configs += [ "//build/config/win:windowed" ] |
| 105 ldflags = [ "/DEF:" + rebase_path("chrome_redirects.def") ] | 107 ldflags = [ "/DEF:" + rebase_path("chrome_redirects.def") ] |
| 106 | 108 |
| 107 if (current_cpu == "x86") { | 109 if (current_cpu == "x86") { |
| 108 # Don't set an x64 base address (to avoid breaking HE-ASLR). | 110 # Don't set an x64 base address (to avoid breaking HE-ASLR). |
| 109 ldflags += [ "/BASE:0x01c20000" ] | 111 ldflags += [ "/BASE:0x01c20000" ] |
| 110 } | 112 } |
| 111 } | 113 } |
| 112 } | 114 } |
| 113 | 115 |
| 114 source_set("dll_hash") { | 116 source_set("dll_hash") { |
| 115 deps = [ | 117 deps = [ |
| 116 "//base", | 118 "//base", |
| 117 ] | 119 ] |
| 118 sources = [ | 120 sources = [ |
| 119 "dll_hash/dll_hash.cc", | 121 "dll_hash/dll_hash.cc", |
| 120 "dll_hash/dll_hash.h", | 122 "dll_hash/dll_hash.h", |
| 121 ] | 123 ] |
| 122 } | 124 } |
| 123 | 125 |
| 124 executable("dll_hash_main") { | 126 executable("dll_hash_main") { |
| 127 sources = [ |
| 128 "dll_hash/dll_hash_main.cc", |
| 129 ] |
| 125 deps = [ | 130 deps = [ |
| 126 ":dll_hash", | 131 ":dll_hash", |
| 127 ] | 132 "//build/config/sanitizers:deps", |
| 128 sources = [ | |
| 129 "dll_hash/dll_hash_main.cc", | |
| 130 ] | 133 ] |
| 131 } | 134 } |
| 132 | 135 |
| 133 static_library("blacklist") { | 136 static_library("blacklist") { |
| 134 sources = [ | 137 sources = [ |
| 135 "blacklist/blacklist.cc", | 138 "blacklist/blacklist.cc", |
| 136 "blacklist/blacklist.h", | 139 "blacklist/blacklist.h", |
| 137 "blacklist/blacklist_interceptions.cc", | 140 "blacklist/blacklist_interceptions.cc", |
| 138 "blacklist/blacklist_interceptions.h", | 141 "blacklist/blacklist_interceptions.h", |
| 139 ] | 142 ] |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 ":chrome_elf", | 178 ":chrome_elf", |
| 176 "//chrome", | 179 "//chrome", |
| 177 ] | 180 ] |
| 178 } | 181 } |
| 179 | 182 |
| 180 shared_library("blacklist_test_main_dll") { | 183 shared_library("blacklist_test_main_dll") { |
| 181 sources = [ | 184 sources = [ |
| 182 "blacklist/test/blacklist_test_main_dll.cc", | 185 "blacklist/test/blacklist_test_main_dll.cc", |
| 183 ] | 186 ] |
| 184 deps = [ | 187 deps = [ |
| 188 ":blacklist", |
| 185 "//base", | 189 "//base", |
| 186 ":blacklist", | 190 "//build/config/sanitizers:deps", |
| 187 ] | 191 ] |
| 188 ldflags = | 192 ldflags = |
| 189 [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_main_dll.def", | 193 [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_main_dll.def", |
| 190 root_build_dir) ] | 194 root_build_dir) ] |
| 191 } | 195 } |
| 192 | 196 |
| 193 shared_library("blacklist_test_dll_1") { | 197 shared_library("blacklist_test_dll_1") { |
| 194 sources = [ | 198 sources = [ |
| 195 "blacklist/test/blacklist_test_dll_1.cc", | 199 "blacklist/test/blacklist_test_dll_1.cc", |
| 196 ] | 200 ] |
| 197 ldflags = [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_dll_1.def", | 201 ldflags = [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_dll_1.def", |
| 198 root_build_dir) ] | 202 root_build_dir) ] |
| 203 deps = [ |
| 204 "//build/config/sanitizers:deps", |
| 205 ] |
| 199 } | 206 } |
| 200 | 207 |
| 201 shared_library("blacklist_test_dll_2") { | 208 shared_library("blacklist_test_dll_2") { |
| 202 sources = [ | 209 sources = [ |
| 203 "blacklist/test/blacklist_test_dll_2.cc", | 210 "blacklist/test/blacklist_test_dll_2.cc", |
| 204 ] | 211 ] |
| 205 ldflags = [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_dll_2.def", | 212 ldflags = [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_dll_2.def", |
| 206 root_build_dir) ] | 213 root_build_dir) ] |
| 214 deps = [ |
| 215 "//build/config/sanitizers:deps", |
| 216 ] |
| 207 } | 217 } |
| 208 | 218 |
| 209 shared_library("blacklist_test_dll_3") { | 219 shared_library("blacklist_test_dll_3") { |
| 210 sources = [ | 220 sources = [ |
| 211 "blacklist/test/blacklist_test_dll_3.cc", | 221 "blacklist/test/blacklist_test_dll_3.cc", |
| 212 ] | 222 ] |
| 223 deps = [ |
| 224 "//build/config/sanitizers:deps", |
| 225 ] |
| 213 } | 226 } |
| OLD | NEW |