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

Side by Side Diff: google_apis/gcm/BUILD.gn

Issue 394033002: Add gcm, nfc and bluetooth to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « device/nfc/nfc.gyp ('k') | google_apis/gcm/gcm.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 import("//third_party/protobuf/proto_library.gni")
6
7 component("gcm") {
8 sources = [
9 "base/mcs_message.cc",
10 "base/mcs_message.h",
11 "base/mcs_util.cc",
12 "base/mcs_util.h",
13 "base/socket_stream.cc",
14 "base/socket_stream.h",
15 "engine/checkin_request.cc",
16 "engine/checkin_request.h",
17 "engine/connection_factory.cc",
18 "engine/connection_factory.h",
19 "engine/connection_factory_impl.cc",
20 "engine/connection_factory_impl.h",
21 "engine/connection_handler.cc",
22 "engine/connection_handler.h",
23 "engine/connection_handler_impl.cc",
24 "engine/connection_handler_impl.h",
25 "engine/gcm_store.cc",
26 "engine/gcm_store.h",
27 "engine/gcm_store_impl.cc",
28 "engine/gcm_store_impl.h",
29 "engine/gservices_settings.cc",
30 "engine/gservices_settings.h",
31 "engine/heartbeat_manager.cc",
32 "engine/heartbeat_manager.h",
33 "engine/mcs_client.cc",
34 "engine/mcs_client.h",
35 "engine/registration_info.cc",
36 "engine/registration_info.h",
37 "engine/registration_request.cc",
38 "engine/registration_request.h",
39 "engine/unregistration_request.cc",
40 "engine/unregistration_request.h",
41 "monitoring/gcm_stats_recorder.h",
42 ]
43
44 defines = [ "GCM_IMPLEMENTATION" ]
45
46 deps = [
47 ":proto",
48 "//base",
49 "//base/third_party/dynamic_annotations",
50 "//net",
51 "//third_party/leveldatabase",
52 "//url",
53 ]
54
55 forward_dependent_configs_from = [ ":proto" ]
56 }
57
58 proto_library("proto") {
59 visibility = ":*"
60 sources = [
61 "protocol/android_checkin.proto",
62 "protocol/checkin.proto",
63 "protocol/mcs.proto",
64 ]
65 }
66
67 static_library("test_support") {
68 sources = [
69 "base/fake_encryptor.cc",
70 "base/fake_encryptor.h",
71 "engine/fake_connection_factory.cc",
72 "engine/fake_connection_factory.h",
73 "engine/fake_connection_handler.cc",
74 "engine/fake_connection_handler.h",
75 "monitoring/fake_gcm_stats_recorder.cc",
76 "monitoring/fake_gcm_stats_recorder.h",
77 ]
78
79 deps = [
80 ":gcm",
81 "//base",
82 "//testing/gtest",
83 ]
84
85 forward_dependent_configs_from = [ ":gcm" ]
86 }
87
88 # A standalone MCS (mobile connection server) client.
89 executable("mcs_probe") {
90 sources = [
91 "tools/mcs_probe.cc",
92 ]
93
94 deps = [
95 ":gcm",
96 ":test_support",
97 "//base",
98 "//net",
99 "//net:test_support",
100 ]
101 }
102
103 test("gcm_unit_tests") {
104 sources = [
105 "base/mcs_message_unittest.cc",
106 "base/mcs_util_unittest.cc",
107 "base/socket_stream_unittest.cc",
108 "engine/checkin_request_unittest.cc",
109 "engine/connection_factory_impl_unittest.cc",
110 "engine/connection_handler_impl_unittest.cc",
111 "engine/gcm_store_impl_unittest.cc",
112 "engine/gservices_settings_unittest.cc",
113 "engine/heartbeat_manager_unittest.cc",
114 "engine/mcs_client_unittest.cc",
115 "engine/registration_request_unittest.cc",
116 "engine/unregistration_request_unittest.cc",
117 ]
118
119 deps = [
120 ":test_support",
121 "//base",
122 "//base/test:run_all_unittests",
123 "//net",
124 "//net:test_support",
125 "//testing/gtest",
126 ]
127 }
OLDNEW
« no previous file with comments | « device/nfc/nfc.gyp ('k') | google_apis/gcm/gcm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698