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

Side by Side Diff: cloud_print/service/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
1 # Copyright 2015 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni")
5 import("//tools/grit/grit_rule.gni") 6 import("//tools/grit/grit_rule.gni")
6 7
7 source_set("cloud_print_service_lib") { 8 config("internal_config") {
9 defines = [
10 "SECURITY_WIN32",
11 "STRICT",
12 "_ATL_APARTMENT_THREADED",
13 "_ATL_CSTRING_EXPLICIT_CONSTRUCTORS",
14 "_ATL_NO_COM_SUPPORT",
15 "_ATL_NO_AUTOMATIC_NAMESPACE",
16 "_ATL_NO_EXCEPTIONS",
17 ]
18 }
19
20 if (is_win && is_clang) {
21 # service_controller.h uses DECLARE_REGISTRY_APPID_RESOURCEID, which
22 # in msvs2013 returns string literals via a non-const pointer. So
23 # disable this warning for now.
24 # TODO(thakis): Remove this once we're on 2014,
25 # https://connect.microsoft.com/VisualStudio/feedback/details/806376/atl-hindr ances-to-adopting-new-strictstrings-conformance-option-in-vs2013
26 config("service_warning_config") {
27 cflags = [ "-Wno-writable-strings" ]
28 }
29 }
30
31 source_set("lib") {
8 sources = [ 32 sources = [
9 "//cloud_print/common/win/cloud_print_utils.cc",
10 "//cloud_print/common/win/cloud_print_utils.h",
11 "service_constants.cc", 33 "service_constants.cc",
12 "service_constants.h", 34 "service_constants.h",
13 "service_state.cc", 35 "service_state.cc",
14 "service_state.h", 36 "service_state.h",
15 "service_switches.cc", 37 "service_switches.cc",
16 "service_switches.h", 38 "service_switches.h",
17 "win/chrome_launcher.cc", 39 "win/chrome_launcher.cc",
18 "win/chrome_launcher.h", 40 "win/chrome_launcher.h",
19 "win/local_security_policy.cc", 41 "win/local_security_policy.cc",
20 "win/local_security_policy.h", 42 "win/local_security_policy.h",
21 "win/service_controller.cc", 43 "win/service_controller.cc",
22 "win/service_controller.h", 44 "win/service_controller.h",
23 "win/service_listener.cc", 45 "win/service_listener.cc",
24 "win/service_listener.h", 46 "win/service_listener.h",
25 "win/service_utils.cc", 47 "win/service_utils.cc",
26 "win/service_utils.h", 48 "win/service_utils.h",
27 "win/setup_listener.cc", 49 "win/setup_listener.cc",
28 "win/setup_listener.h", 50 "win/setup_listener.h",
29 ] 51 ]
30 52
53 configs += [
54 ":internal_config",
55 "//build/config/compiler:wexit_time_destructors",
56 ]
57
31 deps = [ 58 deps = [
32 ":service_resources", 59 ":resources",
33 "//base", 60 "//base",
34 "//base:base_static", 61 "//base:base_static",
35 "//base/third_party/dynamic_annotations", 62 "//base/third_party/dynamic_annotations",
36 "//content/public/common", 63 "//chrome/common:constants",
64 "//cloud_print/common",
65 "//components/cloud_devices/common",
66 "//content/public/common:static_switches",
37 "//google_apis", 67 "//google_apis",
38 "//ipc", 68 "//ipc",
39 "//net", 69 "//net",
40 "//url", 70 "//url",
41 ] 71 ]
42 72
73 if (enable_basic_printing || enable_print_preview) {
74 deps += [ "//printing" ]
75 }
76
77 if (is_win) {
78 deps += [
79 "//chrome/common:constants",
80 "//chrome/installer/launcher_support",
81 ]
82 }
83
43 if (is_clang) { 84 if (is_clang) {
44 cflags = [ "-Wno-parentheses" ] 85 cflags = [ "-Wno-parentheses" ]
86 if (is_win) {
87 public_configs = [ ":service_warning_config" ]
88 }
45 } 89 }
46 } 90 }
47 91
48 grit("service_resources") { 92 grit("resources") {
49 source = "win/service_resources.grd" 93 source = "win/service_resources.grd"
50 outputs = [ 94 outputs = [
51 "resources.h", 95 "resources.h",
52 "service_resources_en.rc", 96 "service_resources_en.rc",
53 ] 97 ]
54 } 98 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698