summaryrefslogtreecommitdiff
path: root/src/deps/rtaudio-mod/rtaudio-config
blob: dbd3a392e3cf666a8a772cdc67532065ab61f6b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh
if (test "x$#" != "x1") ; then
  echo "Usage: $0 [--libs | --cxxflags | --cppflags]"
  exit;
fi

LIBRARY="-lpthread -lasound -lasound -ljack  -lpulse-simple -lpulse "
CXXFLAGS="-O2 -Wall -Wextra"
CPPFLAGS="  -DHAVE_GETTIMEOFDAY  -D__UNIX_JACK__ -D__LINUX_ALSA__ -D__LINUX_PULSE__"

if (test "x$1" = "x--libs") ; then
  echo "$LIBRARY -lrtaudio"
elif (test "x$1" = "x--cxxflags") ; then
  echo "$CXXFLAGS"
elif (test "x$1" = "x--cppflags") ; then
  echo "$CPPFLAGS"
else
  echo "Unknown option: $1"
fi