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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//build_overrides/v8.gni") | 7 import("//build_overrides/v8.gni") |
8 import("//chrome/version.gni") | 8 import("//chrome/version.gni") |
9 import("//third_party/icu/config.gni") | 9 import("//third_party/icu/config.gni") |
10 import("//ui/base/ui_features.gni") | 10 import("//ui/base/ui_features.gni") |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 ] | 158 ] |
159 } | 159 } |
160 | 160 |
161 executable("mini_installer") { | 161 executable("mini_installer") { |
162 sources = [ | 162 sources = [ |
163 "mini_installer.cc", | 163 "mini_installer.cc", |
164 packed_files_rc_file, | 164 packed_files_rc_file, |
165 ] | 165 ] |
166 | 166 |
167 # This target is special so we manually override most linker flags and | 167 # This target is special so we manually override most linker flags and |
168 # specify our own to keep the size down. | 168 # specify our own to keep the size down. Also make sure that we don't use |
| 169 # WPO as it's not supported by the mini installer. |
169 configs -= [ | 170 configs -= [ |
| 171 "//build/config/compiler:default_optimization", |
170 "//build/config:executable_config", | 172 "//build/config:executable_config", |
171 "//build/config/win:console", | 173 "//build/config/win:console", |
172 ] | 174 ] |
173 configs += [ | 175 configs += [ |
174 ":mini_installer_compiler_flags", | 176 ":mini_installer_compiler_flags", |
| 177 "//build/config/compiler:optimize_no_wpo", |
175 "//build/config/win:sdk_link", | 178 "//build/config/win:sdk_link", |
176 "//build/config/win:windowed", | 179 "//build/config/win:windowed", |
177 ] | 180 ] |
178 | 181 |
179 ldflags = [ | 182 ldflags = [ |
180 "/ENTRY:MainEntryPoint", | 183 "/ENTRY:MainEntryPoint", |
181 "/FIXED:NO", | 184 "/FIXED:NO", |
182 "/ignore:4199", | 185 "/ignore:4199", |
183 "/NXCOMPAT", | 186 "/NXCOMPAT", |
184 ] | 187 ] |
(...skipping 25 matching lines...) Expand all Loading... |
210 args = [ | 213 args = [ |
211 "--out", | 214 "--out", |
212 "$target_name.exe", | 215 "$target_name.exe", |
213 ] | 216 ] |
214 deps = [ | 217 deps = [ |
215 ":mini_installer", | 218 ":mini_installer", |
216 "//chrome/installer/test:alternate_version_generator", | 219 "//chrome/installer/test:alternate_version_generator", |
217 ] | 220 ] |
218 } | 221 } |
219 } | 222 } |
OLD | NEW |