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 OS=$1
|
||||||
local ARCH=$2
|
local ARCH=$2
|
||||||
local COMMON=
|
local COMMON=
|
||||||
|
local OPT1=
|
||||||
|
|
||||||
# Activate toolchain for this platform.
|
# Activate toolchain for this platform.
|
||||||
source <(../toolchains/toolchains.sh use ${ARCH} ${OS})
|
source <(../toolchains/toolchains.sh use ${ARCH} ${OS})
|
||||||
|
@ -124,14 +125,14 @@ if [[ 1 == 1 ]]; then
|
||||||
|
|
||||||
pushd thirdparty/zlib
|
pushd thirdparty/zlib
|
||||||
clearAndEnterBuild
|
clearAndEnterBuild
|
||||||
../configure \
|
CFLAGS="-I${PWD}" ../configure \
|
||||||
--prefix=${G_TARGET} \
|
--prefix=${G_TARGET} \
|
||||||
--static
|
--static
|
||||||
make install
|
make install
|
||||||
popd
|
popd
|
||||||
if [[ "${OS}" == "windows" ]]; then
|
#if [[ "${OS}" == "windows" ]]; then
|
||||||
mv ${G_TARGET}/lib/libzlibstatic.a ${G_TARGET}/lib/libz.a
|
# mv ${G_TARGET}/lib/libzlibstatic.a ${G_TARGET}/lib/libz.a
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
pushd thirdparty/zstd
|
pushd thirdparty/zstd
|
||||||
clearAndEnterBuild
|
clearAndEnterBuild
|
||||||
|
@ -181,8 +182,17 @@ if [[ 1 == 1 ]]; then
|
||||||
|
|
||||||
pushd thirdparty/openssl
|
pushd thirdparty/openssl
|
||||||
clearAndEnterBuild
|
clearAndEnterBuild
|
||||||
|
if [[ "${OS}" == "windows" ]]; then
|
||||||
|
if [[ "${ARCH}" == "x86" ]]; then
|
||||||
|
OPT1="mingw"
|
||||||
|
else
|
||||||
|
OPT1="mingw64"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
OPT1=""
|
||||||
|
fi
|
||||||
# --cross-compile-prefix="${TRIPLE}-" \
|
# --cross-compile-prefix="${TRIPLE}-" \
|
||||||
../Configure \
|
../Configure ${OPT1} \
|
||||||
--prefix="${G_TARGET}" \
|
--prefix="${G_TARGET}" \
|
||||||
--libdir=lib \
|
--libdir=lib \
|
||||||
--with-zlib-include="${G_TARGET}/include" \
|
--with-zlib-include="${G_TARGET}/include" \
|
||||||
|
@ -475,9 +485,9 @@ sudo apt-get install -y \
|
||||||
|
|
||||||
|
|
||||||
#buildAll linux x86
|
#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 aarch64
|
||||||
#buildAll macos x86 #***TODO*** Needs older SDL2
|
#buildAll macos x86 #***TODO*** Needs older SDL2
|
||||||
#buildAll macos x86_64 #***TODO*** Needs older SDL2
|
#buildAll macos x86_64 #***TODO*** Needs older SDL2
|
||||||
#buildAll windows x86
|
#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