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

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

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

Powered by Google App Engine
This is Rietveld 408576698