1 # Copyright (c) 2012 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.
13 ['enable_webrtc==1 or OS!="android"', {
15 # A library of various utils for integration with libjingle.
16 # GN version: //jingle:jingle_glue
18 'target_name': 'jingle_glue',
19 'type': 'static_library',
21 '<@(jingle_glue_sources)',
24 '../base/base.gyp:base',
25 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
27 '../third_party/libjingle/libjingle.gyp:libjingle',
29 'export_dependent_settings': [
30 '../third_party/libjingle/libjingle.gyp:libjingle',
33 # A library for sending and receiving peer-issued notifications.
35 # TODO(akalin): Separate out the XMPP stuff from this library into
38 # GN version: //jingle:notifier
40 'target_name': 'notifier',
41 'type': 'static_library',
43 'notifier/base/const_communicator.h',
44 'notifier/base/gaia_constants.cc',
45 'notifier/base/gaia_constants.h',
46 'notifier/base/gaia_token_pre_xmpp_auth.cc',
47 'notifier/base/gaia_token_pre_xmpp_auth.h',
48 'notifier/base/notification_method.h',
49 'notifier/base/notification_method.cc',
50 'notifier/base/notifier_options.cc',
51 'notifier/base/notifier_options.h',
52 'notifier/base/notifier_options_util.cc',
53 'notifier/base/notifier_options_util.h',
54 'notifier/base/server_information.cc',
55 'notifier/base/server_information.h',
56 'notifier/base/weak_xmpp_client.cc',
57 'notifier/base/weak_xmpp_client.h',
58 'notifier/base/xmpp_connection.cc',
59 'notifier/base/xmpp_connection.h',
60 'notifier/communicator/connection_settings.cc',
61 'notifier/communicator/connection_settings.h',
62 'notifier/communicator/login.cc',
63 'notifier/communicator/login.h',
64 'notifier/communicator/login_settings.cc',
65 'notifier/communicator/login_settings.h',
66 'notifier/communicator/single_login_attempt.cc',
67 'notifier/communicator/single_login_attempt.h',
68 'notifier/listener/non_blocking_push_client.cc',
69 'notifier/listener/non_blocking_push_client.h',
70 'notifier/listener/notification_constants.cc',
71 'notifier/listener/notification_constants.h',
72 'notifier/listener/notification_defines.cc',
73 'notifier/listener/notification_defines.h',
74 'notifier/listener/push_client_observer.cc',
75 'notifier/listener/push_client_observer.h',
76 'notifier/listener/push_client.cc',
77 'notifier/listener/push_client.h',
78 'notifier/listener/push_notifications_listen_task.cc',
79 'notifier/listener/push_notifications_listen_task.h',
80 'notifier/listener/push_notifications_send_update_task.cc',
81 'notifier/listener/push_notifications_send_update_task.h',
82 'notifier/listener/push_notifications_subscribe_task.cc',
83 'notifier/listener/push_notifications_subscribe_task.h',
84 'notifier/listener/send_ping_task.cc',
85 'notifier/listener/send_ping_task.h',
86 'notifier/listener/xml_element_util.cc',
87 'notifier/listener/xml_element_util.h',
88 'notifier/listener/xmpp_push_client.cc',
89 'notifier/listener/xmpp_push_client.h',
92 '_CRT_SECURE_NO_WARNINGS',
95 '../base/base.gyp:base',
97 '../third_party/expat/expat.gyp:expat',
98 '../third_party/libjingle/libjingle.gyp:libjingle',
99 '../url/url.gyp:url_lib',
102 'export_dependent_settings': [
103 '../third_party/libjingle/libjingle.gyp:libjingle',
106 # GN version: //jingle:notifier_test_util
108 'target_name': 'notifier_test_util',
109 'type': 'static_library',
111 'notifier/base/fake_base_task.cc',
112 'notifier/base/fake_base_task.h',
113 'notifier/listener/fake_push_client.cc',
114 'notifier/listener/fake_push_client.h',
115 'notifier/listener/fake_push_client_observer.cc',
116 'notifier/listener/fake_push_client_observer.h',
120 '../base/base.gyp:base',
121 '../testing/gmock.gyp:gmock',
124 # GN version: //jingle:jingle_unittests
126 'target_name': 'jingle_unittests',
127 'type': 'executable',
129 'glue/chrome_async_socket_unittest.cc',
130 'glue/fake_ssl_client_socket_unittest.cc',
131 'glue/jingle_glue_mock_objects.cc',
132 'glue/jingle_glue_mock_objects.h',
133 'glue/logging_unittest.cc',
136 'glue/proxy_resolving_client_socket_unittest.cc',
137 'glue/task_pump_unittest.cc',
138 'glue/thread_wrapper_unittest.cc',
139 'notifier/base/weak_xmpp_client_unittest.cc',
140 'notifier/base/xmpp_connection_unittest.cc',
141 'notifier/communicator/connection_settings_unittest.cc',
142 'notifier/communicator/login_settings_unittest.cc',
143 'notifier/communicator/single_login_attempt_unittest.cc',
144 'notifier/listener/non_blocking_push_client_unittest.cc',
145 'notifier/listener/notification_defines_unittest.cc',
146 'notifier/listener/push_client_unittest.cc',
147 'notifier/listener/push_notifications_send_update_task_unittest.cc',
148 'notifier/listener/push_notifications_subscribe_task_unittest.cc',
149 'notifier/listener/send_ping_task_unittest.cc',
150 'notifier/listener/xml_element_util_unittest.cc',
151 'notifier/listener/xmpp_push_client_unittest.cc',
157 # EXPECT_DEBUG_DEATH() uses features not enabled.
158 # Should we -std=c++0x or -std=gnu++0x?
159 'glue/chrome_async_socket_unittest.cc',
160 'notifier/base/xmpp_connection_unittest.cc',
169 'notifier_test_util',
170 '../base/base.gyp:base',
171 '../base/base.gyp:run_all_unittests',
172 '../base/base.gyp:test_support_base',
173 '../net/net.gyp:net',
174 '../net/net.gyp:net_test_support',
175 '../testing/gmock.gyp:gmock',
176 '../testing/gtest.gyp:gtest',
177 '../third_party/libjingle/libjingle.gyp:libjingle',
182 ['test_isolation_mode != "noop"', {
185 'target_name': 'jingle_unittests_run',
191 '../build/isolate.gypi',
194 'jingle_unittests.isolate',
200 }, { # enable_webrtc!=1 and OS=="android"
202 # Stub targets as Android doesn't use libjingle when webrtc is disabled.
204 'target_name': 'jingle_glue',
208 'target_name': 'jingle_glue_test_util',
211 # GN version: //jingle:notifier
213 'target_name': 'notifier',
214 'type': 'static_library',
216 'notifier/base/gaia_constants.cc',
217 'notifier/base/gaia_constants.h',
218 'notifier/base/notification_method.h',
219 'notifier/base/notification_method.cc',
220 'notifier/base/notifier_options.cc',
221 'notifier/base/notifier_options.h',
224 '../base/base.gyp:base',
225 '../net/net.gyp:net',
229 'target_name': 'notifier_test_util',