Working on Windows and IIgs build systems.
This commit is contained in:
parent
d5a480cafe
commit
991bf65af6
4 changed files with 394 additions and 93 deletions
185
buildPCDeps.sh
Executable file
185
buildPCDeps.sh
Executable file
|
@ -0,0 +1,185 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
function clearBuild() {
|
||||||
|
if [ -d ${JOEY}/SDL2/build ]; then
|
||||||
|
rm -rf ${JOEY}/SDL2/build
|
||||||
|
fi
|
||||||
|
mkdir -p ${JOEY}/SDL2/build
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function clearInstalled() {
|
||||||
|
if [ -d ${JOEY}/SDL2/installed ]; then
|
||||||
|
rm -rf ${JOEY}/SDL2/installed
|
||||||
|
fi
|
||||||
|
mkdir -p ${JOEY}/SDL2/installed
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function checkFiles() {
|
||||||
|
if [ ! -d SDL ]; then
|
||||||
|
hg clone http://hg.libsdl.org/SDL
|
||||||
|
cd SDL
|
||||||
|
#hg up release-2.0.9
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
if [ ! -d libmodplug ]; then
|
||||||
|
git clone https://github.com/Konstanty/libmodplug.git
|
||||||
|
cd libmodplug
|
||||||
|
libtoolize --force
|
||||||
|
aclocal
|
||||||
|
autoheader
|
||||||
|
automake --force-missing --add-missing
|
||||||
|
autoconf
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
if [ ! -d SDL_mixer ]; then
|
||||||
|
hg clone http://hg.libsdl.org/SDL_mixer
|
||||||
|
cd SDL_mixer
|
||||||
|
#hg up release-2.0.4
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function doBuild() {
|
||||||
|
clearBuild
|
||||||
|
cd build
|
||||||
|
../SDL/configure \
|
||||||
|
--target="${CROSS}" \
|
||||||
|
--host="${CROSS}" \
|
||||||
|
--build=x86_64-linux \
|
||||||
|
--enable-static \
|
||||||
|
--disable-shared \
|
||||||
|
--prefix=${PREFIX}
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
clearBuild
|
||||||
|
cd build
|
||||||
|
../libmodplug/configure \
|
||||||
|
--target="${CROSS}" \
|
||||||
|
--host="${CROSS}" \
|
||||||
|
--build=x86_64-linux \
|
||||||
|
--enable-static \
|
||||||
|
--disable-shared \
|
||||||
|
--prefix=${PREFIX}
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
clearBuild
|
||||||
|
cd build
|
||||||
|
MODPLUG_CFLAGS="-I${PREFIX}/include -DMODPLUG_STATIC" \
|
||||||
|
MODPLUG_LIBS="-L${PREFIX}/lib -lmodplug -lstdc++ -lm" \
|
||||||
|
../SDL_mixer/configure \
|
||||||
|
--target="${CROSS}" \
|
||||||
|
--host="${CROSS}" \
|
||||||
|
--build=x86_64-linux \
|
||||||
|
--enable-static \
|
||||||
|
--disable-shared \
|
||||||
|
--prefix=${PREFIX} \
|
||||||
|
--with-sdl-prefix=${PREFIX} \
|
||||||
|
--disable-music-cmd \
|
||||||
|
--disable-music-wave \
|
||||||
|
--enable-music-mod-modplug \
|
||||||
|
--disable-music-mod-modplug-shared \
|
||||||
|
--disable-music-mod-mikmod \
|
||||||
|
--disable-music-midi \
|
||||||
|
--disable-music-ogg \
|
||||||
|
--disable-music-flac \
|
||||||
|
--disable-music-opus \
|
||||||
|
--disable-music-mp3 \
|
||||||
|
--disable-music-mp3-mpg123
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ..
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ARCH=$1
|
||||||
|
|
||||||
|
if [ "${ARCH}x" == "x" ]; then
|
||||||
|
echo "$0 [arch | \"all\"] | [reset]"
|
||||||
|
echo '(Where "arch" is linux32, linux64, windows32, windows64, macos32, or macos64.)'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
mkdir -p ${JOEY}/SDL2
|
||||||
|
pushd ${JOEY}/SDL2
|
||||||
|
|
||||||
|
checkFiles
|
||||||
|
|
||||||
|
if [ "${ARCH}x" == "resetx" ]; then
|
||||||
|
clearInstalled
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "linux64x" ]; then
|
||||||
|
TARGET=${JOEY}/joeylib/joeylib/lib/linux/x64
|
||||||
|
PREFIX=${JOEY}/SDL2/installed/linux/x64
|
||||||
|
CROSS=x86_64-linux-gnu
|
||||||
|
export CC="${CROSS}-gcc"
|
||||||
|
export CXX="${CROSS}-g++"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "linux32x" ]; then
|
||||||
|
TARGET=${JOEY}/joeylib/joeylib/lib/linux/x86
|
||||||
|
PREFIX=${JOEY}/SDL2/installed/linux/x86
|
||||||
|
CROSS=x86_64-linux-gnu
|
||||||
|
export CC="${CROSS}-gcc -m32"
|
||||||
|
export CXX="${CROSS}-g++ -m32"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "windows64x" ]; then
|
||||||
|
TARGET=${JOEY}/joeylib/joeylib/lib/windows/x64
|
||||||
|
PREFIX=${JOEY}/SDL2/installed/windows/x64
|
||||||
|
CROSS=x86_64-w64-mingw32
|
||||||
|
export CC="${CROSS}-gcc -static-libgcc"
|
||||||
|
export CXX="${CROSS}-g++ -static-libstdc++"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "windows32x" ]; then
|
||||||
|
TARGET=${JOEY}/joeylib/joeylib/lib/windows/x86
|
||||||
|
PREFIX=${JOEY}/SDL2/installed/windows/x86
|
||||||
|
CROSS=i686-w64-mingw32
|
||||||
|
export CC="${CROSS}-gcc -static-libgcc"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "macos64x" ]; then
|
||||||
|
TARGET=${JOEY}/joeylib/joeylib/lib/macos/x64
|
||||||
|
PREFIX=${JOEY}/SDL2/installed/macos/x64
|
||||||
|
CROSS=x86_64-apple-darwin15
|
||||||
|
export CC="o64-clang"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "macos32x" ]; then
|
||||||
|
TARGET=${JOEY}/joeylib/joeylib/lib/macos/x86
|
||||||
|
PREFIX=${JOEY}/SDL2/installed/macos/x86
|
||||||
|
CROSS=i386-apple-darwin15
|
||||||
|
export CC="o32-clang"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
|
#if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "raspbian" ]; then
|
||||||
|
#***FIX***
|
||||||
|
#TARGET=${JOEY}/joeylib/joeylib/pi/raspbian
|
||||||
|
#PREFIX=${JOEY}/SDL2/installed/pi/raspbian
|
||||||
|
#CROSS=arm-linux-gnueabihf
|
||||||
|
#export CC="${CROSS}-gcc -static-libgcc --sysroot=${JOEY}/sdks/pi/raspbian -I${PREFIX}/include -L${PREFIX}/lib"
|
||||||
|
#doBuild
|
||||||
|
#fi
|
||||||
|
|
||||||
|
export CXX=""
|
||||||
|
export CC=""
|
||||||
|
rm -rf build
|
||||||
|
popd
|
||||||
|
set +x
|
||||||
|
|
|
@ -1,57 +1,56 @@
|
||||||
# --- HERE BE DRAGONS ---
|
# --- HERE BE DRAGONS ---
|
||||||
|
|
||||||
TARGET=${JOEY}/sdks/iix/IIgs/out/${PROJECT}
|
function buildIIgs() {
|
||||||
GSTARGET=31:/out/${PROJECT}
|
TARGET=${JOEY}/sdks/iix/IIgs/out/${PROJECT}
|
||||||
CADIUS=${JOEY}/sdks/iix/cadius-git/bin/release/cadius
|
GSTARGET=31:/out/${PROJECT}
|
||||||
VOL=Import
|
CADIUS=${JOEY}/sdks/iix/cadius-git/bin/release/cadius
|
||||||
WORK=/tmp/IIgs
|
VOL=Import
|
||||||
IMPORT=${WORK}/import.po
|
WORK=/tmp/IIgs
|
||||||
|
IMPORT=${WORK}/import.po
|
||||||
|
|
||||||
# Clean up target and working directories
|
# Clean up target and working directories
|
||||||
if [ -d ${TARGET} ]; then
|
if [ -d ${TARGET} ]; then
|
||||||
rm -rf ${TARGET}
|
rm -rf ${TARGET}
|
||||||
fi
|
|
||||||
mkdir -p ${TARGET}
|
|
||||||
|
|
||||||
if [ -d ${WORK} ]; then
|
|
||||||
rm -rf ${WORK}
|
|
||||||
fi
|
|
||||||
mkdir -p ${WORK}
|
|
||||||
|
|
||||||
# We temporarily need a local copy of the joey header
|
|
||||||
cp -f ${JOEY}/dist/joey.h .
|
|
||||||
|
|
||||||
# Make a list of files to compile, iterate over them
|
|
||||||
CFILES=($(ls -1 *.c))
|
|
||||||
OFILES=""
|
|
||||||
for F in "${CFILES[@]}"; do
|
|
||||||
O=${F%.*}
|
|
||||||
# If this file is named 'main' we don't add it to the link list until later
|
|
||||||
if [ "${O}" != "main" ]; then
|
|
||||||
OFILES="${OFILES} ${GSTARGET}/${O}"
|
|
||||||
fi
|
fi
|
||||||
echo "Compiling ${F}..."
|
mkdir -p ${TARGET}
|
||||||
iix compile ${F} keep=${GSTARGET}/${O}
|
|
||||||
done
|
|
||||||
# Be sure 'main' is first in the link list
|
|
||||||
OFILES="${GSTARGET}/main ${OFILES} ${GSTARGET}/joeylib"
|
|
||||||
|
|
||||||
# Clean up
|
if [ -d ${WORK} ]; then
|
||||||
rm joey.h
|
rm -rf ${WORK}
|
||||||
|
fi
|
||||||
|
mkdir -p ${WORK}
|
||||||
|
|
||||||
# We need a local copy of joeylib to link
|
# We temporarily need a local copy of the joey header
|
||||||
cp -f ${JOEY}/dist/IIgs/joeylib#b20000 ${TARGET}/joeylib
|
cp -f ${JOEY}/dist/joey.h .
|
||||||
iix chtyp -t lib ${GSTARGET}/joeylib
|
|
||||||
|
|
||||||
# Link our program and create a map file
|
# Make a list of files to compile, iterate over them
|
||||||
iix -DKeepType=S16 link +L ${OFILES} keep=${GSTARGET}/${PROJECT}#b30000 > ${PROJECT}.map
|
CFILES=($(ls -1 *.c))
|
||||||
|
OFILES=""
|
||||||
|
for F in "${CFILES[@]}"; do
|
||||||
|
O=${F%.*}
|
||||||
|
# If this file is named 'main' we don't add it to the link list until later
|
||||||
|
if [ "${O}" != "main" ]; then
|
||||||
|
OFILES="${OFILES} ${GSTARGET}/${O}"
|
||||||
|
fi
|
||||||
|
echo "Compiling ${F}..."
|
||||||
|
iix compile ${F} keep=${GSTARGET}/${O}
|
||||||
|
done
|
||||||
|
# Be sure 'main' is first in the link list
|
||||||
|
OFILES="${GSTARGET}/main ${OFILES} ${GSTARGET}/joeylib"
|
||||||
|
|
||||||
# Create a disassembly and linker input listing
|
# Clean up
|
||||||
iix dumpobj +D ${GSTARGET}/${PROJECT}#b30000 &> ${PROJECT}.dis || true
|
rm joey.h
|
||||||
echo ${OFILES} > ${PROJECT}.lnk
|
|
||||||
|
# We need a local copy of joeylib to link
|
||||||
|
cp -f ${JOEY}/dist/IIgs/joeylib#b20000 ${TARGET}/joeylib
|
||||||
|
iix chtyp -t lib ${GSTARGET}/joeylib
|
||||||
|
|
||||||
|
# Link our program and create a map file
|
||||||
|
iix -DKeepType=S16 link +L ${OFILES} keep=${GSTARGET}/${PROJECT}#b30000 > ${PROJECT}.map
|
||||||
|
|
||||||
|
# Create a disassembly and linker input listing
|
||||||
|
iix dumpobj +D ${GSTARGET}/${PROJECT}#b30000 &> ${PROJECT}.dis || true
|
||||||
|
echo ${OFILES} > ${PROJECT}.lnk
|
||||||
|
|
||||||
# Did they ask for GSPlus to be executed?
|
|
||||||
if [ ! -z $1 ]; then
|
|
||||||
# Be sure our work directories exists
|
# Be sure our work directories exists
|
||||||
mkdir -p ${WORK}/{data,source}
|
mkdir -p ${WORK}/{data,source}
|
||||||
|
|
||||||
|
@ -75,16 +74,22 @@ if [ ! -z $1 ]; then
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
# Launch GSPlus
|
mkdir -p ${JOEY}/builds/${PROJECT}/IIgs/
|
||||||
pushd ${JOEY}/sdks/iix/gsplus
|
cp ${IMPORT} ${JOEY}/builds/${PROJECT}/IIgs/${PROJECT}.po
|
||||||
./gsplus -resizeable -config IIgsTest.cfg || true
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Extract and display the results of the run
|
# Did they ask for GSPlus to be executed?
|
||||||
${CADIUS} extractfile ${IMPORT} ${VOL}/JLSTATS ${WORK}/. > /dev/null
|
if [ ! -z $1 ]; then
|
||||||
if [ -e ${WORK}/JLSTATS#040000 ]; then
|
# Launch GSPlus
|
||||||
echo ""
|
pushd ${JOEY}/sdks/iix/gsplus
|
||||||
cat ${WORK}/JLSTATS#040000 | tr "\r" "\n" 2> /dev/null
|
./gsplus -resizeable -config IIgsTest.cfg || true
|
||||||
echo ""
|
popd
|
||||||
|
|
||||||
|
# Extract and display the results of the run
|
||||||
|
${CADIUS} extractfile ${IMPORT} ${VOL}/JLSTATS ${WORK}/. > /dev/null
|
||||||
|
if [ -e ${WORK}/JLSTATS#040000 ]; then
|
||||||
|
echo ""
|
||||||
|
cat ${WORK}/JLSTATS#040000 | tr "\r" "\n" 2> /dev/null
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
}
|
||||||
|
|
91
joeylib/build-PC.helper.sh
Normal file
91
joeylib/build-PC.helper.sh
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
# --- HERE BE DRAGONS ---
|
||||||
|
|
||||||
|
TARGET=${JOEY}/builds/${PROJECT}
|
||||||
|
WORK=/tmp/PC
|
||||||
|
|
||||||
|
|
||||||
|
function doPCBuild() {
|
||||||
|
|
||||||
|
local OSNAME=$1
|
||||||
|
local OSARCH=$2
|
||||||
|
|
||||||
|
local DEST=${TARGET}/${OSNAME}/${OSARCH}
|
||||||
|
local G_CFLAGS="-Wall -D_REENTRANT_ -I${JOEY}/dist"
|
||||||
|
|
||||||
|
# Clean up target and working directories
|
||||||
|
if [ -d ${DEST} ]; then
|
||||||
|
rm -rf ${DEST}
|
||||||
|
fi
|
||||||
|
mkdir -p ${DEST}
|
||||||
|
if [ -d ${WORK} ]; then
|
||||||
|
rm -rf ${WORK}
|
||||||
|
fi
|
||||||
|
mkdir -p ${WORK}
|
||||||
|
|
||||||
|
# Make a list of files to compile, iterate over them
|
||||||
|
CFILES=($(ls -1 *.c))
|
||||||
|
OFILES=""
|
||||||
|
for F in "${CFILES[@]}"; do
|
||||||
|
O=${F%.*}
|
||||||
|
OFILES="${OFILES} ${WORK}/${O}.o"
|
||||||
|
echo "Compiling ${F}..."
|
||||||
|
${CC} ${CFLAGS} ${G_CFLAGS} -c ${F} -o ${WORK}/${O}.o
|
||||||
|
done
|
||||||
|
|
||||||
|
# Link source & JoeyLib
|
||||||
|
${CC} -o ${DEST}/${PROJECT} ${OFILES} ${JOEY}/dist/${OSNAME}/${OSARCH}/libjoeylib.a -lstdc++ ${LDFLAGS}
|
||||||
|
|
||||||
|
# Copy game data
|
||||||
|
mkdir -p ${DEST}/data
|
||||||
|
for F in "${DATA[@]}"; do
|
||||||
|
cp -f ${F} ${DEST}/data/.
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function buildLinux32() {
|
||||||
|
CC="gcc"
|
||||||
|
CFLAGS="-m32"
|
||||||
|
LDFLAGS=""
|
||||||
|
doPCBuild linux x86
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function buildLinux64() {
|
||||||
|
CC="gcc"
|
||||||
|
CFLAGS=""
|
||||||
|
LDFLAGS="-lm -lpthread -ldl"
|
||||||
|
doPCBuild linux x64
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function buildWindows32() {
|
||||||
|
CC="i686-w64-mingw32-gcc"
|
||||||
|
CFLAGS=""
|
||||||
|
LDFLAGS="-lgdi32 -lwinmm -limm32 -lversion -lole32 -loleaut32 -lsetupapi"
|
||||||
|
doPCBuild windows x86
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function buildWindows64() {
|
||||||
|
CC="x86_64-w64-mingw32-gcc"
|
||||||
|
CFLAGS=""
|
||||||
|
LDFLAGS="-lgdi32 -lwinmm -limm32 -lversion -lole32 -loleaut32 -lsetupapi"
|
||||||
|
doPCBuild windows x64
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function buildmacOS32() {
|
||||||
|
CC="o32-clang"
|
||||||
|
CFLAGS=""
|
||||||
|
LDFLAGS=""
|
||||||
|
doPCBuild macos x86
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function buildmacOS64() {
|
||||||
|
CC="o64-clang"
|
||||||
|
CFLAGS=""
|
||||||
|
LDFLAGS=""
|
||||||
|
doPCBuild macos x64
|
||||||
|
}
|
|
@ -35,47 +35,67 @@ function doBuild() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
CC="gcc"
|
ARCH=$1
|
||||||
CFLAGS=""
|
|
||||||
LDFLAGS=""
|
|
||||||
DIST="${JOEY}/dist/linux/x64"
|
|
||||||
INSTALLED="${JOEY}/SDL2/installed/linux/x64/lib"
|
|
||||||
doBuild
|
|
||||||
|
|
||||||
CC="gcc"
|
if [ "${ARCH}x" == "x" ]; then
|
||||||
CFLAGS="-m32"
|
echo "$0 [arch | \"all\"]"
|
||||||
LDFLAGS=""
|
echo '(Where "arch" is linux32, linux64, windows32, windows64, macos32, or macos64.)'
|
||||||
DIST="${JOEY}/dist/linux/x86"
|
exit 0
|
||||||
INSTALLED="${JOEY}/SDL2/installed/linux/x86/lib"
|
fi
|
||||||
doBuild
|
|
||||||
|
|
||||||
CC="x86_64-w64-mingw32-gcc"
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "linux64x" ]; then
|
||||||
CFLAGS=""
|
CC="gcc"
|
||||||
LDFLAGS=""
|
CFLAGS=""
|
||||||
DIST="${JOEY}/dist/windows/x64"
|
LDFLAGS=""
|
||||||
INSTALLED="${JOEY}/SDL2/installed/windows/x64/lib"
|
DIST="${JOEY}/dist/linux/x64"
|
||||||
doBuild
|
INSTALLED="${JOEY}/SDL2/installed/linux/x64/lib"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
CC="i686-w64-mingw32-gcc"
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "linux32x" ]; then
|
||||||
CFLAGS=""
|
CC="gcc"
|
||||||
LDFLAGS=""
|
CFLAGS="-m32"
|
||||||
DIST="${JOEY}/dist/windows/x86"
|
LDFLAGS=""
|
||||||
INSTALLED="${JOEY}/SDL2/installed/windows/x86/lib"
|
DIST="${JOEY}/dist/linux/x86"
|
||||||
doBuild
|
INSTALLED="${JOEY}/SDL2/installed/linux/x86/lib"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
CC="o32-clang"
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "windows64x" ]; then
|
||||||
CFLAGS=""
|
CC="x86_64-w64-mingw32-gcc"
|
||||||
LDFLAGS=""
|
CFLAGS=""
|
||||||
DIST="${JOEY}/dist/macos/x86"
|
LDFLAGS=""
|
||||||
INSTALLED="${JOEY}/SDL2/installed/macos/x86/lib"
|
DIST="${JOEY}/dist/windows/x64"
|
||||||
doBuild
|
INSTALLED="${JOEY}/SDL2/installed/windows/x64/lib"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
CC="o64-clang"
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "windows32x" ]; then
|
||||||
CFLAGS=""
|
CC="i686-w64-mingw32-gcc"
|
||||||
LDFLAGS=""
|
CFLAGS=""
|
||||||
DIST="${JOEY}/dist/macos/x64"
|
LDFLAGS=""
|
||||||
INSTALLED="${JOEY}/SDL2/installed/macos/x64/lib"
|
DIST="${JOEY}/dist/windows/x86"
|
||||||
doBuild
|
INSTALLED="${JOEY}/SDL2/installed/windows/x86/lib"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "macos32x" ]; then
|
||||||
|
CC="o32-clang"
|
||||||
|
CFLAGS=""
|
||||||
|
LDFLAGS=""
|
||||||
|
DIST="${JOEY}/dist/macos/x86"
|
||||||
|
INSTALLED="${JOEY}/SDL2/installed/macos/x86/lib"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${ARCH}x" == "allx" ] || [ "${ARCH}x" == "macos64x" ]; then
|
||||||
|
CC="o64-clang"
|
||||||
|
CFLAGS=""
|
||||||
|
LDFLAGS=""
|
||||||
|
DIST="${JOEY}/dist/macos/x64"
|
||||||
|
INSTALLED="${JOEY}/SDL2/installed/macos/x64/lib"
|
||||||
|
doBuild
|
||||||
|
fi
|
||||||
|
|
||||||
cp -f ${JOEY}/joeylib/joeylib/src/joey.h ${JOEY}/dist/.
|
cp -f ${JOEY}/joeylib/joeylib/src/joey.h ${JOEY}/dist/.
|
||||||
cp -f ${JOEY}/joeylib/joeylib/joey.pri ${JOEY}/dist/.
|
cp -f ${JOEY}/joeylib/joeylib/joey.pri ${JOEY}/dist/.
|
||||||
|
|
Loading…
Add table
Reference in a new issue