blob: 1536b4f8b96cce5ccab2d6fbbebe61a065974007 [file] [log] [blame]
henrike@webrtc.orgf0488722014-05-13 18:00:26 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9{
10 'includes': [ '../build/common.gypi', ],
11 'conditions': [
12 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
13 'conditions': [
14 ['sysroot!=""', {
15 'variables': {
16 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
17 },
18 }, {
19 'variables': {
20 'pkg-config': 'pkg-config'
21 },
22 }],
23 ],
24 }],
25 ],
26 'targets': [
27 {
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000028 # The subset of rtc_base approved for use outside of libjingle.
29 'target_name': 'rtc_base_approved',
30 'type': 'static_library',
31 'sources': [
Peter Boströmff019b02015-04-30 14:16:07 +020032 'atomicops.h',
Noah Richards915590e2015-04-22 15:43:08 -070033 'basictypes.h',
34 'bitbuffer.cc',
35 'bitbuffer.h',
Karl Wiberg94784372015-04-20 14:03:07 +020036 'buffer.cc',
37 'buffer.h',
Joachim Bauch6f2ef742015-05-21 17:52:01 +020038 'bufferqueue.cc',
39 'bufferqueue.h',
Noah Richards915590e2015-04-22 15:43:08 -070040 'bytebuffer.cc',
41 'bytebuffer.h',
42 'byteorder.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000043 'checks.cc',
44 'checks.h',
Noah Richards915590e2015-04-22 15:43:08 -070045 'constructormagic.h',
Tommi494f2092015-04-27 17:39:23 +020046 'criticalsection.cc',
47 'criticalsection.h',
tommi@webrtc.org4c0fd962015-02-09 10:23:27 +000048 'event.cc',
49 'event.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000050 'event_tracer.cc',
51 'event_tracer.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000052 'exp_filter.cc',
53 'exp_filter.h',
Tommi23edcff2015-05-25 10:45:43 +020054 'logging.cc',
55 'logging.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000056 'md5.cc',
57 'md5.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +000058 'md5digest.cc',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000059 'md5digest.h',
xians@webrtc.orge46bc772014-10-10 08:36:56 +000060 'platform_file.cc',
61 'platform_file.h',
Tommibebc6902015-05-18 09:51:42 +020062 'platform_thread.cc',
63 'platform_thread.h',
Peter Boström2ee24392015-06-22 07:57:16 +020064 'ratetracker.cc',
65 'ratetracker.h',
andrew@webrtc.org0ab42bc2014-12-17 22:56:09 +000066 'safe_conversions.h',
67 'safe_conversions_impl.h',
Tommic844ca42015-08-19 10:51:18 +020068 'scoped_ptr.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000069 'stringencode.cc',
70 'stringencode.h',
71 'stringutils.cc',
72 'stringutils.h',
tommiefefda62015-08-20 05:04:09 -070073 'systeminfo.cc',
74 'systeminfo.h',
kwiberg@webrtc.orgaf9d56f2015-01-13 20:32:04 +000075 'template_util.h',
pbos@webrtc.org38344ed2014-09-24 06:05:00 +000076 'thread_annotations.h',
tommi@webrtc.org04cd4662015-01-26 15:27:29 +000077 'thread_checker.h',
78 'thread_checker_impl.cc',
79 'thread_checker_impl.h',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000080 'timeutils.cc',
81 'timeutils.h',
tommi@webrtc.org7c64ed22015-03-17 14:25:37 +000082 'trace_event.h',
Noah Richards915590e2015-04-22 15:43:08 -070083 ],
84 'conditions': [
85 ['build_with_chromium==1', {
86 'include_dirs': [
henrikg40bf4932015-09-21 03:29:25 -070087 '../overrides',
Noah Richards915590e2015-04-22 15:43:08 -070088 ],
89 'sources!': [
90 'basictypes.h',
91 'constructormagic.h',
Tommi23edcff2015-05-25 10:45:43 +020092 'logging.cc',
93 'logging.h',
Noah Richards915590e2015-04-22 15:43:08 -070094 ],
Noah Richards915590e2015-04-22 15:43:08 -070095 }],
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +000096 ],
97 },
98 {
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +000099 'target_name': 'rtc_base',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000100 'type': 'static_library',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000101 'dependencies': [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +0000102 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.org6ae5a6d2014-09-16 01:03:29 +0000103 'rtc_base_approved',
104 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000105 'defines': [
106 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000107 'LOGGING=1',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000108 ],
109 'sources': [
pkasting@chromium.orge7a4a122015-01-28 21:36:55 +0000110 'arraysize.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000111 'asyncfile.cc',
112 'asyncfile.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000113 'asyncinvoker.cc',
114 'asyncinvoker.h',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000115 'asyncinvoker-inl.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000116 'asyncpacketsocket.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000117 'asyncpacketsocket.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000118 'asyncresolverinterface.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000119 'asyncresolverinterface.h',
120 'asyncsocket.cc',
121 'asyncsocket.h',
122 'asynctcpsocket.cc',
123 'asynctcpsocket.h',
124 'asyncudpsocket.cc',
125 'asyncudpsocket.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000126 'autodetectproxy.cc',
127 'autodetectproxy.h',
128 'bandwidthsmoother.cc',
129 'bandwidthsmoother.h',
130 'base64.cc',
131 'base64.h',
132 'basicdefs.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000133 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000134 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000135 'common.cc',
136 'common.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000137 'crc32.cc',
138 'crc32.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000139 'cryptstring.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000140 'cryptstring.h',
141 'dbus.cc',
142 'dbus.h',
143 'diskcache.cc',
144 'diskcache.h',
145 'diskcache_win32.cc',
146 'diskcache_win32.h',
tkchin93411912015-07-22 12:12:17 -0700147 'filerotatingstream.cc',
148 'filerotatingstream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000149 'fileutils.cc',
150 'fileutils.h',
151 'fileutils_mock.h',
152 'firewallsocketserver.cc',
153 'firewallsocketserver.h',
154 'flags.cc',
155 'flags.h',
pkasting@chromium.org4591fbd2014-11-20 22:28:14 +0000156 'format_macros.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000157 'gunit_prod.h',
158 'helpers.cc',
159 'helpers.h',
160 'httpbase.cc',
161 'httpbase.h',
162 'httpclient.cc',
163 'httpclient.h',
164 'httpcommon-inl.h',
165 'httpcommon.cc',
166 'httpcommon.h',
167 'httprequest.cc',
168 'httprequest.h',
169 'httpserver.cc',
170 'httpserver.h',
171 'ifaddrs-android.cc',
172 'ifaddrs-android.h',
173 'iosfilesystem.mm',
174 'ipaddress.cc',
175 'ipaddress.h',
176 'json.cc',
177 'json.h',
178 'latebindingsymboltable.cc',
179 'latebindingsymboltable.h',
180 'libdbusglibsymboltable.cc',
181 'libdbusglibsymboltable.h',
182 'linux.cc',
183 'linux.h',
184 'linuxfdwalk.c',
kjellander@webrtc.org2bae3212014-06-16 07:11:19 +0000185 'linuxfdwalk.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000186 'linked_ptr.h',
tkchin93411912015-07-22 12:12:17 -0700187 'logsinks.cc',
188 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000189 'macasyncsocket.cc',
190 'macasyncsocket.h',
191 'maccocoasocketserver.h',
192 'maccocoasocketserver.mm',
193 'maccocoathreadhelper.h',
194 'maccocoathreadhelper.mm',
195 'macconversion.cc',
196 'macconversion.h',
197 'macsocketserver.cc',
198 'macsocketserver.h',
199 'macutils.cc',
200 'macutils.h',
201 'macwindowpicker.cc',
202 'macwindowpicker.h',
203 'mathutils.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000204 'messagedigest.cc',
205 'messagedigest.h',
206 'messagehandler.cc',
207 'messagehandler.h',
208 'messagequeue.cc',
209 'messagequeue.h',
210 'multipart.cc',
211 'multipart.h',
212 'natserver.cc',
213 'natserver.h',
214 'natsocketfactory.cc',
215 'natsocketfactory.h',
216 'nattypes.cc',
217 'nattypes.h',
218 'nethelpers.cc',
219 'nethelpers.h',
220 'network.cc',
221 'network.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000222 'nullsocketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000223 'optionsfile.cc',
224 'optionsfile.h',
225 'pathutils.cc',
226 'pathutils.h',
227 'physicalsocketserver.cc',
228 'physicalsocketserver.h',
229 'posix.cc',
230 'posix.h',
231 'profiler.cc',
232 'profiler.h',
233 'proxydetect.cc',
234 'proxydetect.h',
235 'proxyinfo.cc',
236 'proxyinfo.h',
237 'proxyserver.cc',
238 'proxyserver.h',
239 'ratelimiter.cc',
240 'ratelimiter.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000241 'refcount.h',
242 'referencecountedsingletonfactory.h',
243 'rollingaccumulator.h',
Henrik Boström41b3a382015-08-20 12:15:54 +0200244 'rtccertificate.cc',
245 'rtccertificate.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000246 'schanneladapter.cc',
247 'schanneladapter.h',
248 'scoped_autorelease_pool.h',
249 'scoped_autorelease_pool.mm',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000250 'scoped_ref_ptr.h',
251 'scopedptrcollection.h',
252 'sec_buffer.h',
253 'sha1.cc',
254 'sha1.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000255 'sha1digest.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000256 'sha1digest.h',
tommi@webrtc.orgfe196992015-02-07 22:35:54 +0000257 'sharedexclusivelock.cc',
258 'sharedexclusivelock.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000259 'signalthread.cc',
260 'signalthread.h',
kwiberg@webrtc.org67186fe2015-03-09 22:21:53 +0000261 'sigslot.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000262 'sigslot.h',
263 'sigslotrepeater.h',
264 'socket.h',
265 'socketadapters.cc',
266 'socketadapters.h',
267 'socketaddress.cc',
268 'socketaddress.h',
269 'socketaddresspair.cc',
270 'socketaddresspair.h',
271 'socketfactory.h',
272 'socketpool.cc',
273 'socketpool.h',
274 'socketserver.h',
275 'socketstream.cc',
276 'socketstream.h',
277 'ssladapter.cc',
278 'ssladapter.h',
279 'sslconfig.h',
280 'sslfingerprint.cc',
281 'sslfingerprint.h',
282 'sslidentity.cc',
283 'sslidentity.h',
284 'sslroots.h',
285 'sslsocketfactory.cc',
286 'sslsocketfactory.h',
287 'sslstreamadapter.cc',
288 'sslstreamadapter.h',
289 'sslstreamadapterhelper.cc',
290 'sslstreamadapterhelper.h',
291 'stream.cc',
292 'stream.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000293 'task.cc',
294 'task.h',
295 'taskparent.cc',
296 'taskparent.h',
297 'taskrunner.cc',
298 'taskrunner.h',
299 'testclient.cc',
300 'testclient.h',
301 'thread.cc',
302 'thread.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000303 'timing.cc',
304 'timing.h',
305 'transformadapter.cc',
306 'transformadapter.h',
307 'unixfilesystem.cc',
308 'unixfilesystem.h',
309 'urlencode.cc',
310 'urlencode.h',
311 'versionparsing.cc',
312 'versionparsing.h',
313 'virtualsocketserver.cc',
314 'virtualsocketserver.h',
315 'win32.cc',
316 'win32.h',
317 'win32filesystem.cc',
318 'win32filesystem.h',
319 'win32regkey.cc',
320 'win32regkey.h',
321 'win32securityerrors.cc',
322 'win32socketinit.cc',
323 'win32socketinit.h',
324 'win32socketserver.cc',
325 'win32socketserver.h',
326 'win32window.cc',
327 'win32window.h',
328 'win32windowpicker.cc',
329 'win32windowpicker.h',
330 'window.h',
331 'windowpicker.h',
332 'windowpickerfactory.h',
333 'winfirewall.cc',
334 'winfirewall.h',
335 'winping.cc',
336 'winping.h',
337 'worker.cc',
338 'worker.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000339 'x11windowpicker.cc',
340 'x11windowpicker.h',
henrikg40bf4932015-09-21 03:29:25 -0700341 '../overrides/webrtc/base/logging.cc',
342 '../overrides/webrtc/base/logging.h',
343 '../overrides/webrtc/base/win32socketinit.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000344 ],
henrike@webrtc.orgb2efb672014-09-10 17:28:19 +0000345 # TODO(henrike): issue 3307, make rtc_base build without disabling
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000346 # these flags.
347 'cflags!': [
348 '-Wextra',
349 '-Wall',
350 ],
351 'cflags_cc!': [
352 '-Wnon-virtual-dtor',
353 ],
354 'direct_dependent_settings': {
355 'cflags_cc!': [
356 '-Wnon-virtual-dtor',
357 ],
358 'defines': [
359 'FEATURE_ENABLE_SSL',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000360 ],
361 },
362 'include_dirs': [
363 '../../third_party/jsoncpp/overrides/include',
364 '../../third_party/jsoncpp/source/include',
365 ],
366 'conditions': [
367 ['build_with_chromium==1', {
368 'include_dirs': [
henrikg40bf4932015-09-21 03:29:25 -0700369 '../overrides',
henrike@webrtc.org6ac22e62014-08-11 21:06:30 +0000370 '../../boringssl/src/include',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000371 ],
372 'sources!': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000373 'atomicops.h',
374 'bandwidthsmoother.cc',
375 'bandwidthsmoother.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000376 'bind.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000377 'callback.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000378 'constructormagic.h',
379 'dbus.cc',
380 'dbus.h',
381 'diskcache_win32.cc',
382 'diskcache_win32.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000383 'fileutils_mock.h',
384 'genericslot.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000385 'httpserver.cc',
386 'httpserver.h',
387 'json.cc',
388 'json.h',
389 'latebindingsymboltable.cc',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000390 'latebindingsymboltable.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000391 'libdbusglibsymboltable.cc',
392 'libdbusglibsymboltable.h',
393 'linuxfdwalk.c',
394 'linuxfdwalk.h',
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000395 'x11windowpicker.cc',
396 'x11windowpicker.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000397 'logging.cc',
398 'logging.h',
tkchin93411912015-07-22 12:12:17 -0700399 'logsinks.cc',
400 'logsinks.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000401 'macasyncsocket.cc',
402 'macasyncsocket.h',
403 'maccocoasocketserver.h',
404 'maccocoasocketserver.mm',
405 'macsocketserver.cc',
406 'macsocketserver.h',
407 'macwindowpicker.cc',
408 'macwindowpicker.h',
409 'mathutils.h',
410 'multipart.cc',
411 'multipart.h',
412 'natserver.cc',
413 'natserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000414 'natsocketfactory.cc',
415 'natsocketfactory.h',
416 'nattypes.cc',
417 'nattypes.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000418 'optionsfile.cc',
419 'optionsfile.h',
420 'posix.cc',
421 'posix.h',
422 'profiler.cc',
423 'profiler.h',
424 'proxyserver.cc',
425 'proxyserver.h',
426 'refcount.h',
427 'referencecountedsingletonfactory.h',
428 'rollingaccumulator.h',
429 'safe_conversions.h',
430 'safe_conversions_impl.h',
431 'scopedptrcollection.h',
432 'scoped_ref_ptr.h',
433 'sec_buffer.h',
434 'sharedexclusivelock.cc',
435 'sharedexclusivelock.h',
436 'sslconfig.h',
437 'sslroots.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000438 'testbase64.h',
439 'testclient.cc',
440 'testclient.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000441 'transformadapter.cc',
442 'transformadapter.h',
443 'versionparsing.cc',
444 'versionparsing.h',
445 'virtualsocketserver.cc',
446 'virtualsocketserver.h',
447 'win32regkey.cc',
448 'win32regkey.h',
449 'win32socketinit.cc',
450 'win32socketinit.h',
451 'win32socketserver.cc',
452 'win32socketserver.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000453 'window.h',
454 'windowpickerfactory.h',
455 'windowpicker.h',
456 ],
457 'defines': [
458 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000459 ],
460 'direct_dependent_settings': {
461 'defines': [
462 'NO_MAIN_THREAD_WRAPPING',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000463 ],
464 },
465 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000466 'conditions': [
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000467 ['build_json==1', {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000468 'dependencies': [
469 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
470 ],
471 }, {
472 'include_dirs': [
473 '<(json_root)',
474 ],
475 'defines': [
476 # When defined changes the include path for json.h to where it
477 # is expected to be when building json outside of the standalone
478 # build.
henrike@webrtc.orga685c9d2014-06-17 14:48:44 +0000479 'WEBRTC_EXTERNAL_JSON',
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000480 ],
481 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000482 ],
483 'sources!': [
henrikg40bf4932015-09-21 03:29:25 -0700484 '../overrides/webrtc/base/win32socketinit.cc',
485 '../overrides/webrtc/base/logging.cc',
486 '../overrides/webrtc/base/logging.h',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000487 ],
488 }],
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000489 ['use_openssl==1', {
490 'defines': [
491 'SSL_USE_OPENSSL',
492 'HAVE_OPENSSL_SSL_H',
493 ],
494 'direct_dependent_settings': {
495 'defines': [
496 'SSL_USE_OPENSSL',
497 'HAVE_OPENSSL_SSL_H',
498 ],
499 },
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000500 'sources': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000501 'openssl.h',
502 'openssladapter.cc',
503 'openssladapter.h',
504 'openssldigest.cc',
505 'openssldigest.h',
506 'opensslidentity.cc',
507 'opensslidentity.h',
508 'opensslstreamadapter.cc',
509 'opensslstreamadapter.h',
pthatcher@webrtc.org5d0071f2014-09-26 18:53:40 +0000510 ],
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000511 'conditions': [
pbos@webrtc.org77d5a572014-10-07 11:43:03 +0000512 ['build_ssl==1', {
513 'dependencies': [
514 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
515 ],
516 }, {
henrike@webrtc.org9f36c082014-06-16 21:35:20 +0000517 'include_dirs': [
518 '<(ssl_root)',
519 ],
520 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000521 ],
deadbeef9eb13652015-09-05 04:39:15 -0700522 }, {
523 'sources': [
524 'nssidentity.cc',
525 'nssidentity.h',
526 'nssstreamadapter.cc',
527 'nssstreamadapter.h',
528 ],
529 'conditions': [
530 ['use_legacy_ssl_defaults!=1', {
531 'defines': [
532 'SSL_USE_NSS',
533 'HAVE_NSS_SSL_H',
534 'SSL_USE_NSS_RNG',
535 ],
536 'direct_dependent_settings': {
537 'defines': [
538 'SSL_USE_NSS',
539 'HAVE_NSS_SSL_H',
540 'SSL_USE_NSS_RNG',
541 ],
542 },
543 }],
544 ['build_ssl==1', {
545 'conditions': [
546 # On some platforms, the rest of NSS is bundled. On others,
547 # it's pulled from the system.
548 ['OS == "mac" or OS == "ios"', {
549 'dependencies': [
550 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
551 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
552 '<(DEPTH)/third_party/nss/nss.gyp:nss',
553 ],
554 }],
555 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
556 'dependencies': [
557 '<(DEPTH)/build/linux/system.gyp:ssl',
558 ],
559 }],
560 ],
561 }, {
562 'include_dirs': [
563 '<(ssl_root)',
564 ],
565 }],
566 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000567 }],
568 ['OS == "android"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000569 'link_settings': {
570 'libraries': [
571 '-llog',
572 '-lGLESv2',
573 ],
574 },
575 }, {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000576 'sources!': [
577 'ifaddrs-android.cc',
578 'ifaddrs-android.h',
579 ],
580 }],
581 ['OS=="ios"', {
Yuriy Shevchuk02ff9112015-05-21 13:50:59 +0200582 'sources/': [
583 ['include', 'macconversion.*'],
584 ],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000585 'all_dependent_settings': {
586 'xcode_settings': {
587 'OTHER_LDFLAGS': [
Zeke Chin2d3b7e22015-07-14 12:55:44 -0700588 '-framework CFNetwork',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000589 '-framework Foundation',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000590 '-framework Security',
591 '-framework SystemConfiguration',
592 '-framework UIKit',
593 ],
594 },
595 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000596 }],
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000597 ['use_x11 == 1', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000598 'link_settings': {
599 'libraries': [
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000600 '-ldl',
601 '-lrt',
602 '-lXext',
603 '-lX11',
604 '-lXcomposite',
605 '-lXrender',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000606 ],
607 },
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000608 }, {
609 'sources!': [
610 'x11windowpicker.cc',
611 'x11windowpicker.h',
612 ],
613 }],
614 ['OS=="linux"', {
615 'link_settings': {
616 'libraries': [
henrike@webrtc.orgfb1eb432014-08-15 14:44:13 +0000617 '-ldl',
618 '-lrt',
619 ],
620 },
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000621 }, {
622 'sources!': [
623 'dbus.cc',
624 'dbus.h',
625 'libdbusglibsymboltable.cc',
626 'libdbusglibsymboltable.h',
627 'linuxfdwalk.c',
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000628 ],
629 }],
630 ['OS=="mac"', {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000631 'all_dependent_settings': {
632 'link_settings': {
633 'xcode_settings': {
634 'OTHER_LDFLAGS': [
635 '-framework Cocoa',
636 '-framework Foundation',
637 '-framework IOKit',
638 '-framework Security',
639 '-framework SystemConfiguration',
640 ],
641 },
642 },
643 },
644 'conditions': [
645 ['target_arch=="ia32"', {
646 'all_dependent_settings': {
647 'link_settings': {
648 'xcode_settings': {
649 'OTHER_LDFLAGS': [
650 '-framework Carbon',
651 ],
652 },
653 },
654 },
655 }],
656 ],
657 }, {
658 'sources!': [
659 'macasyncsocket.cc',
660 'macasyncsocket.h',
661 'maccocoasocketserver.h',
662 'maccocoasocketserver.mm',
663 'macconversion.cc',
664 'macconversion.h',
665 'macsocketserver.cc',
666 'macsocketserver.h',
667 'macutils.cc',
668 'macutils.h',
669 'macwindowpicker.cc',
670 'macwindowpicker.h',
671 ],
672 }],
673 ['OS=="win"', {
674 'link_settings': {
675 'libraries': [
676 '-lcrypt32.lib',
677 '-liphlpapi.lib',
678 '-lsecur32.lib',
679 ],
680 },
681 # Suppress warnings about WIN32_LEAN_AND_MEAN.
682 'msvs_disabled_warnings': [4005, 4703],
683 'defines': [
684 '_CRT_NONSTDC_NO_DEPRECATE',
685 ],
686 }, {
687 'sources/': [
688 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'],
689 ],
690 'sources!': [
691 'schanneladapter.cc',
692 'schanneladapter.h',
693 'winping.cc',
694 'winping.h',
695 'winfirewall.cc',
696 'winfirewall.h',
697 ],
698 }],
699 ['os_posix==0', {
700 'sources!': [
701 'latebindingsymboltable.cc',
702 'latebindingsymboltable.h',
703 'posix.cc',
704 'posix.h',
705 'unixfilesystem.cc',
706 'unixfilesystem.h',
707 ],
708 }, {
709 'configurations': {
710 'Debug_Base': {
711 'defines': [
712 # Chromium's build/common.gypi defines this for all posix
713 # _except_ for ios & mac. We want it there as well, e.g.
714 # because ASSERT and friends trigger off of it.
715 '_DEBUG',
716 ],
717 },
718 }
719 }],
720 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
721 'defines': [
722 'CARBON_DEPRECATED=YES',
723 ],
724 }],
725 ['OS!="ios" and OS!="mac"', {
726 'sources!': [
727 'scoped_autorelease_pool.mm',
728 ],
729 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000730 ['OS!="linux" and OS!="android"', {
731 'sources!': [
732 'linux.cc',
733 'linux.h',
734 ],
735 }],
henrike@webrtc.orgf0488722014-05-13 18:00:26 +0000736 ],
737 },
738 ],
739}