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

Side by Side Diff: cloud_print/virtual_driver/win/port_monitor/BUILD.gn

Issue 1405633002: Cleanup chrome/version.h handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Building Chrome is hard Created 5 years, 2 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 | « cloud_print/service/service.gyp ('k') | cloud_print/virtual_driver/win/virtual_driver.gypi » ('j') | 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("//chrome/version.gni") 5 import("//chrome/version.gni")
6 6
7 assert(is_win) 7 assert(is_win)
8 8
9 # When cross-compiling a 64-bit driver for a 32-bit build, some things get name 9 # When cross-compiling a 64-bit driver for a 32-bit build, some things get name
10 # mangled with this suffix. 10 # mangled with this suffix.
11 if (target_cpu == "x86" && current_cpu == "x64") { 11 if (target_cpu == "x86" && current_cpu == "x64") {
12 arch_suffix = "64" 12 arch_suffix = "64"
13 } else { 13 } else {
14 arch_suffix = "" 14 arch_suffix = ""
15 } 15 }
16 16
17 shared_library("port_monitor") { 17 shared_library("port_monitor") {
18 output_name = "gcp_portmon$arch_suffix" 18 output_name = "gcp_portmon$arch_suffix"
19 19
20 sources = [ 20 sources = [
21 "port_monitor.def", 21 "port_monitor.def",
22 "port_monitor_dll.cc", 22 "port_monitor_dll.cc",
23 ] 23 ]
24 24
25 deps = [ 25 deps = [
26 ":lib", 26 ":lib",
27 ":resources", 27 ":resources",
28 "//base", 28 "//base",
29 "//chrome:version_header",
30 "//chrome/common:constants", 29 "//chrome/common:constants",
30 "//chrome/common:version_header",
31 ] 31 ]
32 32
33 libs = [ "userenv.lib" ] 33 libs = [ "userenv.lib" ]
34 } 34 }
35 35
36 source_set("lib") { 36 source_set("lib") {
37 sources = [ 37 sources = [
38 "port_monitor.cc", 38 "port_monitor.cc",
39 "port_monitor.h", 39 "port_monitor.h",
40 ] 40 ]
41 41
42 deps = [ 42 deps = [
43 "//base", 43 "//base",
44 "//chrome/common:constants", 44 "//chrome/common:constants",
45 "//chrome/installer/launcher_support", 45 "//chrome/installer/launcher_support",
46 "//cloud_print/virtual_driver/win", 46 "//cloud_print/virtual_driver/win",
47 ] 47 ]
48 } 48 }
49 49
50 process_version("resources") { 50 process_version("resources") {
51 template_file = chrome_version_rc_template 51 template_file = chrome_version_rc_template
52 sources = [ 52 sources = [
53 "../gcp_portmon${arch_suffix}_dll.ver", 53 "../gcp_portmon${arch_suffix}_dll.ver",
54 ] 54 ]
55 55
56 # Note: target_gen_dir will be different for each toolchain so the output 56 # Note: target_gen_dir will be different for each toolchain so the output
57 # name doesn't need mangling. 57 # name doesn't need mangling.
58 output = "$target_gen_dir/gcp_portmon_dll.rc" 58 output = "$target_gen_dir/gcp_portmon_dll.rc"
59 } 59 }
OLDNEW
« no previous file with comments | « cloud_print/service/service.gyp ('k') | cloud_print/virtual_driver/win/virtual_driver.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698