Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / invalidation / BUILD.gn
blob17df72ec06202cf45a1e06b0444f675ad79c4f74
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("invalidation") {
6   sources = [
7     "ack_handle.cc",
8     "ack_handle.h",
9     "ack_handler.cc",
10     "ack_handler.h",
11     "invalidation.cc",
12     "invalidation.h",
13     "invalidation_handler.cc",
14     "invalidation_handler.h",
15     "invalidation_logger.cc",
16     "invalidation_logger.h",
17     "invalidation_logger_observer.h",
18     "invalidation_prefs.cc",
19     "invalidation_prefs.h",
20     "invalidation_service.h",
21     "invalidation_service_util.cc",
22     "invalidation_service_util.h",
23     "invalidation_state_tracker.cc",
24     "invalidation_state_tracker.h",
25     "invalidation_switches.cc",
26     "invalidation_switches.h",
27     "invalidation_util.cc",
28     "invalidation_util.h",
29     "invalidator.cc",
30     "invalidator.h",
31     "invalidator_registrar.cc",
32     "invalidator_registrar.h",
33     "invalidator_state.cc",
34     "invalidator_state.h",
35     "invalidator_storage.cc",
36     "invalidator_storage.h",
37     "mock_ack_handler.cc",
38     "mock_ack_handler.h",
39     "object_id_invalidation_map.cc",
40     "object_id_invalidation_map.h",
41     "profile_invalidation_provider.cc",
42     "profile_invalidation_provider.h",
43     "single_object_invalidation_set.cc",
44     "single_object_invalidation_set.h",
45     "unacked_invalidation_set.cc",
46     "unacked_invalidation_set.h",
47   ]
48   if (!is_android) {
49     sources += [
50       "gcm_invalidation_bridge.cc",
51       "gcm_invalidation_bridge.h",
52       "gcm_network_channel.cc",
53       "gcm_network_channel.h",
54       "gcm_network_channel_delegate.h",
55       "invalidation_notifier.cc",
56       "invalidation_notifier.h",
57       "non_blocking_invalidator.cc",
58       "non_blocking_invalidator.h",
59       "notifier_reason_util.cc",
60       "notifier_reason_util.h",
61       "p2p_invalidator.cc",
62       "p2p_invalidator.h",
63       "push_client_channel.cc",
64       "push_client_channel.h",
65       "registration_manager.cc",
66       "registration_manager.h",
67       "state_writer.h",
68       "sync_invalidation_listener.cc",
69       "sync_invalidation_listener.h",
70       "sync_system_resources.cc",
71       "sync_system_resources.h",
72       "ticl_invalidation_service.cc",
73       "ticl_invalidation_service.h",
74       "ticl_settings_provider.cc",
75       "ticl_settings_provider.h",
76     ]
77   }
79   deps = [
80     "//base",
81     "//components/gcm_driver",
82     "//components/keyed_service/core",
83     "//components/pref_registry",
84     "//components/signin/core/browser",
85     "//google_apis",
86     "//jingle:notifier",
87     "//third_party/cacheinvalidation",
89     # TODO(sync): Remove this (http://crbug.com/133352);
90     "//third_party/protobuf:protobuf_lite",
91     # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalidation_proto_cpp",
92   ]
95 static_library("test_support") {
96   sources = [
97     "fake_invalidation_handler.cc",
98     "fake_invalidation_handler.h",
99     "fake_invalidation_state_tracker.cc",
100     "fake_invalidation_state_tracker.h",
101     "fake_invalidator.cc",
102     "fake_invalidator.h",
103     "invalidation_service_test_template.cc",
104     "invalidation_service_test_template.h",
105     "invalidation_test_util.cc",
106     "invalidation_test_util.h",
107     "invalidator_test_template.cc",
108     "invalidator_test_template.h",
109     "object_id_invalidation_map_test_util.cc",
110     "object_id_invalidation_map_test_util.h",
111     "unacked_invalidation_set_test_util.cc",
112     "unacked_invalidation_set_test_util.h",
113   ]
114   if (!is_android) {
115     sources += [
116       "p2p_invalidation_service.cc",
117       "p2p_invalidation_service.h",
118     ]
119   }
121   deps = [
122     "//base",
123     "//components/gcm_driver:test_support",
124     "//components/keyed_service/core",
125     "//google_apis",
126     "//jingle:notifier",
127     "//jingle:notifier_test_util",
128     "//net",
129     "//testing/gmock",
130     "//third_party/cacheinvalidation",
132     # TODO(sync): Remove this (http://crbug.com/133352);
133     "//third_party/protobuf:protobuf_lite",
134     # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalidation_proto_cpp",
135   ]