mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Fix macos build script
This commit is contained in:
26
build-macos
26
build-macos
@@ -86,8 +86,8 @@ for arch in ${architectures}; do
|
||||
# prefer to compile against our own copy of SDL 1.x
|
||||
echo "Compiling our internal SDL 1.x"
|
||||
(cd vs/sdl && ./build-dosbox.sh) || exit 1
|
||||
new=" -I$top/vs/sdl/linux-host/include"
|
||||
nld=" -L$top/vs/sdl/linux-host/lib"
|
||||
new="-I${top}/vs/sdl/linux-host/include "
|
||||
nld="-L${top}/vs/sdl/linux-host/lib "
|
||||
CFLAGS="${CFLAGS}${new}"
|
||||
LDFLAGS="${LDFLAGS}${nld}"
|
||||
CPPFLAGS="${CPPFLAGS}${new}"
|
||||
@@ -101,8 +101,8 @@ for arch in ${architectures}; do
|
||||
# prefer to compile against our own zlib
|
||||
echo "Compiling our internal zlib"
|
||||
(cd vs/zlib && ./build-dosbox.sh) || exit 1
|
||||
new=" -I$top/vs/zlib/linux-host/include"
|
||||
nld=" -L$top/vs/zlib/linux-host/lib"
|
||||
new="-I${top}/vs/zlib/linux-host/include "
|
||||
nld="-L${top}/vs/zlib/linux-host/lib "
|
||||
CFLAGS="${CFLAGS}${new}"
|
||||
LDFLAGS="${LDFLAGS}${nld}"
|
||||
CPPFLAGS="${CPPFLAGS}${new}"
|
||||
@@ -112,8 +112,8 @@ for arch in ${architectures}; do
|
||||
# prefer to compile against our own libpng (comment this out to disable)
|
||||
echo "Compiling our internal libpng"
|
||||
(cd vs/libpng && ./build-dosbox.sh) || exit 1
|
||||
new=" -I$top/vs/libpng/linux-host/include"
|
||||
nld=" -L$top/vs/libpng/linux-host/lib"
|
||||
new="-I${top}/vs/libpng/linux-host/include "
|
||||
nld="-L${top}/vs/libpng/linux-host/lib "
|
||||
CFLAGS="${CFLAGS}${new}"
|
||||
LDFLAGS="${LDFLAGS}${nld}"
|
||||
CPPFLAGS="${CPPFLAGS}${new}"
|
||||
@@ -121,10 +121,10 @@ for arch in ${architectures}; do
|
||||
export CFLAGS LDFLAGS CPPFLAGS CXXFLAGS
|
||||
|
||||
# prefer to compile against our own freetype
|
||||
echo Compiling our internal freetype
|
||||
echo "Compiling our internal freetype"
|
||||
(cd vs/freetype && ./build-dosbox.sh) || exit 1
|
||||
new=" -I$top/vs/freetype/linux-host/include/freetype2"
|
||||
nld=" -L$top/vs/freetype/linux-host/lib -lfreetype"
|
||||
new="-I${top}/vs/freetype/linux-host/include/freetype2 "
|
||||
nld="-L${top}/vs/freetype/linux-host/lib -lfreetype "
|
||||
CFLAGS="${CFLAGS}${new}"
|
||||
LDFLAGS="${LDFLAGS}${nld}"
|
||||
CPPFLAGS="${CPPFLAGS}${new}"
|
||||
@@ -137,13 +137,13 @@ for arch in ${architectures}; do
|
||||
# if Brew has installed packages, try to use those too
|
||||
if [ -n "${!brew_cmd}" ]; then
|
||||
echo "Brew is installed, I'm going to use it's libraries too"
|
||||
new=" -I$(${!brew_cmd} --prefix)/include"
|
||||
nld=" -L$(${!brew_cmd} --prefix)/lib"
|
||||
new="-I$(${!brew_cmd} --prefix)/include "
|
||||
nld="-L$(${!brew_cmd} --prefix)/lib "
|
||||
CFLAGS="${CFLAGS}${new}"
|
||||
LDFLAGS="${LDFLAGS}${nld}"
|
||||
CPPFLAGS="${CPPFLAGS}${new}"
|
||||
CXXFLAGS="${CXXFLAGS}${new}"
|
||||
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(${!brew_cmd} --prefix)/lib/pkgconfig"
|
||||
PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:$(${!brew_cmd} --prefix)/lib/pkgconfig"
|
||||
export CFLAGS LDFLAGS CPPFLAGS CXXFLAGS PKG_CONFIG_PATH
|
||||
fi
|
||||
|
||||
@@ -158,4 +158,4 @@ for arch in ${architectures}; do
|
||||
make -j3 || exit 1
|
||||
|
||||
cp src/dosbox-x "src/dosbox-x-${arch}"
|
||||
done
|
||||
done
|
||||
|
Reference in New Issue
Block a user