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

Unified Diff: cloud_print/service/win/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 side-by-side diff with in-line comments
Download patch
Index: cloud_print/service/win/BUILD.gn
diff --git a/cloud_print/service/win/BUILD.gn b/cloud_print/service/win/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..211ccc33d9557e525f136391d6e73e1ee5e78250
--- /dev/null
+++ b/cloud_print/service/win/BUILD.gn
@@ -0,0 +1,109 @@
+# 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("//build/config/win/manifest.gni")
+import("//chrome/version.gni")
+
+assert(is_win)
+
+executable("cloud_print_service") {
+ sources = [
+ "cloud_print_service.cc",
+ ]
+
+ configs += [
+ "//build/config/compiler:wexit_time_destructors",
+ "//cloud_print/service:internal_config",
+ ]
+
+ deps = [
+ ":exe_manifest",
+ ":exe_version",
+ "//cloud_print/service:lib",
+ "//cloud_print/service:resources",
+ ]
+
+ libs = [ "secur32.lib" ]
+}
+
+windows_manifest("exe_manifest") {
+ sources = [
+ common_controls_manifest,
+ default_compatibility_manifest,
+ require_administrator_manifest,
+ ]
+ type = "exe"
+}
+
+process_version("exe_version") {
+ template_file = chrome_version_rc_template
+ sources = [
+ "cloud_print_service_exe.ver",
+ ]
+ output = "$target_gen_dir/cloud_print_service_exe_version.rc"
+}
+
+executable("cloud_print_service_config") {
+ sources = [
+ "cloud_print_service_config.cc",
+ ]
+
+ configs -= [ "//build/config/win:console" ]
+ configs += [ "//build/config/win:windowed" ]
+
+ deps = [
+ ":config_version",
+ ":exe_manifest",
+ "//cloud_print/common:install_utils",
+ "//cloud_print/service:resources",
+ "//cloud_print/service:lib",
+ ]
+
+ libs = [ "secur32.lib" ]
+
+ # TODO: Remove once cloud_print_service_config.cc no longer depends on
+ # atlapp.h, http://crbug.com/5027
+ if (is_clang) {
+ cflags = [
+ # atlapp.h contains a global "using namespace WTL;".
+ "-Wno-header-hygiene",
+
+ # atlgdi.h does an intentional assignment in an if conditional.
+ "-Wno-parentheses",
+
+ # atlgdi.h fails with -Wreorder enabled.
+ "-Wno-reorder",
+
+ # atlgdi.h doesn"t use braces around subobject initializers.
+ "-Wno-missing-braces",
+ ]
+ }
+}
+
+process_version("config_version") {
+ template_file = chrome_version_rc_template
+ sources = [
+ "cloud_print_service_config_exe.ver",
+ ]
+ output = "$target_gen_dir/cloud_print_service_config_version.rc"
+}
+
+executable("cloud_print_service_setup") {
+ sources = [
+ "installer.cc",
+ "installer.h",
+ ]
+
+ configs -= [ "//build/config/win:console" ]
+ configs += [ "//build/config/win:windowed" ]
+
+ deps = [
+ ":exe_manifest",
+ "//cloud_print/common:install_utils",
+ "//cloud_print/service:resources",
+ "//cloud_print/service:lib",
+ ]
+
+ libs = [ "secur32.lib" ]
+}

Powered by Google App Engine
This is Rietveld 408576698