mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
195 lines
5.8 KiB
Makefile
Executable file
195 lines
5.8 KiB
Makefile
Executable file
# script expect linphone-root-dir variable to be set by parent !
|
|
|
|
#enable video on armv7 and x86 targets only
|
|
#since we want to modify BUILD_VIDEO and BUILD_X264 depending on platform, we need to make a copy because the
|
|
#variables given on command line take precedence over the ones defined internally.
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi)
|
|
_BUILD_X264=0
|
|
_BUILD_OPENH264=0
|
|
_BUILD_VIDEO=0
|
|
else
|
|
_BUILD_X264=$(BUILD_X264)
|
|
_BUILD_OPENH264=$(BUILD_OPENH264)
|
|
_BUILD_VIDEO=$(BUILD_VIDEO)
|
|
endif
|
|
|
|
ifeq ($(_BUILD_VIDEO),0)
|
|
ifeq (,$(DUMP_VAR))
|
|
$(info $(TARGET_ARCH_ABI): Video is disabled for targets other than armeabi-v7a and x86)
|
|
endif
|
|
endif
|
|
|
|
#libxml2
|
|
include $(linphone-root-dir)/submodules/externals/build/libxml2/Android.mk
|
|
|
|
ifeq ($(BUILD_ZRTP), 1)
|
|
BUILD_SRTP=1
|
|
ZRTP_C_INCLUDE= \
|
|
$(linphone-root-dir)/submodules/bzrtp/include
|
|
endif
|
|
|
|
ifeq ($(BUILD_SRTP), 1)
|
|
SRTP_C_INCLUDE= \
|
|
$(linphone-root-dir)/submodules/externals/srtp \
|
|
$(linphone-root-dir)/submodules/externals/srtp/include \
|
|
$(linphone-root-dir)/submodules/externals/srtp/crypto/include
|
|
endif
|
|
|
|
|
|
#sqlite
|
|
ifeq ($(BUILD_SQLITE),1)
|
|
include $(linphone-root-dir)/submodules/externals/build/sqlite/Android.mk
|
|
endif
|
|
|
|
#libupnp
|
|
ifeq ($(BUILD_UPNP),1)
|
|
include $(linphone-root-dir)/submodules/externals/build/libupnp/Android.mk
|
|
endif
|
|
|
|
# Speex
|
|
include $(linphone-root-dir)/submodules/externals/build/speex/Android.mk
|
|
|
|
# Gsm
|
|
include $(linphone-root-dir)/submodules/externals/build/gsm/Android.mk
|
|
|
|
# Matroska
|
|
ifeq ($(BUILD_MATROSKA), 1)
|
|
include $(linphone-root-dir)/submodules/externals/build/libmatroska-c/Android.mk
|
|
endif
|
|
|
|
ifeq ($(BUILD_BCTOOLBOX_MBEDTLS),1)
|
|
include $(linphone-root-dir)/submodules/externals/build/mbedtls/Android.mk
|
|
include $(linphone-root-dir)/submodules/bctoolbox/build/android/Android-mbedtls.mk
|
|
else
|
|
include $(linphone-root-dir)/submodules/externals/build/polarssl/Android.mk
|
|
include $(linphone-root-dir)/submodules/bctoolbox/build/android/Android-polarssl.mk
|
|
endif
|
|
|
|
ifeq ($(BUILD_MEDIASTREAMER2_SDK), 0)
|
|
include $(linphone-root-dir)/submodules/externals/build/antlr3/Android.mk
|
|
include $(linphone-root-dir)/submodules/belle-sip/build/android/Android.mk
|
|
endif
|
|
|
|
|
|
include $(linphone-root-dir)/submodules/linphone/oRTP/build/android/Android.mk
|
|
|
|
include $(linphone-root-dir)/submodules/linphone/mediastreamer2/build/android/Android.mk
|
|
include $(linphone-root-dir)/submodules/linphone/mediastreamer2/tools/Android.mk
|
|
|
|
|
|
#tunnel
|
|
ifeq ($(BUILD_TUNNEL), 1)
|
|
include $(linphone-root-dir)/submodules/tunnel/Android.mk
|
|
endif
|
|
|
|
ifeq ($(BUILD_SILK), 1)
|
|
ifeq (,$(DUMP_VAR))
|
|
$(info $(TARGET_ARCH_ABI): Build proprietary SILK plugin for mediastreamer2)
|
|
endif
|
|
include $(linphone-root-dir)/submodules/mssilk/Android.mk
|
|
endif
|
|
|
|
ifeq ($(BUILD_CODEC2), 1)
|
|
include $(linphone-root-dir)/submodules/mscodec2/Android.mk
|
|
include $(linphone-root-dir)/submodules/externals/build/codec2/Android.mk
|
|
endif
|
|
|
|
ifeq ($(_BUILD_VIDEO),1)
|
|
|
|
ifeq ($(_BUILD_X264),1)
|
|
ifeq (,$(DUMP_VAR))
|
|
$(info $(TARGET_ARCH_ABI): Build X264 plugin for mediastreamer2)
|
|
endif
|
|
include $(linphone-root-dir)/submodules/msx264/Android.mk
|
|
include $(linphone-root-dir)/submodules/externals/build/x264/Android.mk
|
|
endif
|
|
|
|
ifeq ($(_BUILD_OPENH264),1)
|
|
ifeq (,$(DUMP_VAR))
|
|
$(info $(TARGET_ARCH_ABI): Build OpenH264 plugin for mediastreamer2)
|
|
endif
|
|
include $(linphone-root-dir)/submodules/msopenh264/Android.mk
|
|
include $(linphone-root-dir)/submodules/externals/build/openh264/Android.mk
|
|
endif
|
|
|
|
include $(linphone-root-dir)/submodules/externals/build/ffmpeg/Android.mk
|
|
include $(linphone-root-dir)/submodules/externals/build/libvpx/Android.mk
|
|
|
|
|
|
endif #_BUILD_VIDEO
|
|
|
|
|
|
ifeq ($(BUILD_ZRTP), 1)
|
|
ifeq (,$(DUMP_VAR))
|
|
$(info $(TARGET_ARCH_ABI): Build ZRTP support)
|
|
endif
|
|
include $(linphone-root-dir)/submodules/bzrtp/Android.mk
|
|
endif
|
|
|
|
ifeq ($(BUILD_SRTP), 1)
|
|
include $(linphone-root-dir)/submodules/externals/build/srtp/Android.mk
|
|
endif
|
|
|
|
include $(linphone-root-dir)/submodules/linphone/build/android/Android.mk
|
|
|
|
_BUILD_AMR=0
|
|
ifneq ($(BUILD_AMRNB), 0)
|
|
_BUILD_AMR=1
|
|
endif
|
|
|
|
ifneq ($(BUILD_AMRWB), 0)
|
|
_BUILD_AMR=1
|
|
endif
|
|
|
|
ifneq ($(_BUILD_AMR), 0)
|
|
include $(linphone-root-dir)/submodules/externals/build/opencore-amr/Android.mk
|
|
include $(linphone-root-dir)/submodules/msamr/Android.mk
|
|
endif
|
|
|
|
ifneq ($(BUILD_AMRWB), 0)
|
|
include $(linphone-root-dir)/submodules/externals/build/vo-amrwbenc/Android.mk
|
|
endif
|
|
|
|
ifneq ($(BUILD_G729), 0)
|
|
include $(linphone-root-dir)/submodules/bcg729/Android.mk
|
|
include $(linphone-root-dir)/submodules/bcg729/msbcg729/Android.mk
|
|
endif
|
|
|
|
ifneq ($(BUILD_OPUS), 0)
|
|
include $(linphone-root-dir)/submodules/externals/build/opus/Android.mk
|
|
endif
|
|
|
|
WEBRTC_BUILD_NEON_LIBS=false
|
|
|
|
# AECM
|
|
ifneq ($(BUILD_WEBRTC_AECM),0)
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
$(info $(TARGET_ARCH_ABI): Build NEON modules for AECM)
|
|
WEBRTC_BUILD_NEON_LIBS=true
|
|
endif
|
|
|
|
$(info $(TARGET_ARCH_ABI): Build AECM from WebRTC)
|
|
include $(linphone-root-dir)/submodules/mswebrtc/build/android/system_wrappers/Android.mk
|
|
include $(linphone-root-dir)/submodules/mswebrtc/build/android/modules/audio_processing/utility/Android.mk
|
|
include $(linphone-root-dir)/submodules/mswebrtc/build/android/modules/audio_processing/aecm/Android.mk
|
|
endif
|
|
|
|
# iSAC
|
|
ifneq ($(BUILD_WEBRTC_ISAC),0)
|
|
# don't build for neon in x86
|
|
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
|
|
$(info $(TARGET_ARCH_ABI): Build NEON modules for ISAC)
|
|
WEBRTC_BUILD_NEON_LIBS=true
|
|
endif
|
|
|
|
$(info $(TARGET_ARCH_ABI): Build iSAC and ilbc plugin for mediastreamer2)
|
|
include $(linphone-root-dir)/submodules/mswebrtc/build/android/modules/audio_coding/codecs/isac/fix/source/Android.mk
|
|
include $(linphone-root-dir)/submodules/mswebrtc/build/android/modules/audio_coding/codecs/ilbc/Android.mk
|
|
endif
|
|
|
|
# common modules for ISAC and AECM
|
|
ifneq ($(BUILD_WEBRTC_AECM)$(BUILD_WEBRTC_ISAC)$(BUILD_ILBC),000)
|
|
$(info $(TARGET_ARCH_ABI): Build common modules for iSAC, ilbc and AECM ($(BUILD_WEBRTC_AECM)$(BUILD_WEBRTC_ISAC)))
|
|
include $(linphone-root-dir)/submodules/mswebrtc/build/android/common_audio/signal_processing/Android.mk
|
|
include $(linphone-root-dir)/submodules/mswebrtc/Android.mk
|
|
endif
|