OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 { | 9 { |
10 'includes': [ '../build/common.gypi', ], | 10 'includes': [ '../build/common.gypi', ], |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 }, | 97 }, |
98 { | 98 { |
99 'target_name': 'rtc_base', | 99 'target_name': 'rtc_base', |
100 'type': 'static_library', | 100 'type': 'static_library', |
101 'dependencies': [ | 101 'dependencies': [ |
102 '<(webrtc_root)/common.gyp:webrtc_common', | 102 '<(webrtc_root)/common.gyp:webrtc_common', |
103 'rtc_base_approved', | 103 'rtc_base_approved', |
104 ], | 104 ], |
105 'defines': [ | 105 'defines': [ |
106 'FEATURE_ENABLE_SSL', | 106 'FEATURE_ENABLE_SSL', |
| 107 'SSL_USE_OPENSSL', |
| 108 'HAVE_OPENSSL_SSL_H', |
107 'LOGGING=1', | 109 'LOGGING=1', |
108 ], | 110 ], |
109 'sources': [ | 111 'sources': [ |
110 'arraysize.h', | 112 'arraysize.h', |
111 'asyncfile.cc', | 113 'asyncfile.cc', |
112 'asyncfile.h', | 114 'asyncfile.h', |
113 'asyncinvoker.cc', | 115 'asyncinvoker.cc', |
114 'asyncinvoker.h', | 116 'asyncinvoker.h', |
115 'asyncinvoker-inl.h', | 117 'asyncinvoker-inl.h', |
116 'asyncpacketsocket.cc', | 118 'asyncpacketsocket.cc', |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 'natserver.h', | 215 'natserver.h', |
214 'natsocketfactory.cc', | 216 'natsocketfactory.cc', |
215 'natsocketfactory.h', | 217 'natsocketfactory.h', |
216 'nattypes.cc', | 218 'nattypes.cc', |
217 'nattypes.h', | 219 'nattypes.h', |
218 'nethelpers.cc', | 220 'nethelpers.cc', |
219 'nethelpers.h', | 221 'nethelpers.h', |
220 'network.cc', | 222 'network.cc', |
221 'network.h', | 223 'network.h', |
222 'nullsocketserver.h', | 224 'nullsocketserver.h', |
| 225 'openssl.h', |
| 226 'openssladapter.cc', |
| 227 'openssladapter.h', |
| 228 'openssldigest.cc', |
| 229 'openssldigest.h', |
| 230 'opensslidentity.cc', |
| 231 'opensslidentity.h', |
| 232 'opensslstreamadapter.cc', |
| 233 'opensslstreamadapter.h', |
223 'optionsfile.cc', | 234 'optionsfile.cc', |
224 'optionsfile.h', | 235 'optionsfile.h', |
225 'pathutils.cc', | 236 'pathutils.cc', |
226 'pathutils.h', | 237 'pathutils.h', |
227 'physicalsocketserver.cc', | 238 'physicalsocketserver.cc', |
228 'physicalsocketserver.h', | 239 'physicalsocketserver.h', |
229 'posix.cc', | 240 'posix.cc', |
230 'posix.h', | 241 'posix.h', |
231 'profiler.cc', | 242 'profiler.cc', |
232 'profiler.h', | 243 'profiler.h', |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 ], | 361 ], |
351 'cflags_cc!': [ | 362 'cflags_cc!': [ |
352 '-Wnon-virtual-dtor', | 363 '-Wnon-virtual-dtor', |
353 ], | 364 ], |
354 'direct_dependent_settings': { | 365 'direct_dependent_settings': { |
355 'cflags_cc!': [ | 366 'cflags_cc!': [ |
356 '-Wnon-virtual-dtor', | 367 '-Wnon-virtual-dtor', |
357 ], | 368 ], |
358 'defines': [ | 369 'defines': [ |
359 'FEATURE_ENABLE_SSL', | 370 'FEATURE_ENABLE_SSL', |
| 371 'SSL_USE_OPENSSL', |
| 372 'HAVE_OPENSSL_SSL_H', |
360 ], | 373 ], |
361 }, | 374 }, |
362 'include_dirs': [ | 375 'include_dirs': [ |
363 '../../third_party/jsoncpp/overrides/include', | 376 '../../third_party/jsoncpp/overrides/include', |
364 '../../third_party/jsoncpp/source/include', | 377 '../../third_party/jsoncpp/source/include', |
365 ], | 378 ], |
366 'conditions': [ | 379 'conditions': [ |
367 ['build_with_chromium==1', { | 380 ['build_with_chromium==1', { |
368 'include_dirs': [ | 381 'include_dirs': [ |
369 '../overrides', | 382 '../overrides', |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 'WEBRTC_EXTERNAL_JSON', | 492 'WEBRTC_EXTERNAL_JSON', |
480 ], | 493 ], |
481 }], | 494 }], |
482 ], | 495 ], |
483 'sources!': [ | 496 'sources!': [ |
484 '../overrides/webrtc/base/win32socketinit.cc', | 497 '../overrides/webrtc/base/win32socketinit.cc', |
485 '../overrides/webrtc/base/logging.cc', | 498 '../overrides/webrtc/base/logging.cc', |
486 '../overrides/webrtc/base/logging.h', | 499 '../overrides/webrtc/base/logging.h', |
487 ], | 500 ], |
488 }], | 501 }], |
489 ['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 }, | |
500 'sources': [ | |
501 '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', | |
510 ], | |
511 'conditions': [ | |
512 ['build_ssl==1', { | |
513 'dependencies': [ | |
514 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl', | |
515 ], | |
516 }, { | |
517 'include_dirs': [ | |
518 '<(ssl_root)', | |
519 ], | |
520 }], | |
521 ], | |
522 }, { | |
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 != "andro
id"', { | |
556 'dependencies': [ | |
557 '<(DEPTH)/build/linux/system.gyp:ssl', | |
558 ], | |
559 }], | |
560 ], | |
561 }, { | |
562 'include_dirs': [ | |
563 '<(ssl_root)', | |
564 ], | |
565 }], | |
566 ], | |
567 }], | |
568 ['OS == "android"', { | 502 ['OS == "android"', { |
569 'link_settings': { | 503 'link_settings': { |
570 'libraries': [ | 504 'libraries': [ |
571 '-llog', | 505 '-llog', |
572 '-lGLESv2', | 506 '-lGLESv2', |
573 ], | 507 ], |
574 }, | 508 }, |
575 }, { | 509 }, { |
576 'sources!': [ | 510 'sources!': [ |
577 'ifaddrs-android.cc', | 511 'ifaddrs-android.cc', |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 'sources!': [ | 660 'sources!': [ |
727 'scoped_autorelease_pool.mm', | 661 'scoped_autorelease_pool.mm', |
728 ], | 662 ], |
729 }], | 663 }], |
730 ['OS!="linux" and OS!="android"', { | 664 ['OS!="linux" and OS!="android"', { |
731 'sources!': [ | 665 'sources!': [ |
732 'linux.cc', | 666 'linux.cc', |
733 'linux.h', | 667 'linux.h', |
734 ], | 668 ], |
735 }], | 669 }], |
| 670 ['build_ssl==1', { |
| 671 'dependencies': [ |
| 672 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl', |
| 673 ], |
| 674 }, { |
| 675 'include_dirs': [ |
| 676 '<(ssl_root)', |
| 677 ], |
| 678 }], |
736 ], | 679 ], |
737 }, | 680 }, |
738 ], | 681 ], |
739 } | 682 } |
OLD | NEW |