| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2016 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 'targets': [ | |
| 12 { | |
| 13 'target_name': 'rtc_media', | |
| 14 'type': 'static_library', | |
| 15 'dependencies': [ | |
| 16 '<(webrtc_root)/base/base.gyp:rtc_base_approved', | |
| 17 '<(webrtc_root)/common.gyp:webrtc_common', | |
| 18 '<(webrtc_root)/webrtc.gyp:webrtc', | |
| 19 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine', | |
| 20 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', | |
| 21 '<(webrtc_root)/p2p/p2p.gyp:rtc_p2p', | |
| 22 ], | |
| 23 'direct_dependent_settings': { | |
| 24 'include_dirs': [ | |
| 25 '<(libyuv_dir)/include', | |
| 26 ], | |
| 27 }, | |
| 28 'sources': [ | |
| 29 'base/adaptedvideotracksource.cc', | |
| 30 'base/adaptedvideotracksource.h', | |
| 31 'base/audiosource.h', | |
| 32 'base/codec.cc', | |
| 33 'base/codec.h', | |
| 34 'base/cryptoparams.h', | |
| 35 'base/device.h', | |
| 36 'base/hybriddataengine.h', | |
| 37 'base/mediachannel.h', | |
| 38 'base/mediaconstants.cc', | |
| 39 'base/mediaconstants.h', | |
| 40 'base/mediaengine.cc', | |
| 41 'base/mediaengine.h', | |
| 42 'base/rtpdataengine.cc', | |
| 43 'base/rtpdataengine.h', | |
| 44 'base/rtpdump.cc', | |
| 45 'base/rtpdump.h', | |
| 46 'base/rtputils.cc', | |
| 47 'base/rtputils.h', | |
| 48 'base/streamparams.cc', | |
| 49 'base/streamparams.h', | |
| 50 'base/turnutils.cc', | |
| 51 'base/turnutils.h', | |
| 52 'base/videoadapter.cc', | |
| 53 'base/videoadapter.h', | |
| 54 'base/videobroadcaster.cc', | |
| 55 'base/videobroadcaster.h', | |
| 56 'base/videocapturer.cc', | |
| 57 'base/videocapturer.h', | |
| 58 'base/videocapturerfactory.h', | |
| 59 'base/videocommon.cc', | |
| 60 'base/videocommon.h', | |
| 61 'base/videoframe.h', | |
| 62 'base/videosourcebase.cc', | |
| 63 'base/videosourcebase.h', | |
| 64 'engine/nullwebrtcvideoengine.h', | |
| 65 'engine/payload_type_mapper.cc', | |
| 66 'engine/payload_type_mapper.h', | |
| 67 'engine/simulcast.cc', | |
| 68 'engine/simulcast.h', | |
| 69 'engine/webrtccommon.h', | |
| 70 'engine/webrtcmediaengine.cc', | |
| 71 'engine/webrtcmediaengine.h', | |
| 72 'engine/webrtcmediaengine.cc', | |
| 73 'engine/webrtcvideocapturer.cc', | |
| 74 'engine/webrtcvideocapturer.h', | |
| 75 'engine/webrtcvideocapturerfactory.h', | |
| 76 'engine/webrtcvideocapturerfactory.cc', | |
| 77 'engine/webrtcvideodecoderfactory.h', | |
| 78 'engine/webrtcvideoencoderfactory.cc', | |
| 79 'engine/webrtcvideoencoderfactory.h', | |
| 80 'engine/webrtcvideoengine2.cc', | |
| 81 'engine/webrtcvideoengine2.h', | |
| 82 'engine/webrtcvideoframe.h', | |
| 83 'engine/webrtcvoe.h', | |
| 84 'engine/webrtcvoiceengine.cc', | |
| 85 'engine/webrtcvoiceengine.h', | |
| 86 'sctp/sctpdataengine.cc', | |
| 87 'sctp/sctpdataengine.h', | |
| 88 ], | |
| 89 # TODO(kjellander): Make the code compile without disabling these flags. | |
| 90 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 | |
| 91 'cflags': [ | |
| 92 '-Wno-deprecated-declarations', | |
| 93 ], | |
| 94 'cflags!': [ | |
| 95 '-Wextra', | |
| 96 ], | |
| 97 'msvs_disabled_warnings': [ | |
| 98 4245, # conversion from 'int' to 'size_t', signed/unsigned mismatch. | |
| 99 4267, # conversion from 'size_t' to 'int', possible loss of data. | |
| 100 4389, # signed/unsigned mismatch. | |
| 101 ], | |
| 102 'conditions': [ | |
| 103 ['build_libyuv==1', { | |
| 104 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',], | |
| 105 }], | |
| 106 ['build_usrsctp==1', { | |
| 107 'include_dirs': [ | |
| 108 # TODO(jiayl): move this into the direct_dependent_settings of | |
| 109 # usrsctp.gyp. | |
| 110 '<(DEPTH)/third_party/usrsctp/usrsctplib', | |
| 111 ], | |
| 112 'dependencies': [ | |
| 113 '<(DEPTH)/third_party/usrsctp/usrsctp.gyp:usrsctplib', | |
| 114 ], | |
| 115 }], | |
| 116 ['enable_intelligibility_enhancer==1', { | |
| 117 'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=1',], | |
| 118 }, { | |
| 119 'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=0',], | |
| 120 }], | |
| 121 ['build_with_chromium==1', { | |
| 122 'dependencies': [ | |
| 123 '<(webrtc_root)/modules/modules.gyp:video_capture', | |
| 124 ], | |
| 125 }, { | |
| 126 'defines': [ | |
| 127 'HAVE_WEBRTC_VIDEO', | |
| 128 'HAVE_WEBRTC_VOICE', | |
| 129 ], | |
| 130 'direct_dependent_settings': { | |
| 131 'defines': [ | |
| 132 'HAVE_WEBRTC_VIDEO', | |
| 133 'HAVE_WEBRTC_VOICE', | |
| 134 ], | |
| 135 }, | |
| 136 'dependencies': [ | |
| 137 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_im
pl', | |
| 138 ], | |
| 139 }], | |
| 140 ['OS=="linux" and use_gtk==1', { | |
| 141 'sources': [ | |
| 142 'devices/gtkvideorenderer.cc', | |
| 143 'devices/gtkvideorenderer.h', | |
| 144 ], | |
| 145 'cflags': [ | |
| 146 '<!@(pkg-config --cflags gobject-2.0 gthread-2.0 gtk+-2.0)', | |
| 147 ], | |
| 148 }], | |
| 149 ], | |
| 150 }, # target rtc_media | |
| 151 ], # targets. | |
| 152 } | |
| OLD | NEW |