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

Unified Diff: cloud_print/virtual_driver/win/install/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/install/BUILD.gn
diff --git a/cloud_print/virtual_driver/win/install/BUILD.gn b/cloud_print/virtual_driver/win/install/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..edcf769d3d692e3e40698697f01c736b3ac1889f
--- /dev/null
+++ b/cloud_print/virtual_driver/win/install/BUILD.gn
@@ -0,0 +1,110 @@
+# 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")
+import("//tools/grit/grit_rule.gni")
+
+assert(is_win)
+
+executable("virtual_driver_setup") {
+ sources = [
+ "setup.cc",
+ ]
+
+ configs -= [ "//build/config/win:console" ]
+ configs += [ "//build/config/win:windowed" ]
+
+ deps = [
+ ":copy_gcp_driver",
+ ":resources",
+ ":setup_version",
+ "//base",
+ "//cloud_print/common:install_utils",
+ "//cloud_print/virtual_driver/win",
+ ]
+
+ libs = [ "setupapi.lib" ]
+ ldflags = [ "/DELAYLOAD:winspool.drv" ]
+}
+
+copy("copy_gcp_driver") {
+ sources = [
+ "../../gcp_driver.gpd",
+ ]
+ outputs = [
+ "$root_build_dir/gcp_driver.gpd",
+ ]
+}
+
+process_version("setup_version") {
+ template_file = chrome_version_rc_template
+ sources = [
+ "virtual_driver_setup_exe.ver",
+ ]
+ output = "$target_gen_dir/virtual_driver_setup.rc"
+}
+
+grit("resources") {
+ visibility = [ ":*" ]
+
+ source = "virtual_driver_setup_resources.grd"
+
+ output_dir = "$root_gen_dir/virtual_driver_setup_resources"
+
+ outputs = [
+ "grit/virtual_driver_setup_resources.h",
+ "virtual_driver_setup_resources_ar.rc",
+ "virtual_driver_setup_resources_bg.rc",
+ "virtual_driver_setup_resources_bn.rc",
+ "virtual_driver_setup_resources_ca.rc",
+ "virtual_driver_setup_resources_cs.rc",
+ "virtual_driver_setup_resources_da.rc",
+ "virtual_driver_setup_resources_de.rc",
+ "virtual_driver_setup_resources_el.rc",
+ "virtual_driver_setup_resources_en.rc",
+ "virtual_driver_setup_resources_en-GB.rc",
+ "virtual_driver_setup_resources_es.rc",
+ "virtual_driver_setup_resources_es-419.rc",
+ "virtual_driver_setup_resources_et.rc",
+ "virtual_driver_setup_resources_fa.rc",
+ "virtual_driver_setup_resources_fi.rc",
+ "virtual_driver_setup_resources_fil.rc",
+ "virtual_driver_setup_resources_fr.rc",
+ "virtual_driver_setup_resources_gu.rc",
+ "virtual_driver_setup_resources_he.rc",
+ "virtual_driver_setup_resources_hi.rc",
+ "virtual_driver_setup_resources_hr.rc",
+ "virtual_driver_setup_resources_hu.rc",
+ "virtual_driver_setup_resources_id.rc",
+ "virtual_driver_setup_resources_it.rc",
+ "virtual_driver_setup_resources_ja.rc",
+ "virtual_driver_setup_resources_kn.rc",
+ "virtual_driver_setup_resources_ko.rc",
+ "virtual_driver_setup_resources_lt.rc",
+ "virtual_driver_setup_resources_lv.rc",
+ "virtual_driver_setup_resources_ml.rc",
+ "virtual_driver_setup_resources_mr.rc",
+ "virtual_driver_setup_resources_ms.rc",
+ "virtual_driver_setup_resources_nl.rc",
+ "virtual_driver_setup_resources_nb.rc",
+ "virtual_driver_setup_resources_pl.rc",
+ "virtual_driver_setup_resources_pt-BR.rc",
+ "virtual_driver_setup_resources_pt-PT.rc",
+ "virtual_driver_setup_resources_ro.rc",
+ "virtual_driver_setup_resources_ru.rc",
+ "virtual_driver_setup_resources_sk.rc",
+ "virtual_driver_setup_resources_sl.rc",
+ "virtual_driver_setup_resources_sr.rc",
+ "virtual_driver_setup_resources_sv.rc",
+ "virtual_driver_setup_resources_sw.rc",
+ "virtual_driver_setup_resources_ta.rc",
+ "virtual_driver_setup_resources_te.rc",
+ "virtual_driver_setup_resources_th.rc",
+ "virtual_driver_setup_resources_tr.rc",
+ "virtual_driver_setup_resources_uk.rc",
+ "virtual_driver_setup_resources_vi.rc",
+ "virtual_driver_setup_resources_zh-CN.rc",
+ "virtual_driver_setup_resources_zh-TW.rc",
+ ]
+}
« no previous file with comments | « cloud_print/virtual_driver/win/BUILD.gn ('k') | cloud_print/virtual_driver/win/install/virtual_driver_install.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698