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

Side by Side Diff: jingle/jingle.gyp

Issue 10829424: Create stub jingle library for iOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, # variables 8 }, # variables
9 'targets': [ 9 'conditions': [
10 # A library of various utils for integration with libjingle. 10 ['OS != "ios"', {
11 { 11 'targets': [
12 'target_name': 'jingle_glue', 12 # A library of various utils for integration with libjingle.
13 'type': 'static_library', 13 {
14 'sources': [ 14 'target_name': 'jingle_glue',
15 'glue/channel_socket_adapter.cc', 15 'type': 'static_library',
16 'glue/channel_socket_adapter.h', 16 'sources': [
17 'glue/chrome_async_socket.cc', 17 'glue/channel_socket_adapter.cc',
18 'glue/chrome_async_socket.h', 18 'glue/channel_socket_adapter.h',
19 'glue/fake_ssl_client_socket.cc', 19 'glue/chrome_async_socket.cc',
20 'glue/fake_ssl_client_socket.h', 20 'glue/chrome_async_socket.h',
21 'glue/proxy_resolving_client_socket.cc', 21 'glue/fake_ssl_client_socket.cc',
22 'glue/proxy_resolving_client_socket.h', 22 'glue/fake_ssl_client_socket.h',
23 'glue/pseudotcp_adapter.cc', 23 'glue/proxy_resolving_client_socket.cc',
24 'glue/pseudotcp_adapter.h', 24 'glue/proxy_resolving_client_socket.h',
25 'glue/resolving_client_socket_factory.h', 25 'glue/pseudotcp_adapter.cc',
26 'glue/task_pump.cc', 26 'glue/pseudotcp_adapter.h',
27 'glue/task_pump.h', 27 'glue/resolving_client_socket_factory.h',
28 'glue/thread_wrapper.cc', 28 'glue/task_pump.cc',
29 'glue/thread_wrapper.h', 29 'glue/task_pump.h',
30 'glue/utils.cc', 30 'glue/thread_wrapper.cc',
31 'glue/utils.h', 31 'glue/thread_wrapper.h',
32 'glue/xmpp_client_socket_factory.cc', 32 'glue/utils.cc',
33 'glue/xmpp_client_socket_factory.h', 33 'glue/utils.h',
34 'glue/xmpp_client_socket_factory.cc',
35 'glue/xmpp_client_socket_factory.h',
36 ],
37 'dependencies': [
38 '../base/base.gyp:base',
39 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
40 '../net/net.gyp:net',
41 '../third_party/libjingle/libjingle.gyp:libjingle',
42 '../third_party/libjingle/libjingle.gyp:libjingle_p2p',
43 ],
44 'export_dependent_settings': [
45 '../third_party/libjingle/libjingle.gyp:libjingle',
46 '../third_party/libjingle/libjingle.gyp:libjingle_p2p',
47 ],
48 },
49 # A library for sending and receiving peer-issued notifications.
50 #
51 # TODO(akalin): Separate out the XMPP stuff from this library into
52 # its own library.
53 {
54 'target_name': 'notifier',
55 'type': 'static_library',
56 'sources': [
57 'notifier/base/const_communicator.h',
58 'notifier/base/gaia_token_pre_xmpp_auth.cc',
59 'notifier/base/gaia_token_pre_xmpp_auth.h',
60 'notifier/base/notification_method.h',
61 'notifier/base/notification_method.cc',
62 'notifier/base/notifier_options.cc',
63 'notifier/base/notifier_options.h',
64 'notifier/base/notifier_options_util.cc',
65 'notifier/base/notifier_options_util.h',
66 'notifier/base/server_information.cc',
67 'notifier/base/server_information.h',
68 'notifier/base/weak_xmpp_client.cc',
69 'notifier/base/weak_xmpp_client.h',
70 'notifier/base/xmpp_connection.cc',
71 'notifier/base/xmpp_connection.h',
72 'notifier/communicator/connection_settings.cc',
73 'notifier/communicator/connection_settings.h',
74 'notifier/communicator/login.cc',
75 'notifier/communicator/login.h',
76 'notifier/communicator/login_settings.cc',
77 'notifier/communicator/login_settings.h',
78 'notifier/communicator/single_login_attempt.cc',
79 'notifier/communicator/single_login_attempt.h',
80 'notifier/listener/non_blocking_push_client.cc',
81 'notifier/listener/non_blocking_push_client.h',
82 'notifier/listener/notification_constants.cc',
83 'notifier/listener/notification_constants.h',
84 'notifier/listener/notification_defines.cc',
85 'notifier/listener/notification_defines.h',
86 'notifier/listener/push_client_observer.cc',
87 'notifier/listener/push_client_observer.h',
88 'notifier/listener/push_client.cc',
89 'notifier/listener/push_client.h',
90 'notifier/listener/push_notifications_listen_task.cc',
91 'notifier/listener/push_notifications_listen_task.h',
92 'notifier/listener/push_notifications_send_update_task.cc',
93 'notifier/listener/push_notifications_send_update_task.h',
94 'notifier/listener/push_notifications_subscribe_task.cc',
95 'notifier/listener/push_notifications_subscribe_task.h',
96 'notifier/listener/xml_element_util.cc',
97 'notifier/listener/xml_element_util.h',
98 'notifier/listener/xmpp_push_client.cc',
99 'notifier/listener/xmpp_push_client.h',
100 ],
101 'defines' : [
102 '_CRT_SECURE_NO_WARNINGS',
103 '_USE_32BIT_TIME_T',
104 ],
105 'dependencies': [
106 '../base/base.gyp:base',
107 '../build/temp_gyp/googleurl.gyp:googleurl',
108 '../net/net.gyp:net',
109 '../third_party/expat/expat.gyp:expat',
110 '../third_party/libjingle/libjingle.gyp:libjingle',
111 ],
112 'export_dependent_settings': [
113 '../third_party/libjingle/libjingle.gyp:libjingle',
114 ],
115 'conditions': [
116 ['toolkit_uses_gtk == 1', {
117 'dependencies': [
118 '../build/linux/system.gyp:gtk'
119 ],
120 }],
121 ],
122 },
123 {
124 'target_name': 'notifier_test_util',
125 'type': 'static_library',
126 'sources': [
127 'notifier/base/fake_base_task.cc',
128 'notifier/base/fake_base_task.h',
129 'notifier/listener/fake_push_client.cc',
130 'notifier/listener/fake_push_client.h',
131 'notifier/listener/fake_push_client_observer.cc',
132 'notifier/listener/fake_push_client_observer.h',
133 ],
134 'dependencies': [
135 'notifier',
136 '../base/base.gyp:base',
137 '../testing/gmock.gyp:gmock',
138 ],
139 },
140 {
141 'target_name': 'jingle_glue_test_util',
142 'type': 'static_library',
143 'sources': [
144 'glue/fake_network_manager.cc',
145 'glue/fake_network_manager.h',
146 'glue/fake_socket_factory.cc',
147 'glue/fake_socket_factory.h',
148 ],
149 'dependencies': [
150 'jingle_glue',
151 '../base/base.gyp:base',
152 ],
153 },
154 {
155 'target_name': 'jingle_unittests',
156 'type': 'executable',
157 'sources': [
158 'glue/channel_socket_adapter_unittest.cc',
159 'glue/chrome_async_socket_unittest.cc',
160 'glue/fake_ssl_client_socket_unittest.cc',
161 'glue/jingle_glue_mock_objects.cc',
162 'glue/jingle_glue_mock_objects.h',
163 'glue/logging_unittest.cc',
164 'glue/mock_task.cc',
165 'glue/mock_task.h',
166 'glue/proxy_resolving_client_socket_unittest.cc',
167 'glue/pseudotcp_adapter_unittest.cc',
168 'glue/task_pump_unittest.cc',
169 'glue/thread_wrapper_unittest.cc',
170 'notifier/base/weak_xmpp_client_unittest.cc',
171 'notifier/base/xmpp_connection_unittest.cc',
172 'notifier/communicator/connection_settings_unittest.cc',
173 'notifier/communicator/login_settings_unittest.cc',
174 'notifier/communicator/single_login_attempt_unittest.cc',
175 'notifier/listener/non_blocking_push_client_unittest.cc',
176 'notifier/listener/notification_defines_unittest.cc',
177 'notifier/listener/push_client_unittest.cc',
178 'notifier/listener/push_notifications_send_update_task_unittest.cc',
179 'notifier/listener/push_notifications_subscribe_task_unittest.cc',
180 'notifier/listener/xml_element_util_unittest.cc',
181 'notifier/listener/xmpp_push_client_unittest.cc',
182 'run_all_unittests.cc',
183 ],
184 'conditions': [
185 ['OS=="android"', {
186 'sources!': [
187 # TODO(jrg):
188 # EXPECT_DEBUG_DEATH() uses features not enabled.
189 # Should we -std=c++0x or -std=gnu++0x?
190 'glue/chrome_async_socket_unittest.cc',
191 'notifier/base/xmpp_connection_unittest.cc',
192 ],
193 }]],
194 'include_dirs': [
195 '..',
196 ],
197 'dependencies': [
198 'jingle_glue',
199 'jingle_glue_test_util',
200 'notifier',
201 'notifier_test_util',
202 '../base/base.gyp:base',
203 '../base/base.gyp:test_support_base',
204 '../net/net.gyp:net',
205 '../net/net.gyp:net_test_support',
206 '../testing/gmock.gyp:gmock',
207 '../testing/gtest.gyp:gtest',
208 '../third_party/libjingle/libjingle.gyp:libjingle',
209 ],
210 },
34 ], 211 ],
35 'dependencies': [ 212 }, { # OS == "ios"
36 '../base/base.gyp:base', 213 'targets': [
37 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 214 # Stub targets as iOS doesn't use libjingle.
38 '../net/net.gyp:net', 215 {
akalin 2012/08/20 18:51:14 do you need to stub out jingle_glue? All its depe
qsr 2012/08/21 08:21:17 jingle_glue is referenced in sync.gyp, so I need i
akalin 2012/08/22 19:46:26 ah, you're right, my mistake.
39 '../third_party/libjingle/libjingle.gyp:libjingle', 216 'target_name': 'jingle_glue',
40 '../third_party/libjingle/libjingle.gyp:libjingle_p2p', 217 'type': 'none',
218 },
219 {
220 'target_name': 'notifier',
akalin 2012/08/20 18:51:14 can you do the os conditions inside the notifier t
qsr 2012/08/21 08:21:17 I could, but I need the other targets too, as they
akalin 2012/08/22 19:46:26 Per your reply to my other comments, I think this
221 'type': 'static_library',
222 'sources': [
223 'notifier/base/notification_method.h',
224 'notifier/base/notification_method.cc',
225 'notifier/base/notifier_options_ios.cc',
226 'notifier/base/notifier_options.h',
227 ],
228 'dependencies': [
229 '../base/base.gyp:base',
230 '../net/net.gyp:net',
231 ],
232 },
233 {
234 'target_name': 'notifier_test_util',
akalin 2012/08/20 18:51:14 i'm curious how this works. sync_notifier_tests d
qsr 2012/08/21 08:21:17 I don't understand the question. sync_notifier_tes
akalin 2012/08/22 19:46:26 I guess gyp would complain if the target isn't the
235 'type': 'none',
236 },
41 ], 237 ],
42 'export_dependent_settings': [ 238 }],
43 '../third_party/libjingle/libjingle.gyp:libjingle',
44 '../third_party/libjingle/libjingle.gyp:libjingle_p2p',
45 ],
46 },
47 # A library for sending and receiving peer-issued notifications.
48 #
49 # TODO(akalin): Separate out the XMPP stuff from this library into
50 # its own library.
51 {
52 'target_name': 'notifier',
53 'type': 'static_library',
54 'sources': [
55 'notifier/base/const_communicator.h',
56 'notifier/base/gaia_token_pre_xmpp_auth.cc',
57 'notifier/base/gaia_token_pre_xmpp_auth.h',
58 'notifier/base/notification_method.h',
59 'notifier/base/notification_method.cc',
60 'notifier/base/notifier_options.cc',
61 'notifier/base/notifier_options.h',
62 'notifier/base/notifier_options_util.cc',
63 'notifier/base/notifier_options_util.h',
64 'notifier/base/server_information.cc',
65 'notifier/base/server_information.h',
66 'notifier/base/weak_xmpp_client.cc',
67 'notifier/base/weak_xmpp_client.h',
68 'notifier/base/xmpp_connection.cc',
69 'notifier/base/xmpp_connection.h',
70 'notifier/communicator/connection_settings.cc',
71 'notifier/communicator/connection_settings.h',
72 'notifier/communicator/login.cc',
73 'notifier/communicator/login.h',
74 'notifier/communicator/login_settings.cc',
75 'notifier/communicator/login_settings.h',
76 'notifier/communicator/single_login_attempt.cc',
77 'notifier/communicator/single_login_attempt.h',
78 'notifier/listener/non_blocking_push_client.cc',
79 'notifier/listener/non_blocking_push_client.h',
80 'notifier/listener/notification_constants.cc',
81 'notifier/listener/notification_constants.h',
82 'notifier/listener/notification_defines.cc',
83 'notifier/listener/notification_defines.h',
84 'notifier/listener/push_client_observer.cc',
85 'notifier/listener/push_client_observer.h',
86 'notifier/listener/push_client.cc',
87 'notifier/listener/push_client.h',
88 'notifier/listener/push_notifications_listen_task.cc',
89 'notifier/listener/push_notifications_listen_task.h',
90 'notifier/listener/push_notifications_send_update_task.cc',
91 'notifier/listener/push_notifications_send_update_task.h',
92 'notifier/listener/push_notifications_subscribe_task.cc',
93 'notifier/listener/push_notifications_subscribe_task.h',
94 'notifier/listener/xml_element_util.cc',
95 'notifier/listener/xml_element_util.h',
96 'notifier/listener/xmpp_push_client.cc',
97 'notifier/listener/xmpp_push_client.h',
98 ],
99 'defines' : [
100 '_CRT_SECURE_NO_WARNINGS',
101 '_USE_32BIT_TIME_T',
102 ],
103 'dependencies': [
104 '../base/base.gyp:base',
105 '../build/temp_gyp/googleurl.gyp:googleurl',
106 '../net/net.gyp:net',
107 '../third_party/expat/expat.gyp:expat',
108 '../third_party/libjingle/libjingle.gyp:libjingle',
109 ],
110 'export_dependent_settings': [
111 '../third_party/libjingle/libjingle.gyp:libjingle',
112 ],
113 'conditions': [
114 ['toolkit_uses_gtk == 1', {
115 'dependencies': [
116 '../build/linux/system.gyp:gtk'
117 ],
118 }],
119 ],
120 },
121 {
122 'target_name': 'notifier_test_util',
123 'type': 'static_library',
124 'sources': [
125 'notifier/base/fake_base_task.cc',
126 'notifier/base/fake_base_task.h',
127 'notifier/listener/fake_push_client.cc',
128 'notifier/listener/fake_push_client.h',
129 'notifier/listener/fake_push_client_observer.cc',
130 'notifier/listener/fake_push_client_observer.h',
131 ],
132 'dependencies': [
133 'notifier',
134 '../base/base.gyp:base',
135 '../testing/gmock.gyp:gmock',
136 ],
137 },
138 {
139 'target_name': 'jingle_glue_test_util',
140 'type': 'static_library',
141 'sources': [
142 'glue/fake_network_manager.cc',
143 'glue/fake_network_manager.h',
144 'glue/fake_socket_factory.cc',
145 'glue/fake_socket_factory.h',
146 ],
147 'dependencies': [
148 'jingle_glue',
149 '../base/base.gyp:base',
150 ],
151 },
152 {
153 'target_name': 'jingle_unittests',
154 'type': 'executable',
155 'sources': [
156 'glue/channel_socket_adapter_unittest.cc',
157 'glue/chrome_async_socket_unittest.cc',
158 'glue/fake_ssl_client_socket_unittest.cc',
159 'glue/jingle_glue_mock_objects.cc',
160 'glue/jingle_glue_mock_objects.h',
161 'glue/logging_unittest.cc',
162 'glue/mock_task.cc',
163 'glue/mock_task.h',
164 'glue/proxy_resolving_client_socket_unittest.cc',
165 'glue/pseudotcp_adapter_unittest.cc',
166 'glue/task_pump_unittest.cc',
167 'glue/thread_wrapper_unittest.cc',
168 'notifier/base/weak_xmpp_client_unittest.cc',
169 'notifier/base/xmpp_connection_unittest.cc',
170 'notifier/communicator/connection_settings_unittest.cc',
171 'notifier/communicator/login_settings_unittest.cc',
172 'notifier/communicator/single_login_attempt_unittest.cc',
173 'notifier/listener/non_blocking_push_client_unittest.cc',
174 'notifier/listener/notification_defines_unittest.cc',
175 'notifier/listener/push_client_unittest.cc',
176 'notifier/listener/push_notifications_send_update_task_unittest.cc',
177 'notifier/listener/push_notifications_subscribe_task_unittest.cc',
178 'notifier/listener/xml_element_util_unittest.cc',
179 'notifier/listener/xmpp_push_client_unittest.cc',
180 'run_all_unittests.cc',
181 ],
182 'conditions': [
183 ['OS=="android"', {
184 'sources!': [
185 # TODO(jrg):
186 # EXPECT_DEBUG_DEATH() uses features not enabled.
187 # Should we -std=c++0x or -std=gnu++0x?
188 'glue/chrome_async_socket_unittest.cc',
189 'notifier/base/xmpp_connection_unittest.cc',
190 ],
191 }]],
192 'include_dirs': [
193 '..',
194 ],
195 'dependencies': [
196 'jingle_glue',
197 'jingle_glue_test_util',
198 'notifier',
199 'notifier_test_util',
200 '../base/base.gyp:base',
201 '../base/base.gyp:test_support_base',
202 '../net/net.gyp:net',
203 '../net/net.gyp:net_test_support',
204 '../testing/gmock.gyp:gmock',
205 '../testing/gtest.gyp:gtest',
206 '../third_party/libjingle/libjingle.gyp:libjingle',
207 ],
208 },
209 ], 239 ],
210 } 240 }
OLDNEW
« no previous file with comments | « no previous file | jingle/notifier/base/notifier_options_ios.cc » ('j') | jingle/notifier/base/notifier_options_ios.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698