OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//chrome/version.gni") |
| 6 |
| 7 assert(is_win) |
| 8 |
| 9 # When cross-compiling a 64-bit driver for a 32-bit build, some things get name |
| 10 # mangled with this suffix. |
| 11 if (target_cpu == "x86" && current_cpu == "x64") { |
| 12 arch_suffix = "64" |
| 13 } else { |
| 14 arch_suffix = "" |
| 15 } |
| 16 |
| 17 print("port_monitor $current_toolchain") |
| 18 |
| 19 shared_library("port_monitor") { |
| 20 output_name = "gcp_portmon$arch_suffix" |
| 21 |
| 22 sources = [ |
| 23 "port_monitor.def", |
| 24 "port_monitor_dll.cc", |
| 25 ] |
| 26 |
| 27 deps = [ |
| 28 ":lib", |
| 29 ":resources", |
| 30 "//base", |
| 31 "//chrome:version_header", |
| 32 "//chrome/common:constants", |
| 33 ] |
| 34 |
| 35 libs = [ "userenv.lib" ] |
| 36 } |
| 37 |
| 38 source_set("lib") { |
| 39 sources = [ |
| 40 "port_monitor.cc", |
| 41 "port_monitor.h", |
| 42 ] |
| 43 |
| 44 deps = [ |
| 45 "//base", |
| 46 "//chrome/common:constants", |
| 47 "//chrome/installer/launcher_support", |
| 48 "//cloud_print/virtual_driver/win", |
| 49 ] |
| 50 } |
| 51 |
| 52 process_version("resources") { |
| 53 template_file = chrome_version_rc_template |
| 54 sources = [ |
| 55 "../gcp_portmon${arch_suffix}_dll.ver", |
| 56 ] |
| 57 |
| 58 # Note: target_gen_dir will be different for each toolchain so the output |
| 59 # name doesn't need mangling. |
| 60 output = "$target_gen_dir/gcp_portmon_dll.rc" |
| 61 } |
OLD | NEW |