OLD | NEW |
| (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 { | |
6 'variables': { | |
7 'webrtc_base': "../webrtc/base", | |
8 'webrtc_xmllite': "../webrtc/libjingle/xmllite", | |
9 'webrtc_p2p': "../webrtc/p2p", | |
10 'webrtc_system_wrappers': "../webrtc/system_wrappers", | |
11 }, | |
12 'includes': [ | |
13 '../../native_client/build/untrusted.gypi', | |
14 ], | |
15 'targets': [ | |
16 { | |
17 'target_name': 'libjingle_nacl', | |
18 'type': 'none', | |
19 'variables': { | |
20 'nlib_target': 'libjingle_nacl.a', | |
21 'nacl_untrusted_build': 1, | |
22 'build_glibc': 0, | |
23 'build_newlib': 0, | |
24 'build_pnacl_newlib': 1, | |
25 'use_openssl': 1, | |
26 }, | |
27 'dependencies': [ | |
28 '<(DEPTH)/native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untr
usted', | |
29 '<(DEPTH)/third_party/expat/expat_nacl.gyp:expat_nacl', | |
30 '<(DEPTH)/third_party/boringssl/boringssl_nacl.gyp:boringssl_nacl', | |
31 ], | |
32 'defines': [ | |
33 'EXPAT_RELATIVE_PATH', | |
34 'FEATURE_ENABLE_SSL', | |
35 'GTEST_RELATIVE_PATH', | |
36 'HAVE_OPENSSL_SSL_H', | |
37 'NO_MAIN_THREAD_WRAPPING', | |
38 'NO_SOUND_SYSTEM', | |
39 'WEBRTC_POSIX', | |
40 'SRTP_RELATIVE_PATH', | |
41 'SSL_USE_OPENSSL', | |
42 'USE_WEBRTC_DEV_BRANCH', | |
43 'timezone=_timezone', | |
44 ], | |
45 'include_dirs': [ | |
46 '../', | |
47 ], | |
48 'includes': ['libjingle_common.gypi', ], | |
49 # TODO(sergeyu): Depend on webrtc/base.gyp:rtc_base_approved? | |
50 'sources': [ | |
51 '<(webrtc_base)/asyncfile.cc', | |
52 '<(webrtc_base)/asyncfile.h', | |
53 '<(webrtc_base)/asyncinvoker.cc', | |
54 '<(webrtc_base)/asyncinvoker.h', | |
55 '<(webrtc_base)/asyncinvoker-inl.h', | |
56 '<(webrtc_base)/asyncpacketsocket.cc', | |
57 '<(webrtc_base)/asyncpacketsocket.h', | |
58 '<(webrtc_base)/asyncresolverinterface.cc', | |
59 '<(webrtc_base)/asyncresolverinterface.h', | |
60 '<(webrtc_base)/asyncsocket.cc', | |
61 '<(webrtc_base)/asyncsocket.h', | |
62 '<(webrtc_base)/asynctcpsocket.cc', | |
63 '<(webrtc_base)/asynctcpsocket.h', | |
64 '<(webrtc_base)/asyncudpsocket.cc', | |
65 '<(webrtc_base)/asyncudpsocket.h', | |
66 '<(webrtc_base)/autodetectproxy.cc', | |
67 '<(webrtc_base)/autodetectproxy.h', | |
68 '<(webrtc_base)/base64.cc', | |
69 '<(webrtc_base)/base64.h', | |
70 '<(webrtc_base)/buffer.cc', | |
71 '<(webrtc_base)/buffer.h', | |
72 '<(webrtc_base)/copyonwritebuffer.cc', | |
73 '<(webrtc_base)/copyonwritebuffer.h', | |
74 '<(webrtc_base)/bytebuffer.cc', | |
75 '<(webrtc_base)/bytebuffer.h', | |
76 '<(webrtc_base)/byteorder.h', | |
77 '<(webrtc_base)/checks.cc', | |
78 '<(webrtc_base)/checks.h', | |
79 '<(webrtc_base)/common.cc', | |
80 '<(webrtc_base)/common.h', | |
81 '<(webrtc_base)/crc32.cc', | |
82 '<(webrtc_base)/crc32.h', | |
83 '<(webrtc_base)/criticalsection.cc', | |
84 '<(webrtc_base)/criticalsection.h', | |
85 '<(webrtc_base)/cryptstring.cc', | |
86 '<(webrtc_base)/cryptstring.h', | |
87 '<(webrtc_base)/diskcache.cc', | |
88 '<(webrtc_base)/diskcache.h', | |
89 '<(webrtc_base)/dscp.h', | |
90 '<(webrtc_base)/event.cc', | |
91 '<(webrtc_base)/event.h', | |
92 '<(webrtc_base)/event_tracer.cc', | |
93 '<(webrtc_base)/event_tracer.h', | |
94 '<(webrtc_base)/fileutils.cc', | |
95 '<(webrtc_base)/fileutils.h', | |
96 '<(webrtc_base)/firewallsocketserver.cc', | |
97 '<(webrtc_base)/firewallsocketserver.h', | |
98 '<(webrtc_base)/flags.cc', | |
99 '<(webrtc_base)/flags.h', | |
100 '<(webrtc_base)/helpers.cc', | |
101 '<(webrtc_base)/helpers.h', | |
102 '<(webrtc_base)/httpbase.cc', | |
103 '<(webrtc_base)/httpbase.h', | |
104 '<(webrtc_base)/httpclient.cc', | |
105 '<(webrtc_base)/httpclient.h', | |
106 '<(webrtc_base)/httpcommon-inl.h', | |
107 '<(webrtc_base)/httpcommon.cc', | |
108 '<(webrtc_base)/httpcommon.h', | |
109 '<(webrtc_base)/httprequest.cc', | |
110 '<(webrtc_base)/httprequest.h', | |
111 '<(webrtc_base)/ipaddress.cc', | |
112 '<(webrtc_base)/ipaddress.h', | |
113 '<(webrtc_base)/linked_ptr.h', | |
114 '<(webrtc_base)/location.cc', | |
115 '<(webrtc_base)/location.h', | |
116 '<(webrtc_base)/logging.cc', | |
117 '<(webrtc_base)/logging.h', | |
118 '<(webrtc_base)/maccocoathreadhelper.h', | |
119 '<(webrtc_base)/maccocoathreadhelper.mm', | |
120 '<(webrtc_base)/macconversion.cc', | |
121 '<(webrtc_base)/macconversion.h', | |
122 '<(webrtc_base)/macutils.cc', | |
123 '<(webrtc_base)/macutils.h', | |
124 '<(webrtc_base)/md5.cc', | |
125 '<(webrtc_base)/md5.h', | |
126 '<(webrtc_base)/md5digest.h', | |
127 '<(webrtc_base)/messagedigest.cc', | |
128 '<(webrtc_base)/messagedigest.h', | |
129 '<(webrtc_base)/messagehandler.cc', | |
130 '<(webrtc_base)/messagehandler.h', | |
131 '<(webrtc_base)/messagequeue.cc', | |
132 '<(webrtc_base)/messagequeue.h', | |
133 '<(webrtc_base)/nethelpers.cc', | |
134 '<(webrtc_base)/nethelpers.h', | |
135 '<(webrtc_base)/network.cc', | |
136 '<(webrtc_base)/network.h', | |
137 '<(webrtc_base)/networkmonitor.cc', | |
138 '<(webrtc_base)/networkmonitor.h', | |
139 '<(webrtc_base)/nullsocketserver.cc', | |
140 '<(webrtc_base)/nullsocketserver.h', | |
141 '<(webrtc_base)/openssladapter.cc', | |
142 '<(webrtc_base)/openssldigest.cc', | |
143 '<(webrtc_base)/opensslidentity.cc', | |
144 '<(webrtc_base)/opensslstreamadapter.cc', | |
145 '<(webrtc_base)/pathutils.cc', | |
146 '<(webrtc_base)/pathutils.h', | |
147 '<(webrtc_base)/physicalsocketserver.cc', | |
148 '<(webrtc_base)/physicalsocketserver.h', | |
149 '<(webrtc_base)/platform_thread.cc', | |
150 '<(webrtc_base)/platform_thread.h', | |
151 '<(webrtc_base)/proxydetect.cc', | |
152 '<(webrtc_base)/proxydetect.h', | |
153 '<(webrtc_base)/proxyinfo.cc', | |
154 '<(webrtc_base)/proxyinfo.h', | |
155 '<(webrtc_base)/ratelimiter.cc', | |
156 '<(webrtc_base)/ratelimiter.h', | |
157 '<(webrtc_base)/ratetracker.cc', | |
158 '<(webrtc_base)/ratetracker.h', | |
159 '<(webrtc_base)/scoped_autorelease_pool.h', | |
160 '<(webrtc_base)/scoped_autorelease_pool.mm', | |
161 '<(webrtc_base)/sec_buffer.h', | |
162 '<(webrtc_base)/sha1.cc', | |
163 '<(webrtc_base)/sha1.h', | |
164 '<(webrtc_base)/sha1digest.h', | |
165 '<(webrtc_base)/sharedexclusivelock.cc', | |
166 '<(webrtc_base)/sharedexclusivelock.h', | |
167 '<(webrtc_base)/signalthread.cc', | |
168 '<(webrtc_base)/signalthread.h', | |
169 '<(webrtc_base)/sigslot.cc', | |
170 '<(webrtc_base)/sigslot.h', | |
171 '<(webrtc_base)/sigslotrepeater.h', | |
172 '<(webrtc_base)/socket.h', | |
173 '<(webrtc_base)/socketadapters.cc', | |
174 '<(webrtc_base)/socketadapters.h', | |
175 '<(webrtc_base)/socketaddress.cc', | |
176 '<(webrtc_base)/socketaddress.h', | |
177 '<(webrtc_base)/socketaddresspair.cc', | |
178 '<(webrtc_base)/socketaddresspair.h', | |
179 '<(webrtc_base)/socketfactory.h', | |
180 '<(webrtc_base)/socketpool.cc', | |
181 '<(webrtc_base)/socketpool.h', | |
182 '<(webrtc_base)/socketserver.h', | |
183 '<(webrtc_base)/socketstream.cc', | |
184 '<(webrtc_base)/socketstream.h', | |
185 '<(webrtc_base)/ssladapter.cc', | |
186 '<(webrtc_base)/ssladapter.h', | |
187 '<(webrtc_base)/sslfingerprint.cc', | |
188 '<(webrtc_base)/sslfingerprint.h', | |
189 '<(webrtc_base)/sslidentity.cc', | |
190 '<(webrtc_base)/sslidentity.h', | |
191 '<(webrtc_base)/sslsocketfactory.cc', | |
192 '<(webrtc_base)/sslsocketfactory.h', | |
193 '<(webrtc_base)/sslstreamadapter.cc', | |
194 '<(webrtc_base)/sslstreamadapter.h', | |
195 '<(webrtc_base)/stream.cc', | |
196 '<(webrtc_base)/stream.h', | |
197 '<(webrtc_base)/stringencode.cc', | |
198 '<(webrtc_base)/stringencode.h', | |
199 '<(webrtc_base)/stringutils.cc', | |
200 '<(webrtc_base)/stringutils.h', | |
201 '<(webrtc_base)/task.cc', | |
202 '<(webrtc_base)/task.h', | |
203 '<(webrtc_base)/taskparent.cc', | |
204 '<(webrtc_base)/taskparent.h', | |
205 '<(webrtc_base)/taskrunner.cc', | |
206 '<(webrtc_base)/taskrunner.h', | |
207 '<(webrtc_base)/template_util.h', | |
208 '<(webrtc_base)/thread.cc', | |
209 '<(webrtc_base)/thread.h', | |
210 '<(webrtc_base)/thread_checker.h', | |
211 '<(webrtc_base)/thread_checker_impl.cc', | |
212 '<(webrtc_base)/thread_checker_impl.h', | |
213 '<(webrtc_base)/timeutils.cc', | |
214 '<(webrtc_base)/timeutils.h', | |
215 '<(webrtc_base)/timing.cc', | |
216 '<(webrtc_base)/timing.h', | |
217 '<(webrtc_base)/unixfilesystem.cc', | |
218 '<(webrtc_base)/unixfilesystem.h', | |
219 '<(webrtc_base)/urlencode.cc', | |
220 '<(webrtc_base)/urlencode.h', | |
221 '<(webrtc_base)/win32.cc', | |
222 '<(webrtc_base)/win32.h', | |
223 '<(webrtc_base)/win32filesystem.cc', | |
224 '<(webrtc_base)/win32filesystem.h', | |
225 '<(webrtc_base)/win32securityerrors.cc', | |
226 '<(webrtc_base)/win32window.cc', | |
227 '<(webrtc_base)/win32window.h', | |
228 '<(webrtc_base)/winfirewall.cc', | |
229 '<(webrtc_base)/winfirewall.h', | |
230 '<(webrtc_base)/winping.cc', | |
231 '<(webrtc_base)/winping.h', | |
232 '<(webrtc_base)/worker.cc', | |
233 '<(webrtc_base)/worker.h', | |
234 '<(webrtc_xmllite)/qname.cc', | |
235 '<(webrtc_xmllite)/qname.h', | |
236 '<(webrtc_xmllite)/xmlbuilder.cc', | |
237 '<(webrtc_xmllite)/xmlbuilder.h', | |
238 '<(webrtc_xmllite)/xmlconstants.cc', | |
239 '<(webrtc_xmllite)/xmlconstants.h', | |
240 '<(webrtc_xmllite)/xmlelement.cc', | |
241 '<(webrtc_xmllite)/xmlelement.h', | |
242 '<(webrtc_xmllite)/xmlnsstack.cc', | |
243 '<(webrtc_xmllite)/xmlnsstack.h', | |
244 '<(webrtc_xmllite)/xmlparser.cc', | |
245 '<(webrtc_xmllite)/xmlparser.h', | |
246 '<(webrtc_xmllite)/xmlprinter.cc', | |
247 '<(webrtc_xmllite)/xmlprinter.h', | |
248 '<(webrtc_system_wrappers)/include/field_trial_default.h', | |
249 '<(webrtc_system_wrappers)/include/field_trial.h', | |
250 '<(webrtc_system_wrappers)/source/field_trial_default.cc', | |
251 ], | |
252 'sources!': [ | |
253 # For NACL, we have the field_trial_default and don't need the | |
254 # field_trail.cc. | |
255 '../webrtc_overrides/field_trial.cc', | |
256 ], | |
257 'sources/': [ | |
258 ['exclude', '/mac[a-z]+\\.(h|cc)$'], | |
259 ['exclude', '/scoped_autorelease_pool\\.(h|mm)$'], | |
260 ], | |
261 'conditions': [ | |
262 ['OS!="win"', { | |
263 'sources/': [ | |
264 ['exclude', '/win[a-z0-9]+\\.(h|cc)$'], | |
265 ], | |
266 }], | |
267 ], | |
268 'direct_dependent_settings': { | |
269 'include_dirs': [ | |
270 '../../third_party/webrtc_overrides', | |
271 '../../third_party', | |
272 '../../third_party/webrtc', | |
273 ], | |
274 'defines': [ | |
275 'EXPAT_RELATIVE_PATH', | |
276 'FEATURE_ENABLE_SSL', | |
277 'GTEST_RELATIVE_PATH', | |
278 'NO_MAIN_THREAD_WRAPPING', | |
279 'NO_SOUND_SYSTEM', | |
280 'WEBRTC_POSIX', | |
281 'SRTP_RELATIVE_PATH', | |
282 'SSL_USE_OPENSSL', | |
283 'USE_WEBRTC_DEV_BRANCH', | |
284 ], | |
285 }, | |
286 'export_dependent_settings': [ | |
287 '<(DEPTH)/native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untr
usted', | |
288 ], | |
289 }, # end of target 'libjingle_nacl' | |
290 ], | |
291 } | |
OLD | NEW |