summaryrefslogtreecommitdiff
path: root/third_party/build/portaudio/os-linux.mak
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/build/portaudio/os-linux.mak
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/build/portaudio/os-linux.mak')
-rw-r--r--third_party/build/portaudio/os-linux.mak34
1 files changed, 34 insertions, 0 deletions
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
+