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

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

Issue 1408623002: Add cloud_print to the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes 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
OLDNEW
(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")
Nico 2015/10/15 23:24:28 whoops! (i'll send you a cl)
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 }
OLDNEW
« no previous file with comments | « cloud_print/virtual_driver/win/install/virtual_driver_install.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