Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / service / BUILD.gn
blobfa56969588bbd2202ec588fcc167536d909be23a
1 # Copyright 2014 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.
5 import("//build/config/features.gni")
7 static_library("service") {
8   sources = [
9     "cloud_print/cdd_conversion_win.cc",
10     "cloud_print/cdd_conversion_win.h",
11     "cloud_print/cloud_print_auth.cc",
12     "cloud_print/cloud_print_auth.h",
13     "cloud_print/cloud_print_connector.cc",
14     "cloud_print/cloud_print_connector.h",
15     "cloud_print/cloud_print_message_handler.cc",
16     "cloud_print/cloud_print_message_handler.h",
17     "cloud_print/cloud_print_proxy.cc",
18     "cloud_print/cloud_print_proxy.h",
19     "cloud_print/cloud_print_proxy_backend.cc",
20     "cloud_print/cloud_print_proxy_backend.h",
21     "cloud_print/cloud_print_service_helpers.cc",
22     "cloud_print/cloud_print_service_helpers.h",
23     "cloud_print/cloud_print_token_store.cc",
24     "cloud_print/cloud_print_token_store.h",
25     "cloud_print/cloud_print_url_fetcher.cc",
26     "cloud_print/cloud_print_url_fetcher.h",
27     "cloud_print/cloud_print_wipeout.cc",
28     "cloud_print/cloud_print_wipeout.h",
29     "cloud_print/connector_settings.cc",
30     "cloud_print/connector_settings.h",
31     "cloud_print/job_status_updater.cc",
32     "cloud_print/job_status_updater.h",
33     "cloud_print/print_system.cc",
34     "cloud_print/print_system.h",
35     "cloud_print/print_system_win.cc",
36     "cloud_print/printer_job_handler.cc",
37     "cloud_print/printer_job_handler.h",
38     "cloud_print/printer_job_queue_handler.cc",
39     "cloud_print/printer_job_queue_handler.h",
40     "net/service_url_request_context_getter.cc",
41     "net/service_url_request_context_getter.h",
42     "service_ipc_server.cc",
43     "service_ipc_server.h",
44     "service_main.cc",
45     "service_process.cc",
46     "service_process.h",
47     "service_process_prefs.cc",
48     "service_process_prefs.h",
49   ]
51   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
53   deps = [
54     "//chrome:strings",
55     "//chrome/common",
56     "//base",
57     "//components/cloud_devices/common",
58     "//google_apis",
59     "//jingle:notifier",
60     "//net",
61     "//printing",
62     "//skia",
63     "//third_party/libjingle",
64   ]
66   if (use_cups) {
67     sources += [ "cloud_print/print_system_cups.cc" ]
68     configs += [ "//printing:cups" ]
69   } else if (is_win) {
70     sources += [
71       "service_utility_process_host.cc",
72       "service_utility_process_host.h",
73     ]
74   } else {
75     sources += [ "cloud_print/print_system_dummy.cc" ]
76   }