Custom AU discovery code
[carla.git] / data / linux / build64.sh
blob3027ee4825dfc1c1baee2451f480d80081058f15
1 #!/bin/bash
3 # ---------------------------------------------------------------------------------------------------------------------
4 # stop on error
6 set -e
8 # ---------------------------------------------------------------------------------------------------------------------
9 # cd to correct path
11 if [ ! -f Makefile ]; then
12 cd $(dirname $0)/../..
15 # ---------------------------------------------------------------------------------------------------------------------
16 # set variables
18 source data/linux/common.env
20 MAKE_ARGS="${MAKE_ARGS} HAVE_FFMPEG=false HAVE_PULSEAUDIO=false EXTERNAL_PLUGINS=false"
22 export LINUX="true"
23 export CC=gcc
24 export CXX=g++
26 unset CPPFLAGS
28 # ---------------------------------------------------------------------------------------------------------------------
29 # Complete 64bit build
31 export CFLAGS="-I${TARGETDIR}/carla64/include -m64"
32 export CXXFLAGS=${CFLAGS}
33 export LDFLAGS="-L${TARGETDIR}/carla64/lib -m64"
34 export PKG_CONFIG_PATH=${TARGETDIR}/carla64/lib/pkgconfig
36 make ${MAKE_ARGS}
38 # ---------------------------------------------------------------------------------------------------------------------
39 # Build 32bit bridges
41 export CFLAGS="-I${TARGETDIR}/carla32/include -m32"
42 export CXXFLAGS=${CFLAGS}
43 export LDFLAGS="-L${TARGETDIR}/carla32/lib -m32"
44 export PKG_CONFIG_PATH=${TARGETDIR}/carla32/lib/pkgconfig
46 make posix32 ${MAKE_ARGS}
48 # ---------------------------------------------------------------------------------------------------------------------