mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 13:21:05 +00:00
update build script with zmusic support
This commit is contained in:
parent
ce3483944f
commit
efe2929821
1 changed files with 25 additions and 30 deletions
25
build.sh
25
build.sh
|
@ -18,15 +18,15 @@ if [ ! -e build ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OPENAL_DIR=${DEPS_DIR}openal/
|
OPENAL_DIR=${DEPS_DIR}openal/
|
||||||
MPG123_DIR=${DEPS_DIR}mpg123/
|
ZMUSIC_DIR=${DEPS_DIR}zmusic/
|
||||||
SNDFILE_DIR=${DEPS_DIR}sndfile/
|
OPENAL_DIR=${DEPS_DIR}openal/
|
||||||
FSYNTH_DIR=${DEPS_DIR}fluidsynth/
|
|
||||||
FSYNTH_LIB_PREFIX=${FSYNTH_DIR}lib/lib
|
|
||||||
FSYNTH_LIBS=${FSYNTH_LIB_PREFIX}fluidsynth.a\;${FSYNTH_LIB_PREFIX}glib-2.0.a\;${FSYNTH_LIB_PREFIX}intl.a
|
|
||||||
JPEG_DIR=${DEPS_DIR}jpeg/
|
JPEG_DIR=${DEPS_DIR}jpeg/
|
||||||
OTHER_LIBS=-liconv\ -L${DEPS_DIR}ogg/lib\ -logg\ -L${DEPS_DIR}vorbis/lib\ -lvorbis\ -lvorbisenc\ -L${DEPS_DIR}flac/lib\ -lFLAC
|
SDL_DIR=${DEPS_DIR}sdl/
|
||||||
FRAMEWORKS=-framework\ AudioUnit\ -framework\ AudioToolbox\ -framework\ CoreAudio\ -framework\ CoreMIDI
|
FLUIDSYNTH_LIBS=${DEPS_DIR}fluidsynth/lib/libfluidsynth.a\ ${DEPS_DIR}fluidsynth/lib/libglib-2.0.a\ ${DEPS_DIR}fluidsynth/lib/libintl.a
|
||||||
LINKER_FLAGS=${OTHER_LIBS}\ ${FRAMEWORKS}
|
SNDFILE_LIBS=${DEPS_DIR}ogg/lib/libogg.a\ ${DEPS_DIR}vorbis/lib/libvorbis.a\ ${DEPS_DIR}vorbis/lib/libvorbisenc.a\ ${DEPS_DIR}flac/lib/libFLAC.a\ ${DEPS_DIR}sndfile/lib/libsndfile.a
|
||||||
|
EXTRA_LIBS=-liconv\ ${DEPS_DIR}mpg123/lib/libmpg123.a\ ${FLUIDSYNTH_LIBS}\ ${SNDFILE_LIBS}
|
||||||
|
FRAMEWORKS=-framework\ AudioUnit\ -framework\ AudioToolbox\ -framework\ Carbon\ -framework\ CoreAudio\ -framework\ CoreMIDI\ -framework\ CoreVideo\ -framework\ ForceFeedback
|
||||||
|
LINKER_FLAGS=${EXTRA_LIBS}\ ${FRAMEWORKS}
|
||||||
|
|
||||||
cd build
|
cd build
|
||||||
export PATH=$PATH:/Applications/CMake.app/Contents/bin
|
export PATH=$PATH:/Applications/CMake.app/Contents/bin
|
||||||
|
@ -41,16 +41,11 @@ cmake \
|
||||||
-DDYN_FLUIDSYNTH=NO \
|
-DDYN_FLUIDSYNTH=NO \
|
||||||
-DFORCE_INTERNAL_ZLIB=YES \
|
-DFORCE_INTERNAL_ZLIB=YES \
|
||||||
-DFORCE_INTERNAL_BZIP2=YES \
|
-DFORCE_INTERNAL_BZIP2=YES \
|
||||||
-DFORCE_INTERNAL_GME=YES \
|
|
||||||
-DPK3_QUIET_ZIPDIR=YES \
|
-DPK3_QUIET_ZIPDIR=YES \
|
||||||
-DOPENAL_INCLUDE_DIR="${OPENAL_DIR}include" \
|
-DOPENAL_INCLUDE_DIR="${OPENAL_DIR}include" \
|
||||||
-DOPENAL_LIBRARY="${OPENAL_DIR}lib/libopenal.a" \
|
-DOPENAL_LIBRARY="${OPENAL_DIR}lib/libopenal.a" \
|
||||||
-DMPG123_INCLUDE_DIR="${MPG123_DIR}include" \
|
-DZMUSIC_INCLUDE_DIR="${ZMUSIC_DIR}include" \
|
||||||
-DMPG123_LIBRARIES="${MPG123_DIR}lib/libmpg123.a" \
|
-DZMUSIC_LIBRARIES="${ZMUSIC_DIR}lib/libzmusic.a" \
|
||||||
-DSNDFILE_INCLUDE_DIR="${SNDFILE_DIR}include" \
|
|
||||||
-DSNDFILE_LIBRARY="${SNDFILE_DIR}lib/libsndfile.a" \
|
|
||||||
-DFLUIDSYNTH_INCLUDE_DIR="${FSYNTH_DIR}include" \
|
|
||||||
-DFLUIDSYNTH_LIBRARIES="${FSYNTH_LIBS}" \
|
|
||||||
-DJPEG_INCLUDE_DIR="${JPEG_DIR}include" \
|
-DJPEG_INCLUDE_DIR="${JPEG_DIR}include" \
|
||||||
-DJPEG_LIBRARY="${JPEG_DIR}lib/libjpeg.a" \
|
-DJPEG_LIBRARY="${JPEG_DIR}lib/libjpeg.a" \
|
||||||
..
|
..
|
||||||
|
|
Loading…
Reference in a new issue