git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2501 74dad513-b988-da41-8d7b-12977e46ad98
110 lines
2.5 KiB
Makefile
110 lines
2.5 KiB
Makefile
# @configure_input@
|
|
|
|
# PJMEDIA features exclusion
|
|
export CFLAGS += @ac_no_small_filter@ @ac_no_large_filter@ @ac_no_speex_aec@
|
|
|
|
# Define the desired sound device backend
|
|
# Valid values are:
|
|
# - pa_unix: PortAudio on Unix (OSS or ALSA)
|
|
# - pa_darwinos: PortAudio on MacOSX (CoreAudio)
|
|
# - pa_old_darwinos: PortAudio on MacOSX (old CoreAudio, for OSX 10.2)
|
|
# - pa_win32: PortAudio on Win32 (WMME)
|
|
# - ds: Win32 DirectSound (dsound.c)
|
|
# - null: Null sound device (nullsound.c)
|
|
# - external: Link with no sounddev (app will provide)
|
|
AC_PJMEDIA_SND=@ac_pjmedia_snd@
|
|
|
|
# For Unix, specify if ALSA should be supported
|
|
AC_PA_USE_ALSA=@ac_pa_use_alsa@
|
|
|
|
# Additional PortAudio CFLAGS are in @ac_pa_cflags@
|
|
|
|
#
|
|
# Codecs
|
|
#
|
|
AC_NO_G711_CODEC=@ac_no_g711_codec@
|
|
AC_NO_L16_CODEC=@ac_no_l16_codec@
|
|
AC_NO_GSM_CODEC=@ac_no_gsm_codec@
|
|
AC_NO_SPEEX_CODEC=@ac_no_speex_codec@
|
|
AC_NO_ILBC_CODEC=@ac_no_ilbc_codec@
|
|
AC_NO_G722_CODEC=@ac_no_g722_codec@
|
|
|
|
export CODEC_OBJS=
|
|
|
|
ifeq ($(AC_NO_G711_CODEC),1)
|
|
export CFLAGS += -DPJMEDIA_HAS_G711_CODEC=0
|
|
else
|
|
export CODEC_OBJS +=
|
|
endif
|
|
|
|
ifeq ($(AC_NO_L16_CODEC),1)
|
|
export CFLAGS += -DPJMEDIA_HAS_L16_CODEC=0
|
|
else
|
|
export CODEC_OBJS += l16.o
|
|
endif
|
|
|
|
ifeq ($(AC_NO_GSM_CODEC),1)
|
|
export CFLAGS += -DPJMEDIA_HAS_GSM_CODEC=0
|
|
else
|
|
export CODEC_OBJS += gsm.o
|
|
endif
|
|
|
|
ifeq ($(AC_NO_SPEEX_CODEC),1)
|
|
export CFLAGS += -DPJMEDIA_HAS_SPEEX_CODEC=0
|
|
else
|
|
export CFLAGS += -I$(THIRD_PARTY)/build/speex -I$(THIRD_PARTY)/speex/include
|
|
export CODEC_OBJS += speex_codec.o
|
|
|
|
ifneq (@ac_no_speex_aec@,1)
|
|
export PJMEDIA_OBJS += echo_speex.o
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(AC_NO_ILBC_CODEC),1)
|
|
export CFLAGS += -DPJMEDIA_HAS_ILBC_CODEC=0
|
|
else
|
|
export CODEC_OBJS += ilbc.o
|
|
endif
|
|
|
|
ifeq ($(AC_NO_G722_CODEC),1)
|
|
export CFLAGS += -DPJMEDIA_HAS_G722_CODEC=0
|
|
else
|
|
export CODEC_OBJS += g722.o g722/g722_enc.o g722/g722_dec.o
|
|
endif
|
|
|
|
|
|
#
|
|
# PortAudio
|
|
#
|
|
ifneq ($(findstring pa,$(AC_PJMEDIA_SND)),)
|
|
export CFLAGS += -I$(THIRD_PARTY)/build/portaudio -I$(THIRD_PARTY)/portaudio/include -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=1
|
|
endif
|
|
|
|
#
|
|
# Windows specific
|
|
#
|
|
ifneq ($(findstring win32,$(AC_PJMEDIA_SND)),)
|
|
export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_WMME=1
|
|
else
|
|
export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_WMME=0
|
|
endif
|
|
|
|
#
|
|
# Null sound device
|
|
#
|
|
ifeq ($(AC_PJMEDIA_SND),null)
|
|
# ***** Error ******
|
|
# This will not work either with the new Audiodev
|
|
export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_NULL_SOUND
|
|
endif
|
|
|
|
#
|
|
# External sound device
|
|
#
|
|
ifeq ($(AC_PJMEDIA_SND),external)
|
|
export CFLAGS += -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0
|
|
endif
|
|
|
|
|