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

Side by Side 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 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("//build/config/win/manifest.gni")
6 import("//chrome/version.gni")
7
8 assert(is_win)
9
10 executable("cloud_print_service") {
11 sources = [
12 "cloud_print_service.cc",
13 ]
14
15 configs += [
16 "//build/config/compiler:wexit_time_destructors",
17 "//cloud_print/service:internal_config",
18 ]
19
20 deps = [
21 ":exe_manifest",
22 ":exe_version",
23 "//cloud_print/service:lib",
24 "//cloud_print/service:resources",
25 ]
26
27 libs = [ "secur32.lib" ]
28 }
29
30 windows_manifest("exe_manifest") {
31 sources = [
32 common_controls_manifest,
33 default_compatibility_manifest,
34 require_administrator_manifest,
35 ]
36 type = "exe"
37 }
38
39 process_version("exe_version") {
40 template_file = chrome_version_rc_template
41 sources = [
42 "cloud_print_service_exe.ver",
43 ]
44 output = "$target_gen_dir/cloud_print_service_exe_version.rc"
45 }
46
47 executable("cloud_print_service_config") {
48 sources = [
49 "cloud_print_service_config.cc",
50 ]
51
52 configs -= [ "//build/config/win:console" ]
53 configs += [ "//build/config/win:windowed" ]
54
55 deps = [
56 ":config_version",
57 ":exe_manifest",
58 "//cloud_print/common:install_utils",
59 "//cloud_print/service:resources",
60 "//cloud_print/service:lib",
61 ]
62
63 libs = [ "secur32.lib" ]
64
65 # TODO: Remove once cloud_print_service_config.cc no longer depends on
66 # atlapp.h, http://crbug.com/5027
67 if (is_clang) {
68 cflags = [
69 # atlapp.h contains a global "using namespace WTL;".
70 "-Wno-header-hygiene",
71
72 # atlgdi.h does an intentional assignment in an if conditional.
73 "-Wno-parentheses",
74
75 # atlgdi.h fails with -Wreorder enabled.
76 "-Wno-reorder",
77
78 # atlgdi.h doesn"t use braces around subobject initializers.
79 "-Wno-missing-braces",
80 ]
81 }
82 }
83
84 process_version("config_version") {
85 template_file = chrome_version_rc_template
86 sources = [
87 "cloud_print_service_config_exe.ver",
88 ]
89 output = "$target_gen_dir/cloud_print_service_config_version.rc"
90 }
91
92 executable("cloud_print_service_setup") {
93 sources = [
94 "installer.cc",
95 "installer.h",
96 ]
97
98 configs -= [ "//build/config/win:console" ]
99 configs += [ "//build/config/win:windowed" ]
100
101 deps = [
102 ":exe_manifest",
103 "//cloud_print/common:install_utils",
104 "//cloud_print/service:resources",
105 "//cloud_print/service:lib",
106 ]
107
108 libs = [ "secur32.lib" ]
109 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698