Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: chrome/installer/mini_installer/BUILD.gn

Issue 1957523005: clang/win/gn: Actually build 32-bit .obj files in 32-bit builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: different Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/win/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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")
11 11
12 config("mini_installer_compiler_flags") { 12 config("mini_installer_compiler_flags") {
13 cflags = [ 13 # Disable buffer security checking.
14 "/bigobj", 14 cflags = [ "/GS-" ]
15 "/Gy", # Enable function-level linking.
16 "/GS-", # Disable buffer security checking.
17 "/FS", # Preserve previous PDB behavior.
18 ]
19
20 cflags_c = [ "/TC" ]
21 cflags_cc = [ "/TP" ]
22 } 15 }
23 16
24 source_set("lib") { 17 source_set("lib") {
25 sources = [ 18 sources = [
26 "appid.h", 19 "appid.h",
27 "chrome.release", 20 "chrome.release",
28 "chrome_appid.cc", 21 "chrome_appid.cc",
29 "configuration.cc", 22 "configuration.cc",
30 "configuration.h", 23 "configuration.h",
31 "decompress.cc", 24 "decompress.cc",
32 "decompress.h", 25 "decompress.h",
33 "mini_installer.ico", 26 "mini_installer.ico",
34 "mini_installer.rc", 27 "mini_installer.rc",
35 "mini_installer_constants.cc", 28 "mini_installer_constants.cc",
36 "mini_installer_constants.h", 29 "mini_installer_constants.h",
37 "mini_installer_resource.h", 30 "mini_installer_resource.h",
38 "mini_string.cc", 31 "mini_string.cc",
39 "mini_string.h", 32 "mini_string.h",
40 "pe_resource.cc", 33 "pe_resource.cc",
41 "pe_resource.h", 34 "pe_resource.h",
42 "regkey.cc", 35 "regkey.cc",
43 "regkey.h", 36 "regkey.h",
44 ] 37 ]
45 38
46 configs -= [ "//build/config/compiler:compiler" ]
47 configs += [ ":mini_installer_compiler_flags" ] 39 configs += [ ":mini_installer_compiler_flags" ]
48 40
49 deps = [ 41 deps = [
50 #"test_installer_sentinel", TODO(GYP) bug 521052. 42 #"test_installer_sentinel", TODO(GYP) bug 521052.
51 ] 43 ]
52 } 44 }
53 45
54 process_version("version") { 46 process_version("version") {
55 template_file = "mini_installer_exe_version.rc.version" 47 template_file = "mini_installer_exe_version.rc.version"
56 output = "$target_gen_dir/mini_installer_version.rc" 48 output = "$target_gen_dir/mini_installer_version.rc"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 executable("mini_installer") { 163 executable("mini_installer") {
172 sources = [ 164 sources = [
173 "mini_installer.cc", 165 "mini_installer.cc",
174 packed_files_rc_file, 166 packed_files_rc_file,
175 ] 167 ]
176 168
177 # This target is special so we manually override most linker flags and 169 # This target is special so we manually override most linker flags and
178 # specify our own to keep the size down. 170 # specify our own to keep the size down.
179 configs -= [ 171 configs -= [
180 "//build/config:executable_config", 172 "//build/config:executable_config",
181 "//build/config/compiler:compiler",
182 "//build/config/win:console", 173 "//build/config/win:console",
183 ] 174 ]
184 configs += [ 175 configs += [
185 ":mini_installer_compiler_flags", 176 ":mini_installer_compiler_flags",
186 "//build/config/win:sdk_link", 177 "//build/config/win:sdk_link",
187 "//build/config/win:windowed", 178 "//build/config/win:windowed",
188 ] 179 ]
189 180
190 ldflags = [ 181 ldflags = [
191 "/ENTRY:MainEntryPoint", 182 "/ENTRY:MainEntryPoint",
(...skipping 29 matching lines...) Expand all
221 args = [ 212 args = [
222 "--out", 213 "--out",
223 "$target_name.exe", 214 "$target_name.exe",
224 ] 215 ]
225 deps = [ 216 deps = [
226 ":mini_installer", 217 ":mini_installer",
227 "//chrome/installer/test:alternate_version_generator", 218 "//chrome/installer/test:alternate_version_generator",
228 ] 219 ]
229 } 220 }
230 } 221 }
OLDNEW
« no previous file with comments | « build/config/win/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698