| 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("//chrome/version.gni") | 5 import("//chrome/version.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 process_version("chrome_elf_resources") { | 8 process_version("chrome_elf_resources") { |
| 9 source = "//chrome/app/chrome_version.rc.version" | 9 source = "//chrome/app/chrome_version.rc.version" |
| 10 output = "$target_gen_dir/chrome_elf_version.rc" | 10 output = "$target_gen_dir/chrome_elf_version.rc" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 ":breakpad", | 25 ":breakpad", |
| 26 ":lib", | 26 ":lib", |
| 27 ":chrome_elf_resources", | 27 ":chrome_elf_resources", |
| 28 ] | 28 ] |
| 29 configs += [ "//build/config/win:windowed" ] | 29 configs += [ "//build/config/win:windowed" ] |
| 30 configs -= [ "//build/config/win:console" ] | 30 configs -= [ "//build/config/win:console" ] |
| 31 ldflags = [ | 31 ldflags = [ |
| 32 "/NODEFAULTLIB:user32.lib", | 32 "/NODEFAULTLIB:user32.lib", |
| 33 "/DEF:" + rebase_path("chrome_elf.def"), | 33 "/DEF:" + rebase_path("chrome_elf.def"), |
| 34 ] | 34 ] |
| 35 if (cpu_arch == "x86") { | 35 if (current_cpu == "x86") { |
| 36 # Don"t set an x64 base address (to avoid breaking HE-ASLR). | 36 # Don"t set an x64 base address (to avoid breaking HE-ASLR). |
| 37 ldflags += [ "/BASE:0x01c20000" ] | 37 ldflags += [ "/BASE:0x01c20000" ] |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 source_set("lib") { | 41 source_set("lib") { |
| 42 sources = [ | 42 sources = [ |
| 43 "create_file/chrome_create_file.cc", | 43 "create_file/chrome_create_file.cc", |
| 44 "create_file/chrome_create_file.h", | 44 "create_file/chrome_create_file.h", |
| 45 "ntdll_cache.cc", | 45 "ntdll_cache.cc", |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 shared_library("chrome_redirects") { | 89 shared_library("chrome_redirects") { |
| 90 sources = [ | 90 sources = [ |
| 91 "chrome_redirects_main.cc", | 91 "chrome_redirects_main.cc", |
| 92 ] | 92 ] |
| 93 deps = [ | 93 deps = [ |
| 94 ":lib", | 94 ":lib", |
| 95 ] | 95 ] |
| 96 configs += [ "//build/config/win:windowed" ] | 96 configs += [ "//build/config/win:windowed" ] |
| 97 ldflags = [ "/DEF:" + rebase_path("chrome_redirects.def") ] | 97 ldflags = [ "/DEF:" + rebase_path("chrome_redirects.def") ] |
| 98 | 98 |
| 99 if (cpu_arch == "x86") { | 99 if (current_cpu == "x86") { |
| 100 # Don't set an x64 base address (to avoid breaking HE-ASLR). | 100 # Don't set an x64 base address (to avoid breaking HE-ASLR). |
| 101 ldflags += [ "/BASE:0x01c20000" ] | 101 ldflags += [ "/BASE:0x01c20000" ] |
| 102 } | 102 } |
| 103 } | 103 } |
| 104 } | 104 } |
| 105 | 105 |
| 106 source_set("dll_hash") { | 106 source_set("dll_hash") { |
| 107 deps = [ | 107 deps = [ |
| 108 "//base", | 108 "//base", |
| 109 ] | 109 ] |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 ] | 196 ] |
| 197 ldflags = [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_dll_2.def", | 197 ldflags = [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_dll_2.def", |
| 198 root_build_dir) ] | 198 root_build_dir) ] |
| 199 } | 199 } |
| 200 | 200 |
| 201 shared_library("blacklist_test_dll_3") { | 201 shared_library("blacklist_test_dll_3") { |
| 202 sources = [ | 202 sources = [ |
| 203 "blacklist/test/blacklist_test_dll_3.cc", | 203 "blacklist/test/blacklist_test_dll_3.cc", |
| 204 ] | 204 ] |
| 205 } | 205 } |
| OLD | NEW |