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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: cloud_print/virtual_driver/win/port_monitor/BUILD.gn
diff --git a/cloud_print/virtual_driver/win/port_monitor/BUILD.gn b/cloud_print/virtual_driver/win/port_monitor/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..a9e5b3598b5e0539478cda153d1d8f363f6a4383
--- /dev/null
+++ b/cloud_print/virtual_driver/win/port_monitor/BUILD.gn
@@ -0,0 +1,61 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//chrome/version.gni")
+
+assert(is_win)
+
+# When cross-compiling a 64-bit driver for a 32-bit build, some things get name
+# mangled with this suffix.
+if (target_cpu == "x86" && current_cpu == "x64") {
+ arch_suffix = "64"
+} else {
+ arch_suffix = ""
+}
+
+print("port_monitor $current_toolchain")
+
+shared_library("port_monitor") {
+ output_name = "gcp_portmon$arch_suffix"
+
+ sources = [
+ "port_monitor.def",
+ "port_monitor_dll.cc",
+ ]
+
+ deps = [
+ ":lib",
+ ":resources",
+ "//base",
+ "//chrome:version_header",
+ "//chrome/common:constants",
+ ]
+
+ libs = [ "userenv.lib" ]
+}
+
+source_set("lib") {
+ sources = [
+ "port_monitor.cc",
+ "port_monitor.h",
+ ]
+
+ deps = [
+ "//base",
+ "//chrome/common:constants",
+ "//chrome/installer/launcher_support",
+ "//cloud_print/virtual_driver/win",
+ ]
+}
+
+process_version("resources") {
+ template_file = chrome_version_rc_template
+ sources = [
+ "../gcp_portmon${arch_suffix}_dll.ver",
+ ]
+
+ # Note: target_gen_dir will be different for each toolchain so the output
+ # name doesn't need mangling.
+ output = "$target_gen_dir/gcp_portmon_dll.rc"
+}
« 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