Skip to content

Commit

Permalink
Bug 1109248: gyp changes to adapt to webrtc.org 40 update r=ted
Browse files Browse the repository at this point in the history
  • Loading branch information
jesup committed Jan 29, 2015
1 parent 718b1ca commit 69a4659
Show file tree
Hide file tree
Showing 10 changed files with 101 additions and 35 deletions.
4 changes: 3 additions & 1 deletion build/gyp.mozbuild
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ gyp_vars = {
# use_system_lib* still seems to be in use in trunk/build
'use_system_libjpeg': 0,
'use_system_libvpx': 0,
'build_json': 0,
'build_libjpeg': 0,
'build_libvpx': 0,
'build_libyuv': 0,
'build_libvpx': 0,
'build_ssl': 0,
'libyuv_dir': '/media/libyuv',
'yuv_disable_avx2': 0 if CONFIG['HAVE_X86_AVX2'] else 1,
# don't use openssl
Expand Down
2 changes: 1 addition & 1 deletion media/webrtc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ webrtc_non_unified_sources = [
'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
'trunk/webrtc/modules/audio_coding/neteq4/audio_vector.cc', # Because of explicit template specializations
'trunk/webrtc/modules/audio_coding/neteq/audio_vector.cc', # Because of explicit template specializations
'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()
'trunk/webrtc/modules/audio_device/opensl/opensles_input.cc', # Because of name clash in the kOption variable
Expand Down
4 changes: 3 additions & 1 deletion media/webrtc/trunk/peerconnection.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
'dependencies': [
'webrtc/modules/modules.gyp:audio_device',
'webrtc/modules/modules.gyp:video_capture_module',
# 'webrtc/modules/modules.gyp:video_render_module',
'webrtc/modules/modules.gyp:video_capture_module_internal_impl',
'webrtc/modules/modules.gyp:video_render_module_impl',
# 'webrtc/system_wrappers/source/system_wrappers.gyp:system_wrappers',
# 'webrtc/system_wrappers/source/system_wrappers.gyp:metrics_default',
'webrtc/video_engine/video_engine.gyp:video_engine_core',
'webrtc/voice_engine/voice_engine.gyp:voice_engine',
],
Expand Down
31 changes: 20 additions & 11 deletions media/webrtc/trunk/webrtc/base/base.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@
'timeutils.cc',
'timeutils.h',
],
'conditions': [
['OS=="mac"', {
'sources': [
'macutils.cc',
'macutils.h',
],
}],
],
},
{
'target_name': 'rtc_base',
Expand Down Expand Up @@ -94,13 +102,13 @@
'basicdefs.h',
'basictypes.h',
'bind.h',
'bind.h.pump',
# 'bind.h.pump',
'buffer.h',
'bytebuffer.cc',
'bytebuffer.h',
'byteorder.h',
'callback.h',
'callback.h.pump',
# 'callback.h.pump',
'constructormagic.h',
'common.cc',
'common.h',
Expand Down Expand Up @@ -149,9 +157,9 @@
'json.cc',
'json.h',
'latebindingsymboltable.cc',
'latebindingsymboltable.cc.def',
# 'latebindingsymboltable.cc.def',
'latebindingsymboltable.h',
'latebindingsymboltable.h.def',
# 'latebindingsymboltable.h.def',
'libdbusglibsymboltable.cc',
'libdbusglibsymboltable.h',
'linux.cc',
Expand All @@ -171,8 +179,9 @@
'macconversion.h',
'macsocketserver.cc',
'macsocketserver.h',
'macutils.cc',
'macutils.h',
# moved by mozilla
# 'macutils.cc',
# 'macutils.h',
'macwindowpicker.cc',
'macwindowpicker.h',
'mathutils.h',
Expand Down Expand Up @@ -363,10 +372,10 @@
'bandwidthsmoother.h',
'basictypes.h',
'bind.h',
'bind.h.pump',
# 'bind.h.pump',
'buffer.h',
'callback.h',
'callback.h.pump',
# 'callback.h.pump',
'constructormagic.h',
'dbus.cc',
'dbus.h',
Expand All @@ -376,15 +385,15 @@
'filelock.h',
'fileutils_mock.h',
'genericslot.h',
'genericslot.h.pump',
# 'genericslot.h.pump',
'httpserver.cc',
'httpserver.h',
'json.cc',
'json.h',
'latebindingsymboltable.cc',
'latebindingsymboltable.cc.def',
# 'latebindingsymboltable.cc.def',
'latebindingsymboltable.h',
'latebindingsymboltable.h.def',
# 'latebindingsymboltable.h.def',
'libdbusglibsymboltable.cc',
'libdbusglibsymboltable.h',
'linuxfdwalk.c',
Expand Down
2 changes: 1 addition & 1 deletion media/webrtc/trunk/webrtc/build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
['target_arch=="arm" or target_arch=="armv7"', {
'prefer_fixed_point%': 1,
}],
['OS!="ios" and (target_arch!="arm" or arm_version>=7)', {
['OS!="ios" and (target_arch!="arm" or arm_version>=7) and build_with_mozilla==0', {
'rtc_use_openmax_dl%': 1,
}, {
'rtc_use_openmax_dl%': 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@
# Mozilla provides its own build of the opus library.
'include_dirs': [
'/media/libopus/include',
]
'/media/libopus/src',
'/media/libopus/celt',
],
'direct_dependent_settings': {
'include_dirs': [
'/media/libopus/include',
'/media/libopus/src',
'/media/libopus/celt',
],
},
}, {
'dependencies': [
'<(DEPTH)/third_party/opus/opus.gyp:opus'
Expand Down
67 changes: 51 additions & 16 deletions media/webrtc/trunk/webrtc/modules/audio_coding/neteq/neteq.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -28,41 +28,76 @@
'neteq_defines': ['WEBRTC_CODEC_ISAC', 'WEBRTC_CODEC_ISACFIX',],
}],
['include_opus==1', {
'codecs': ['webrtc_opus',],
'codecs': ['webrtc_opus'],
'neteq_dependencies': ['webrtc_opus'],
'neteq_defines': ['WEBRTC_CODEC_OPUS',],
'conditions': [
['build_with_mozilla==0', {
'neteq_dependencies': [
'<(DEPTH)/third_party/opus/opus.gyp:opus',
],
}],
],
}],
],
'neteq_dependencies': [
'<@(codecs)',
'<(DEPTH)/third_party/opus/opus.gyp:opus',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
],

},
'targets': [
{
'target_name': 'neteq',
'type': 'static_library',
'include_dirs': [
'../../../../../../media/opus/celt',
],
'direct_dependent_settings': {
'include_dirs': [
'../../../../../../media/opus/celt',
],
},
'dependencies': [
'<@(neteq_dependencies)',
],
'defines': [
'<@(neteq_defines)',
],
'include_dirs': [
# Need Opus header files for the audio classifier.
'<(DEPTH)/third_party/opus/src/celt',
'<(DEPTH)/third_party/opus/src/src',
],
'direct_dependent_settings': {
'include_dirs': [
# Need Opus header files for the audio classifier.
'<(DEPTH)/third_party/opus/src/celt',
'<(DEPTH)/third_party/opus/src/src',
],
},
'export_dependent_settings': [
'<(DEPTH)/third_party/opus/opus.gyp:opus',
'conditions': [
['build_with_mozilla==0', {
'include_dirs': [
# Need Opus header files for the audio classifier.
'<(DEPTH)/third_party/opus/src/celt',
'<(DEPTH)/third_party/opus/src/src',
],
'direct_dependent_settings': {
'include_dirs': [
# Need Opus header files for the audio classifier.
'<(DEPTH)/third_party/opus/src/celt',
'<(DEPTH)/third_party/opus/src/src',
],
},
'export_dependent_settings': [
'<(DEPTH)/third_party/opus/opus.gyp:opus',
],
}],
['build_with_mozilla==1', {
'include_dirs': [
# Need Opus header files for the audio classifier.
'<(DEPTH)/../../../media/opus/celt',
# '<(DEPTH)/third_party/opus/src/src',
],
'direct_dependent_settings': {
'include_dirs': [
'../../../../../../media/opus/celt',
# Need Opus header files for the audio classifier.
'<(DEPTH)/../../../media/opus/celt',
# '<(DEPTH)/third_party/opus/src/src',
],
},
}],
],
'sources': [
'interface/audio_decoder.h',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/base/base.gyp:rtc_base',
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
],
'sources': [
"desktop_and_cursor_composer.cc",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
'dependencies': [
'video_capture_module',
],
'cflags_mozilla': [
'$(NSPR_CFLAGS)',
],
'sources': [
'external/device_info_external.cc',
'external/video_capture_external.cc',
Expand All @@ -55,6 +58,9 @@
'dependencies': [
'video_capture_module',
],
'cflags_mozilla': [
'$(NSPR_CFLAGS)',
],
'conditions': [
['include_v4l2_video_capture==1', {
'sources': [
Expand Down Expand Up @@ -98,8 +104,6 @@
'<(DEPTH)/third_party/winsdk_samples/winsdk_samples.gyp:directshow_baseclasses',
],
}],
'dependencies': [
'<(DEPTH)/third_party/winsdk_samples/winsdk_samples.gyp:directshow_baseclasses',
],
'sources': [
'windows/device_info_ds.cc',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@
'WEBRTC_LAZY_TRACE_ALLOC',
],
}],
['build_with_mozilla', {
'sources': [
'metrics_default.cc',
],
}],
['OS=="android" or moz_widget_toolkit_gonk==1', {
'defines': [
'WEBRTC_THREAD_RR',
Expand Down

0 comments on commit 69a4659

Please sign in to comment.