summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-18 09:24:31 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-18 09:24:31 +0000
commit44d9c946fc77600985b869552887497c2a539d5c (patch)
tree555aa1d81fdf55d344f06c0fc5f609fe1c8ea31e /third_party
parent05faf09b3f03f8b704e00c1ee533fa2534682109 (diff)
Fixed the legacy build system
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1202 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/Makefile49
-rw-r--r--third_party/Makefile.in49
-rw-r--r--third_party/build/Makefile12
-rw-r--r--third_party/build/os-auto.mak.in17
-rw-r--r--third_party/build/os-darwinos.mak7
-rw-r--r--third_party/build/os-linux.mak7
-rw-r--r--third_party/build/os-win32.mak7
-rw-r--r--third_party/build/portaudio/Makefile69
-rw-r--r--third_party/build/portaudio/Makefile.in141
-rw-r--r--third_party/build/portaudio/os-auto.mak.in73
-rw-r--r--third_party/build/portaudio/os-linux.mak34
11 files changed, 226 insertions, 239 deletions
diff --git a/third_party/Makefile b/third_party/Makefile
deleted file mode 100644
index 6a43479c..00000000
--- a/third_party/Makefile
+++ /dev/null
@@ -1,49 +0,0 @@
-include ../build.mak
-include $(PJDIR)/build/host-$(HOST_NAME).mak
-
-DIRS = build/resample
-
-ifeq (,1)
-else
-DIRS += build/gsm
-endif
-
-ifeq (,1)
-else
-DIRS += build/ilbc
-endif
-
-ifeq (,1)
-else
-DIRS += build/speex
-endif
-
-ifeq (pa_unix,pa_old_darwinos)
-DIRS += build/portaudio
-endif
-
-ifeq (pa_unix,pa_darwinos)
-DIRS += build/portaudio
-endif
-
-ifeq (pa_unix,pa_win32)
-DIRS += build/portaudio
-endif
-
-ifeq (pa_unix,pa_unix)
-DIRS += build/portaudio
-endif
-
-
-
-all clean dep depend distclean realclean:
- for dir in $(DIRS); do \
- if [ -d $$dir ]; then \
- if $(MAKE) $(MAKE_FLAGS) -C $$dir $@; then \
- true; \
- else \
- exit 1; \
- fi; \
- fi; \
- done
-
diff --git a/third_party/Makefile.in b/third_party/Makefile.in
deleted file mode 100644
index 43c646d4..00000000
--- a/third_party/Makefile.in
+++ /dev/null
@@ -1,49 +0,0 @@
-include ../build.mak
-include $(PJDIR)/build/host-$(HOST_NAME).mak
-
-DIRS = build/resample
-
-ifeq (@ac_no_gsm_codec@,1)
-else
-DIRS += build/gsm
-endif
-
-ifeq (@ac_no_ilbc_codec@,1)
-else
-DIRS += build/ilbc
-endif
-
-ifeq (@ac_no_speex_codec@,1)
-else
-DIRS += build/speex
-endif
-
-ifeq (@ac_pjmedia_snd@,pa_old_darwinos)
-DIRS += build/portaudio
-endif
-
-ifeq (@ac_pjmedia_snd@,pa_darwinos)
-DIRS += build/portaudio
-endif
-
-ifeq (@ac_pjmedia_snd@,pa_win32)
-DIRS += build/portaudio
-endif
-
-ifeq (@ac_pjmedia_snd@,pa_unix)
-DIRS += build/portaudio
-endif
-
-
-
-all clean dep depend distclean realclean:
- for dir in $(DIRS); do \
- if [ -d $$dir ]; then \
- if $(MAKE) $(MAKE_FLAGS) -C $$dir $@; then \
- true; \
- else \
- exit 1; \
- fi; \
- fi; \
- done
-
diff --git a/third_party/build/Makefile b/third_party/build/Makefile
new file mode 100644
index 00000000..204adcf5
--- /dev/null
+++ b/third_party/build/Makefile
@@ -0,0 +1,12 @@
+include ../../build.mak
+include $(PJDIR)/build/common.mak
+
+all clean dep depend distclean realclean:
+ for dir in $(DIRS); do \
+ if $(MAKE) $(MAKE_FLAGS) -C $$dir $@; then \
+ true; \
+ else \
+ exit 1; \
+ fi; \
+ done
+
diff --git a/third_party/build/os-auto.mak.in b/third_party/build/os-auto.mak.in
new file mode 100644
index 00000000..82c90e3b
--- /dev/null
+++ b/third_party/build/os-auto.mak.in
@@ -0,0 +1,17 @@
+DIRS = resample
+
+ifneq (@ac_no_gsm_codec@,1)
+DIRS += gsm
+endif
+
+ifneq (@ac_no_ilbc_codec@,1)
+DIRS += ilbc
+endif
+
+ifneq (@ac_no_speex_codec@,1)
+DIRS += speex
+endif
+
+ifneq ($(findstring pa,@ac_pjmedia_snd@),)
+DIRS += portaudio
+endif
diff --git a/third_party/build/os-darwinos.mak b/third_party/build/os-darwinos.mak
new file mode 100644
index 00000000..2e7dfe06
--- /dev/null
+++ b/third_party/build/os-darwinos.mak
@@ -0,0 +1,7 @@
+DIRS = resample
+DIRS += gsm
+DIRS += ilbc
+DIRS += speex
+DIRS += portaudio
+
+
diff --git a/third_party/build/os-linux.mak b/third_party/build/os-linux.mak
new file mode 100644
index 00000000..2e7dfe06
--- /dev/null
+++ b/third_party/build/os-linux.mak
@@ -0,0 +1,7 @@
+DIRS = resample
+DIRS += gsm
+DIRS += ilbc
+DIRS += speex
+DIRS += portaudio
+
+
diff --git a/third_party/build/os-win32.mak b/third_party/build/os-win32.mak
new file mode 100644
index 00000000..2e7dfe06
--- /dev/null
+++ b/third_party/build/os-win32.mak
@@ -0,0 +1,7 @@
+DIRS = resample
+DIRS += gsm
+DIRS += ilbc
+DIRS += speex
+DIRS += portaudio
+
+
diff --git a/third_party/build/portaudio/Makefile b/third_party/build/portaudio/Makefile
new file mode 100644
index 00000000..e1cfa654
--- /dev/null
+++ b/third_party/build/portaudio/Makefile
@@ -0,0 +1,69 @@
+# @configure_input@
+include ../../../build.mak
+include $(PJDIR)/build/common.mak
+
+export LIBDIR := ../../lib
+
+RULES_MAK := $(PJDIR)/build/rules.mak
+
+export PORTAUDIO_LIB:=../../lib/libportaudio-$(TARGET_NAME)$(LIBEXT)
+
+PORTAUDIO_OBJS += pa_allocation.o \
+ pa_converters.o \
+ pa_cpuload.o \
+ pa_dither.o \
+ pa_debugprint.o \
+ pa_front.o \
+ pa_process.o \
+ pa_skeleton.o \
+ pa_stream.o \
+ pa_trace.o
+
+
+###############################################################################
+# Gather all flags.
+#
+export _CFLAGS += $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \
+ $(CFLAGS) $(CC_INC). $(CC_INC)src
+export _CXXFLAGS+= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \
+ $(HOST_CXXFLAGS) $(CXXFLAGS)
+export _LDFLAGS += $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \
+ $(LDFLAGS)
+
+###############################################################################
+# Defines for building PORTAUDIO library
+#
+export PORTAUDIO_SRCDIR = src
+export PORTAUDIO_OBJS +=
+export PORTAUDIO_CFLAGS += $(_CFLAGS)
+
+export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
+###############################################################################
+# Main entry
+#
+# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory.
+#
+TARGETS := libportaudio
+
+all: $(TARGETS)
+
+dep: depend
+distclean: realclean
+
+.PHONY: dep depend libportaudio clean realclean distclean
+
+libportaudio:
+ $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $(PORTAUDIO_LIB)
+
+clean:
+ $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@
+
+realclean:
+ $(subst @@,$(subst /,$(HOST_PSEP),.libportaudio-$(TARGET_NAME).depend),$(HOST_RMR))
+
+ $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@
+
+depend:
+ $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@
+ echo '$(PORTAUDIO_LIB): .libportaudio-$(TARGET_NAME).depend' >> .libportaudio-$(TARGET_NAME).depend; \
+
diff --git a/third_party/build/portaudio/Makefile.in b/third_party/build/portaudio/Makefile.in
deleted file mode 100644
index 223e4843..00000000
--- a/third_party/build/portaudio/Makefile.in
+++ /dev/null
@@ -1,141 +0,0 @@
-# @configure_input@
-include ../../../build.mak
-include $(PJDIR)/build/common.mak
-
-export LIBDIR := ../../lib
-
-RULES_MAK := $(PJDIR)/build/rules.mak
-
-export PORTAUDIO_LIB:=../../lib/libportaudio-$(TARGET_NAME)$(LIBEXT)
-
-PORTAUDIO_OBJS := pa_allocation.o \
- pa_converters.o \
- pa_cpuload.o \
- pa_dither.o \
- pa_front.o \
- pa_process.o \
- pa_skeleton.o \
- pa_stream.o \
- pa_trace.o
-
-
-# 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)
-#
-# There are other values below, but these are handled by PJMEDIA's Makefile
-# - ds: Win32 DirectSound (dsound.c)
-# - null: Null sound device (nullsound.c)
-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@
-
-
-#
-# PortAudio on Unix
-#
-ifeq ($(AC_PJMEDIA_SND),pa_unix)
-# Host APIs and utils
-export PORTAUDIO_OBJS += pa_unix_hostapis.o pa_unix_util.o
-
-# Include ALSA?
-ifeq ($(AC_PA_USE_ALSA),1)
-export CFLAGS += -DPA_USE_ALSA=1
-export PORTAUDIO_OBJS += pa_linux_alsa.o
-endif
-
-export CFLAGS += -DPA_USE_OSS=1
-export CFLAGS += @ac_pa_cflags@
-export PORTAUDIO_OBJS += pa_unix_oss.o
-endif
-
-
-#
-# PortAudio on MacOS X (using current PortAudio)
-#
-ifeq ($(AC_PJMEDIA_SND),pa_darwinos)
-export PORTAUDIO_OBJS +=pa_mac_hostapis.o \
- pa_unix_util.o \
- pa_mac_core.o \
- pa_mac_core_blocking.o \
- pa_mac_core_utilities.o \
- pa_ringbuffer.o
-export CFLAGS += -DPA_USE_COREAUDIO=1
-export CFLAGS += @ac_pa_cflags@
-endif
-
-#
-# PortAudio on MacOS X (using old PortAudio, for MacOS X 10.2.x)
-#
-ifeq ($(AC_PJMEDIA_SND),pa_old_darwinos)
-export PORTAUDIO_OBJS +=pa_mac_hostapis.o \
- pa_unix_util.o \
- pa_mac_core_old.o
-export CFLAGS += -DPA_USE_COREAUDIO=1
-export CFLAGS += @ac_pa_cflags@
-endif
-
-#
-#
-# PortAudio on Win32 (WMME)
-#
-ifeq ($(AC_PJMEDIA_SND),pa_win32)
-export PORTAUDIO_OBJS += pa_win_hostapis.o pa_win_util.o \
- pa_win_wmme.o
-export CFLAGS += -DPA_NO_ASIO -DPA_NO_DS
-endif
-
-
-###############################################################################
-# Gather all flags.
-#
-export _CFLAGS := $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \
- $(CFLAGS) $(CC_INC). $(CC_INC)src
-export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \
- $(HOST_CXXFLAGS) $(CXXFLAGS)
-export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \
- $(LDFLAGS)
-
-###############################################################################
-# Defines for building PORTAUDIO library
-#
-export PORTAUDIO_SRCDIR = src
-export PORTAUDIO_OBJS +=
-export PORTAUDIO_CFLAGS += $(_CFLAGS)
-
-export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
-###############################################################################
-# Main entry
-#
-# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory.
-#
-TARGETS := libportaudio
-
-all: $(TARGETS)
-
-dep: depend
-distclean: realclean
-
-.PHONY: dep depend libportaudio clean realclean distclean
-
-libportaudio:
- $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $(PORTAUDIO_LIB)
-
-clean:
- $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@
-
-realclean:
- $(subst @@,$(subst /,$(HOST_PSEP),.libportaudio-$(TARGET_NAME).depend),$(HOST_RMR))
-
- $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@
-
-depend:
- $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@
- echo '$(PORTAUDIO_LIB): .libportaudio-$(TARGET_NAME).depend' >> .libportaudio-$(TARGET_NAME).depend; \
-
diff --git a/third_party/build/portaudio/os-auto.mak.in b/third_party/build/portaudio/os-auto.mak.in
new file mode 100644
index 00000000..288c3f50
--- /dev/null
+++ b/third_party/build/portaudio/os-auto.mak.in
@@ -0,0 +1,73 @@
+# @configure_input@
+
+# 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)
+#
+# There are other values below, but these are handled by PJMEDIA's Makefile
+# - ds: Win32 DirectSound (dsound.c)
+# - null: Null sound device (nullsound.c)
+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@
+
+
+#
+# PortAudio on Unix
+#
+ifeq ($(AC_PJMEDIA_SND),pa_unix)
+# Host APIs and utils
+export PORTAUDIO_OBJS += pa_unix_hostapis.o pa_unix_util.o
+
+# Include ALSA?
+ifeq ($(AC_PA_USE_ALSA),1)
+export CFLAGS += -DPA_USE_ALSA=1
+export PORTAUDIO_OBJS += pa_linux_alsa.o
+endif
+
+export CFLAGS += -DPA_USE_OSS=1
+export CFLAGS += @ac_pa_cflags@
+export PORTAUDIO_OBJS += pa_unix_oss.o
+endif
+
+
+#
+# PortAudio on MacOS X (using current PortAudio)
+#
+ifeq ($(AC_PJMEDIA_SND),pa_darwinos)
+export PORTAUDIO_OBJS +=pa_mac_hostapis.o \
+ pa_unix_util.o \
+ pa_mac_core.o \
+ pa_mac_core_blocking.o \
+ pa_mac_core_utilities.o \
+ pa_ringbuffer.o
+export CFLAGS += -DPA_USE_COREAUDIO=1
+export CFLAGS += @ac_pa_cflags@
+endif
+
+#
+# PortAudio on MacOS X (using old PortAudio, for MacOS X 10.2.x)
+#
+ifeq ($(AC_PJMEDIA_SND),pa_old_darwinos)
+export PORTAUDIO_OBJS +=pa_mac_hostapis.o \
+ pa_unix_util.o \
+ pa_mac_core_old.o
+export CFLAGS += -DPA_USE_COREAUDIO=1
+export CFLAGS += @ac_pa_cflags@
+endif
+
+#
+#
+# PortAudio on Win32 (WMME)
+#
+ifeq ($(AC_PJMEDIA_SND),pa_win32)
+export PORTAUDIO_OBJS += pa_win_hostapis.o pa_win_util.o \
+ pa_win_wmme.o
+export CFLAGS += -DPA_NO_ASIO -DPA_NO_DS
+endif
diff --git a/third_party/build/portaudio/os-linux.mak b/third_party/build/portaudio/os-linux.mak
new file mode 100644
index 00000000..508948d3
--- /dev/null
+++ b/third_party/build/portaudio/os-linux.mak
@@ -0,0 +1,34 @@
+# @configure_input@
+
+# 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)
+#
+# There are other values below, but these are handled by PJMEDIA's Makefile
+# - ds: Win32 DirectSound (dsound.c)
+# - null: Null sound device (nullsound.c)
+AC_PJMEDIA_SND=pa_unix
+
+# For Unix, specify if ALSA should be supported
+AC_PA_USE_ALSA=0
+
+#
+# PortAudio on Unix
+#
+ifeq ($(AC_PJMEDIA_SND),pa_unix)
+# Host APIs and utils
+export PORTAUDIO_OBJS += pa_unix_hostapis.o pa_unix_util.o
+
+# Include ALSA?
+ifeq ($(AC_PA_USE_ALSA),1)
+export CFLAGS += -DPA_USE_ALSA=1
+export PORTAUDIO_OBJS += pa_linux_alsa.o
+endif
+
+export CFLAGS += -DPA_USE_OSS=1 -DHAVE_SYS_SOUNDCARD_H
+export PORTAUDIO_OBJS += pa_unix_oss.o
+endif
+