Use the host instead of the title for streamlined hosted apps.
[chromium-blink-merge.git] / components / gcm_driver / BUILD.gn
blob23421dc6dd55f159fd88c2cc1e0f160acb6c652d
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 static_library("gcm_driver") {
6   sources = [
7     "android/component_jni_registrar.cc",
8     "android/component_jni_registrar.h",
9     "default_gcm_app_handler.cc",
10     "default_gcm_app_handler.h",
11     "gcm_activity.cc",
12     "gcm_activity.h",
13     "gcm_app_handler.cc",
14     "gcm_app_handler.h",
15     "gcm_client.cc",
16     "gcm_client.h",
17     "gcm_client_factory.cc",
18     "gcm_client_factory.h",
19     "gcm_client_impl.cc",
20     "gcm_client_impl.h",
21     "gcm_driver.cc",
22     "gcm_driver.h",
23     "gcm_driver_android.cc",
24     "gcm_driver_android.h",
25     "gcm_driver_desktop.cc",
26     "gcm_driver_desktop.h",
27     "gcm_stats_recorder_impl.cc",
28     "gcm_stats_recorder_impl.h",
29     "system_encryptor.cc",
30     "system_encryptor.h",
31   ]
33   deps = [
34     "//base",
35     "//components/os_crypt",
36     "//google_apis/gcm",
37     "//net",
38   ]
40   if (is_android) {
41     sources -= [
42       "gcm_client_factory.cc",
43       "gcm_client_factory.h",
44       "gcm_client_impl.cc",
45       "gcm_client_impl.h",
46       "gcm_driver_desktop.cc",
47       "gcm_driver_desktop.h",
48       "gcm_stats_recorder_impl.cc",
49       "gcm_stats_recorder_impl.h",
50     ]
51     deps -= [ "//google_apis/gcm" ]
52     deps += [ ":jni_headers" ]
53   }
56 static_library("test_support") {
57   sources = [
58     "fake_gcm_app_handler.cc",
59     "fake_gcm_app_handler.h",
60     "fake_gcm_client.cc",
61     "fake_gcm_client.h",
62     "fake_gcm_client_factory.cc",
63     "fake_gcm_client_factory.h",
64     "fake_gcm_driver.cc",
65     "fake_gcm_driver.h",
66   ]
68   deps = [
69     ":gcm_driver",
70     "//base",
71     "//google_apis/gcm",
72     "//testing/gtest",
73   ]
75   if (is_android) {
76     sources -= [
77       "fake_gcm_client.cc",
78       "fake_gcm_client.h",
79       "fake_gcm_client_factory.cc",
80       "fake_gcm_client_factory.h",
81     ]
82     deps -= [ "//google_apis/gcm" ]
83   }
86 #TODO(GYP) gcm_driver_java gcm_driver_jni_headers