automake mod_portaudio and mod_portaudio_stream

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15820 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-12-07 09:00:05 +00:00
parent 4d72cd6ba0
commit 59472c23ef
5 changed files with 53 additions and 43 deletions

View File

@ -792,7 +792,9 @@ AC_CONFIG_FILES([Makefile
src/mod/applications/mod_stress/Makefile
src/mod/applications/mod_t38gateway/Makefile
src/mod/endpoints/mod_iax/Makefile
src/mod/endpoints/mod_portaudio/Makefile
src/mod/endpoints/mod_sofia/Makefile
src/mod/formats/mod_portaudio_stream/Makefile
src/mod/asr_tts/mod_unimrcp/Makefile
src/mod/languages/mod_java/Makefile
src/mod/languages/mod_python/Makefile

View File

@ -1,20 +0,0 @@
BASE=../../../..
PA_DIR=$(BASE)/libs/portaudio
PALA=$(PA_DIR)/lib/libportaudio.la
LOCAL_CFLAGS=-I. -I$(PA_DIR)/include -D__EXTENSION__=1
LOCAL_INSERT_LDFLAGS=if test $$osarch = "Darwin" ; then echo "-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon" ; fi ;
LOCAL_LIBADD=$(PALA)
LOCAL_OBJS=pablio.o pa_ringbuffer.o
LOCAL_SOURCES=pablio.c pa_ringbuffer.c
include $(BASE)/build/modmake.rules
$(PALA): $(PA_DIR) $(PA_DIR)/.update
cd $(PA_DIR) && $(MAKE)
$(TOUCH_TARGET)
$(LOCAL_OBJS): $(LOCAL_SOURCES)

View File

@ -0,0 +1,25 @@
include $(top_srcdir)/build/modmake.rulesam
MODNAME=mod_portaudio
PA_DIR=$(switch_srcdir)/libs/portaudio
PALA=$(switch_builddir)/libs/portaudio/lib/libportaudio.la
mod_LTLIBRARIES = mod_portaudio.la
mod_portaudio_la_SOURCES = mod_portaudio.c pablio.c pa_ringbuffer.c
mod_portaudio_la_CFLAGS = $(AM_CFLAGS)
mod_portaudio_la_CFLAGS += -I. -I$(PA_DIR)/include -D__EXTENSION__=1
mod_portaudio_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(PALA)
mod_portaudio_la_LDFLAGS = -avoid-version -module -no-undefined
if ISMAC
mod_portaudio_la_LDFLAGS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
endif
BUILT_SOURCES = $(PALA)
$(mod_portaudio_la_SOURCES) : $(BUILT_SOURCES)
$(PALA): $(PA_DIR) $(PA_DIR)/.update
cd $(switch_builddir)/libs/portaudio && $(MAKE) PORTAUDIO_CFLAGS="$(SWITCH_AM_CFLAGS)"
$(TOUCH_TARGET)

View File

@ -1,23 +0,0 @@
BASE=../../../..
BASE=../../../..
PA_DIR=$(BASE)/libs/portaudio
MODPA_DIR=$(BASE)/src/mod/endpoints/mod_portaudio
PALA=$(PA_DIR)/lib/libportaudio.la
LOCAL_CFLAGS=-I. -I$(PA_DIR)/include -I$(MODPA_DIR) -D__EXTENSION__=1
LOCAL_INSERT_LDFLAGS=if test $$osarch = "Darwin" ; then echo "-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon" ; fi ;
LOCAL_LIBADD=$(PALA)
LOCAL_OBJS=$(MODPA_DIR)/pablio.o $(MODPA_DIR)/pa_ringbuffer.o
LOCAL_SOURCES=$(MODPA_DIR)/pablio.c $(MODPA_DIR)/pa_ringbuffer.c
include $(BASE)/build/modmake.rules
$(PALA): $(PA_DIR) $(PA_DIR)/.update
cd $(PA_DIR) && $(MAKE)
$(TOUCH_TARGET)
$(LOCAL_OBJS): $(LOCAL_SOURCES)

View File

@ -0,0 +1,26 @@
include $(top_srcdir)/build/modmake.rulesam
MODNAME=mod_portaudio_stream
PA_DIR=$(switch_srcdir)/libs/portaudio
PALA=$(switch_builddir)/libs/portaudio/lib/libportaudio.la
MODPA_DIR=$(switch_srcdir)/src/mod/endpoints/mod_portaudio
mod_LTLIBRARIES = mod_portaudio_stream.la
mod_portaudio_stream_la_SOURCES = mod_portaudio_stream.c $(MODPA_DIR)/pablio.c $(MODPA_DIR)/pa_ringbuffer.c
mod_portaudio_stream_la_CFLAGS = $(AM_CFLAGS)
mod_portaudio_stream_la_CFLAGS += -I. -I$(PA_DIR)/include -D__EXTENSION__=1 -I$(MODPA_DIR)
mod_portaudio_stream_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(PALA)
mod_portaudio_stream_la_LDFLAGS = -avoid-version -module -no-undefined
if ISMAC
mod_portaudio_stream_la_LDFLAGS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
endif
BUILT_SOURCES = $(PALA)
$(mod_portaudio_stream_la_SOURCES) : $(BUILT_SOURCES)
$(PALA): $(PA_DIR) $(PA_DIR)/.update
cd $(switch_builddir)/libs/portaudio && $(MAKE) PORTAUDIO_CFLAGS="$(SWITCH_AM_CFLAGS)"
$(TOUCH_TARGET)