Windows x86_64 building.
This commit is contained in:
parent
72357a6dbd
commit
e9eade1d2f
1 changed files with 34 additions and 24 deletions
24
build-all.sh
24
build-all.sh
|
@ -30,6 +30,7 @@ function buildAll() {
|
|||
local OS=$1
|
||||
local ARCH=$2
|
||||
local COMMON=
|
||||
local OPT1=
|
||||
|
||||
# Activate toolchain for this platform.
|
||||
source <(../toolchains/toolchains.sh use ${ARCH} ${OS})
|
||||
|
@ -124,14 +125,14 @@ if [[ 1 == 1 ]]; then
|
|||
|
||||
pushd thirdparty/zlib
|
||||
clearAndEnterBuild
|
||||
../configure \
|
||||
CFLAGS="-I${PWD}" ../configure \
|
||||
--prefix=${G_TARGET} \
|
||||
--static
|
||||
make install
|
||||
popd
|
||||
if [[ "${OS}" == "windows" ]]; then
|
||||
mv ${G_TARGET}/lib/libzlibstatic.a ${G_TARGET}/lib/libz.a
|
||||
fi
|
||||
#if [[ "${OS}" == "windows" ]]; then
|
||||
# mv ${G_TARGET}/lib/libzlibstatic.a ${G_TARGET}/lib/libz.a
|
||||
#fi
|
||||
|
||||
pushd thirdparty/zstd
|
||||
clearAndEnterBuild
|
||||
|
@ -181,8 +182,17 @@ if [[ 1 == 1 ]]; then
|
|||
|
||||
pushd thirdparty/openssl
|
||||
clearAndEnterBuild
|
||||
if [[ "${OS}" == "windows" ]]; then
|
||||
if [[ "${ARCH}" == "x86" ]]; then
|
||||
OPT1="mingw"
|
||||
else
|
||||
OPT1="mingw64"
|
||||
fi
|
||||
else
|
||||
OPT1=""
|
||||
fi
|
||||
# --cross-compile-prefix="${TRIPLE}-" \
|
||||
../Configure \
|
||||
../Configure ${OPT1} \
|
||||
--prefix="${G_TARGET}" \
|
||||
--libdir=lib \
|
||||
--with-zlib-include="${G_TARGET}/include" \
|
||||
|
@ -475,9 +485,9 @@ sudo apt-get install -y \
|
|||
|
||||
|
||||
#buildAll linux x86
|
||||
buildAll linux x86_64 2>&1 | tee linux-x86_64.log
|
||||
#buildAll linux x86_64 2>&1 | tee linux-x86_64.log
|
||||
#buildAll macos aarch64
|
||||
#buildAll macos x86 #***TODO*** Needs older SDL2
|
||||
#buildAll macos x86_64 #***TODO*** Needs older SDL2
|
||||
#buildAll windows x86
|
||||
#buildAll windows x86_64
|
||||
buildAll windows x86_64 2>&1 | tee windows-x86_64.log
|
||||
|
|
Loading…
Add table
Reference in a new issue