| 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 14 matching lines...) Expand all Loading... |
| 25 shared_library("chrome_elf") { | 25 shared_library("chrome_elf") { |
| 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 ":chrome_elf_resources", | 34 ":chrome_elf_resources", |
| 35 ":common", |
| 35 "//build/config/sanitizers:deps", | 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" ] |
| 46 } | 47 } |
| 47 } | 48 } |
| 48 | 49 |
| 49 source_set("constants") { | 50 source_set("constants") { |
| 50 sources = [ | 51 sources = [ |
| 51 "chrome_elf_constants.cc", | 52 "chrome_elf_constants.cc", |
| 52 "chrome_elf_constants.h", | 53 "chrome_elf_constants.h", |
| 53 ] | 54 ] |
| 54 } | 55 } |
| 55 | 56 |
| 56 source_set("common") { | 57 source_set("common") { |
| 58 public_deps = [ |
| 59 ":constants", |
| 60 ] |
| 57 deps = [ | 61 deps = [ |
| 58 ":constants", | 62 "//base", |
| 63 "//sandbox", |
| 59 ] | 64 ] |
| 60 sources = [ | 65 sources = [ |
| 61 "chrome_elf_util.cc", | 66 "chrome_elf_util.cc", |
| 62 "chrome_elf_util.h", | 67 "chrome_elf_util.h", |
| 63 "thunk_getter.cc", | 68 "thunk_getter.cc", |
| 64 "thunk_getter.h", | 69 "thunk_getter.h", |
| 65 ] | 70 ] |
| 66 } | 71 } |
| 67 | 72 |
| 68 source_set("breakpad") { | 73 source_set("breakpad") { |
| 69 include_dirs = [ "$target_gen_dir" ] | 74 include_dirs = [ "$target_gen_dir" ] |
| 70 sources = [ | 75 sources = [ |
| 71 "breakpad.cc", | 76 "breakpad.cc", |
| 72 "breakpad.h", | 77 "breakpad.h", |
| 73 ] | 78 ] |
| 74 deps = [ | 79 deps = [ |
| 75 ":common", | 80 ":common", |
| 81 "//base", |
| 76 "//breakpad:breakpad_handler", | 82 "//breakpad:breakpad_handler", |
| 77 "//chrome/common:version_header", | 83 "//chrome/common:version_header", |
| 78 ] | 84 ] |
| 79 } | 85 } |
| 80 | 86 |
| 81 source_set("dll_hash") { | 87 source_set("dll_hash") { |
| 82 deps = [ | 88 deps = [ |
| 83 "//base", | 89 "//base", |
| 84 ] | 90 ] |
| 85 sources = [ | 91 sources = [ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 98 ] | 104 ] |
| 99 } | 105 } |
| 100 | 106 |
| 101 static_library("blacklist") { | 107 static_library("blacklist") { |
| 102 sources = [ | 108 sources = [ |
| 103 "blacklist/blacklist.cc", | 109 "blacklist/blacklist.cc", |
| 104 "blacklist/blacklist.h", | 110 "blacklist/blacklist.h", |
| 105 "blacklist/blacklist_interceptions.cc", | 111 "blacklist/blacklist_interceptions.cc", |
| 106 "blacklist/blacklist_interceptions.h", | 112 "blacklist/blacklist_interceptions.h", |
| 107 ] | 113 ] |
| 114 public_deps = [ |
| 115 "//sandbox", |
| 116 ] |
| 108 deps = [ | 117 deps = [ |
| 109 ":breakpad", | 118 ":breakpad", |
| 119 ":common", |
| 110 ":constants", | 120 ":constants", |
| 111 "//base", | 121 "//base", |
| 112 "//sandbox:sandbox", | |
| 113 ] | 122 ] |
| 114 } | 123 } |
| 115 | 124 |
| 116 test("chrome_elf_unittests") { | 125 test("chrome_elf_unittests") { |
| 117 output_name = "chrome_elf_unittests" | 126 output_name = "chrome_elf_unittests" |
| 118 sources = [ | 127 sources = [ |
| 119 "blacklist/test/blacklist_test.cc", | 128 "blacklist/test/blacklist_test.cc", |
| 120 "chrome_elf_util_unittest.cc", | 129 "chrome_elf_util_unittest.cc", |
| 121 "elf_imports_unittest.cc", | 130 "elf_imports_unittest.cc", |
| 122 ] | 131 ] |
| 123 include_dirs = [ "$target_gen_dir" ] | 132 include_dirs = [ "$target_gen_dir" ] |
| 124 deps = [ | 133 deps = [ |
| 125 ":blacklist", | 134 ":blacklist", |
| 126 ":blacklist_test_main_dll", | 135 ":blacklist_test_main_dll", |
| 136 ":common", |
| 127 "//base", | 137 "//base", |
| 128 "//base/test:run_all_unittests", | 138 "//base/test:run_all_unittests", |
| 129 "//base/test:test_support", | 139 "//base/test:test_support", |
| 140 "//chrome/common:version_header", |
| 130 "//sandbox", | 141 "//sandbox", |
| 131 "//testing/gtest", | 142 "//testing/gtest", |
| 132 ] | 143 ] |
| 133 data_deps = [ | 144 data_deps = [ |
| 134 ":blacklist_test_dll_1", | 145 ":blacklist_test_dll_1", |
| 135 ":blacklist_test_dll_2", | 146 ":blacklist_test_dll_2", |
| 136 ":blacklist_test_dll_3", | 147 ":blacklist_test_dll_3", |
| 137 ":chrome_elf", | 148 ":chrome_elf", |
| 138 "//chrome", | 149 "//chrome", |
| 139 ] | 150 ] |
| 140 } | 151 } |
| 141 | 152 |
| 142 shared_library("blacklist_test_main_dll") { | 153 shared_library("blacklist_test_main_dll") { |
| 143 sources = [ | 154 sources = [ |
| 144 "blacklist/test/blacklist_test_main_dll.cc", | 155 "blacklist/test/blacklist_test_main_dll.cc", |
| 145 ] | 156 ] |
| 146 deps = [ | 157 deps = [ |
| 147 ":blacklist", | 158 ":blacklist", |
| 159 ":common", |
| 148 "//base", | 160 "//base", |
| 149 "//build/config/sanitizers:deps", | 161 "//build/config/sanitizers:deps", |
| 150 ] | 162 ] |
| 151 ldflags = | 163 ldflags = |
| 152 [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_main_dll.def", | 164 [ "/DEF:" + rebase_path("blacklist/test/blacklist_test_main_dll.def", |
| 153 root_build_dir) ] | 165 root_build_dir) ] |
| 154 } | 166 } |
| 155 | 167 |
| 156 shared_library("blacklist_test_dll_1") { | 168 shared_library("blacklist_test_dll_1") { |
| 157 sources = [ | 169 sources = [ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 176 } | 188 } |
| 177 | 189 |
| 178 shared_library("blacklist_test_dll_3") { | 190 shared_library("blacklist_test_dll_3") { |
| 179 sources = [ | 191 sources = [ |
| 180 "blacklist/test/blacklist_test_dll_3.cc", | 192 "blacklist/test/blacklist_test_dll_3.cc", |
| 181 ] | 193 ] |
| 182 deps = [ | 194 deps = [ |
| 183 "//build/config/sanitizers:deps", | 195 "//build/config/sanitizers:deps", |
| 184 ] | 196 ] |
| 185 } | 197 } |
| OLD | NEW |