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 | 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", |
29 "//chrome/common:constants", | 30 "//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 } |
OLD | NEW |