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

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

Powered by Google App Engine
This is Rietveld 408576698