2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:22 +00:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-12-12 14:41:05 +00:00
|
|
|
include('/build/gyp.mozbuild')
|
|
|
|
|
2013-12-18 06:40:03 +00:00
|
|
|
webrtc_non_unified_sources = [
|
|
|
|
'trunk/webrtc/common_audio/vad/vad_core.c', # Because of name clash in the kInitCheck variable
|
|
|
|
'trunk/webrtc/common_audio/vad/webrtc_vad.c', # Because of name clash in the kInitCheck variable
|
|
|
|
'trunk/webrtc/modules/audio_coding/codecs/g722/g722_decode.c', # Because of name clash in the saturate function
|
|
|
|
'trunk/webrtc/modules/audio_coding/codecs/g722/g722_encode.c', # Because of name clash in the saturate function
|
|
|
|
'trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter.c', # Because of name clash in the kDampFilter variable
|
|
|
|
'trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter_c.c', # Because of name clash in the kDampFilter variable
|
2015-01-29 23:33:36 +00:00
|
|
|
'trunk/webrtc/modules/audio_coding/neteq/audio_vector.cc', # Because of explicit template specializations
|
2014-04-02 17:58:19 +00:00
|
|
|
'trunk/webrtc/modules/audio_device/linux/audio_device_pulse_linux.cc', # Because of LATE()
|
|
|
|
'trunk/webrtc/modules/audio_device/linux/audio_mixer_manager_pulse_linux.cc',# Because of LATE()
|
2013-12-18 06:40:03 +00:00
|
|
|
'trunk/webrtc/modules/audio_device/opensl/opensles_input.cc', # Because of name clash in the kOption variable
|
|
|
|
'trunk/webrtc/modules/audio_device/opensl/opensles_output.cc', # Because of name clash in the kOption variable
|
2014-04-02 17:58:19 +00:00
|
|
|
'trunk/webrtc/modules/audio_device/opensl/single_rw_fifo.cc', # Because of name clash with #define FF
|
2013-12-18 06:40:03 +00:00
|
|
|
'trunk/webrtc/modules/audio_device/win/audio_device_core_win.cc', # Because of ordering assumptions in strsafe.h
|
|
|
|
'trunk/webrtc/modules/audio_processing/aec/aec_core.c', # Because of name clash in the ComfortNoise function
|
|
|
|
'trunk/webrtc/modules/audio_processing/aecm/aecm_core.c', # Because of name clash in the ComfortNoise function
|
|
|
|
'trunk/webrtc/modules/audio_processing/aecm/echo_control_mobile.c', # Because of name clash in the kInitCheck variable
|
|
|
|
'trunk/webrtc/modules/audio_processing/agc/analog_agc.c', # Because of name clash in the kInitCheck variable
|
|
|
|
'trunk/webrtc/modules/audio_processing/echo_cancellation_impl.cc', # Because of name clash in the MapError function
|
|
|
|
'trunk/webrtc/modules/audio_processing/echo_control_mobile_impl.cc', # Because of name clash in the MapError function
|
|
|
|
'trunk/webrtc/modules/audio_processing/gain_control_impl.cc', # Because of name clash in the Handle typedef
|
|
|
|
'trunk/webrtc/modules/audio_processing/high_pass_filter_impl.cc', # Because of name clash in the Handle typedef
|
|
|
|
'trunk/webrtc/modules/audio_processing/noise_suppression_impl.cc', # Because of name clash in the Handle typedef
|
|
|
|
'trunk/webrtc/modules/video_capture/mac/qtkit/video_capture_qtkit.mm', # Because of name clash in the nsAutoreleasePool class
|
|
|
|
'trunk/webrtc/modules/video_capture/mac/qtkit/video_capture_qtkit_info.mm', # Because of name clash in the nsAutoreleasePool class
|
|
|
|
'trunk/webrtc/modules/video_capture/windows/device_info_ds.cc', # Because of the MEDIASUBTYPE_HDYC variable
|
2014-02-12 09:59:05 +00:00
|
|
|
'trunk/webrtc/modules/video_capture/windows/help_functions_ds.cc', # Because of initguid.h
|
|
|
|
'trunk/webrtc/modules/video_capture/windows/sink_filter_ds.cc', # Because of the MEDIASUBTYPE_HDYC variable and initguid.h
|
2013-12-18 06:40:03 +00:00
|
|
|
]
|
|
|
|
|
2013-12-12 14:41:05 +00:00
|
|
|
GYP_DIRS += ['trunk']
|
|
|
|
|
|
|
|
GYP_DIRS['trunk'].input = 'trunk/peerconnection.gyp'
|
|
|
|
GYP_DIRS['trunk'].variables = gyp_vars
|
2013-12-14 02:38:53 +00:00
|
|
|
GYP_DIRS['trunk'].sandbox_vars['FINAL_LIBRARY'] = 'webrtc'
|
2013-12-18 06:40:03 +00:00
|
|
|
GYP_DIRS['trunk'].non_unified_sources += webrtc_non_unified_sources
|
2013-12-12 14:41:05 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBRTC_SIGNALING']:
|
|
|
|
GYP_DIRS += ['signaling']
|
|
|
|
GYP_DIRS['signaling'].input = 'signaling/signaling.gyp'
|
|
|
|
GYP_DIRS['signaling'].variables = gyp_vars.copy()
|
|
|
|
GYP_DIRS['signaling'].variables.update(
|
2015-04-09 13:15:00 +00:00
|
|
|
build_for_test=0,
|
|
|
|
build_for_standalone=0
|
2013-12-12 14:41:05 +00:00
|
|
|
)
|
2013-12-14 02:38:53 +00:00
|
|
|
GYP_DIRS['signaling'].sandbox_vars['FINAL_LIBRARY'] = 'xul'
|
2014-11-18 01:03:28 +00:00
|
|
|
# Excluded for various symbol conflicts
|
2013-12-18 06:40:03 +00:00
|
|
|
signaling_non_unified_sources = [
|
2014-11-18 01:03:28 +00:00
|
|
|
'signaling/src/common/browser_logging/CSFLog.cpp',
|
|
|
|
'signaling/src/jsep/JsepSessionImpl.cpp',
|
2013-12-18 06:40:03 +00:00
|
|
|
'signaling/src/media-conduit/AudioConduit.cpp',
|
2014-06-05 03:56:30 +00:00
|
|
|
'signaling/src/media-conduit/CodecStatistics.cpp',
|
2014-12-10 03:06:06 +00:00
|
|
|
'signaling/src/media-conduit/MediaCodecVideoCodec.cpp',
|
2013-12-18 06:40:03 +00:00
|
|
|
'signaling/src/media-conduit/VideoConduit.cpp',
|
2014-12-10 03:06:06 +00:00
|
|
|
'signaling/src/media-conduit/WebrtcMediaCodecVP8VideoCodec.cpp',
|
2014-11-18 01:03:28 +00:00
|
|
|
'signaling/src/mediapipeline/MediaPipeline.cpp',
|
|
|
|
'signaling/src/mediapipeline/MediaPipelineFilter.cpp',
|
|
|
|
'signaling/src/mediapipeline/SrtpFlow.cpp',
|
|
|
|
'signaling/src/peerconnection/MediaPipelineFactory.cpp',
|
|
|
|
'signaling/src/peerconnection/MediaStreamList.cpp',
|
2013-12-18 06:40:03 +00:00
|
|
|
'signaling/src/peerconnection/PeerConnectionCtx.cpp',
|
|
|
|
'signaling/src/peerconnection/PeerConnectionImpl.cpp',
|
|
|
|
'signaling/src/peerconnection/PeerConnectionMedia.cpp',
|
2014-02-20 17:35:35 +00:00
|
|
|
'signaling/src/peerconnection/WebrtcGlobalInformation.cpp',
|
2014-11-18 01:03:28 +00:00
|
|
|
'signaling/src/sdp/sipcc/cpr_string.c',
|
|
|
|
'signaling/src/sdp/sipcc/sdp_access.c',
|
|
|
|
'signaling/src/sdp/sipcc/sdp_attr.c',
|
|
|
|
'signaling/src/sdp/sipcc/sdp_attr_access.c',
|
|
|
|
'signaling/src/sdp/sipcc/sdp_base64.c',
|
|
|
|
'signaling/src/sdp/sipcc/sdp_config.c',
|
|
|
|
'signaling/src/sdp/sipcc/sdp_main.c',
|
|
|
|
'signaling/src/sdp/sipcc/sdp_services_unix.c',
|
|
|
|
'signaling/src/sdp/sipcc/sdp_token.c',
|
|
|
|
'signaling/src/sdp/sipcc/sdp_utils.c',
|
2014-10-08 20:19:55 +00:00
|
|
|
]
|
|
|
|
|
2013-12-18 06:40:03 +00:00
|
|
|
GYP_DIRS['signaling'].non_unified_sources += signaling_non_unified_sources
|
2013-02-25 20:47:22 +00:00
|
|
|
|
2013-03-19 20:02:44 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
|
2013-12-12 14:41:05 +00:00
|
|
|
GYP_DIRS += ['trunk/testing']
|
|
|
|
GYP_DIRS['trunk/testing'].input = 'trunk/testing/gtest.gyp'
|
|
|
|
GYP_DIRS['trunk/testing'].variables = gyp_vars
|
2013-12-18 06:40:03 +00:00
|
|
|
GYP_DIRS['trunk/testing'].non_unified_sources += webrtc_non_unified_sources
|
2013-12-12 14:41:05 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBRTC_SIGNALING']:
|
|
|
|
GYP_DIRS += ['signalingtest']
|
|
|
|
GYP_DIRS['signalingtest'].input = 'signaling/signaling.gyp'
|
|
|
|
GYP_DIRS['signalingtest'].variables = gyp_vars.copy()
|
|
|
|
GYP_DIRS['signalingtest'].variables.update(
|
2015-04-09 13:15:00 +00:00
|
|
|
build_for_test=1,
|
2014-12-10 03:06:06 +00:00
|
|
|
moz_webrtc_mediacodec=0,
|
2015-04-09 13:15:00 +00:00
|
|
|
build_for_standalone=0
|
2013-12-12 14:41:05 +00:00
|
|
|
)
|
2013-12-18 06:40:03 +00:00
|
|
|
GYP_DIRS['signalingtest'].non_unified_sources += signaling_non_unified_sources
|
2015-04-09 13:15:00 +00:00
|
|
|
GYP_DIRS += ['signalingstandalone']
|
|
|
|
GYP_DIRS['signalingstandalone'].input = 'signaling/signaling.gyp'
|
|
|
|
GYP_DIRS['signalingstandalone'].variables = gyp_vars.copy()
|
|
|
|
GYP_DIRS['signalingstandalone'].variables.update(
|
|
|
|
build_for_test=0,
|
|
|
|
build_for_standalone=1
|
|
|
|
)
|
|
|
|
GYP_DIRS['signalingstandalone'].non_unified_sources += signaling_non_unified_sources
|
2014-03-22 23:35:43 +00:00
|
|
|
|