Windows x86_64 building.

This commit is contained in:
Scott Duensing 2023-11-26 21:22:23 -06:00
parent 72357a6dbd
commit e9eade1d2f

View file

@ -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,24 +182,33 @@ if [[ 1 == 1 ]]; then
pushd thirdparty/openssl
clearAndEnterBuild
# --cross-compile-prefix="${TRIPLE}-" \
../Configure \
--prefix="${G_TARGET}" \
--libdir=lib \
--with-zlib-include="${G_TARGET}/include" \
--with-zlib-lib="${G_TARGET}/lib" \
--with-zstd-include="${G_TARGET}/include" \
--with-zstd-lib="${G_TARGET}/lib" \
no-apps \
no-docs \
no-dso \
no-dynamic-engine \
no-module \
no-shared \
no-tests \
zlib \
enable-zstd
make install
if [[ "${OS}" == "windows" ]]; then
if [[ "${ARCH}" == "x86" ]]; then
OPT1="mingw"
else
OPT1="mingw64"
fi
else
OPT1=""
fi
# --cross-compile-prefix="${TRIPLE}-" \
../Configure ${OPT1} \
--prefix="${G_TARGET}" \
--libdir=lib \
--with-zlib-include="${G_TARGET}/include" \
--with-zlib-lib="${G_TARGET}/lib" \
--with-zstd-include="${G_TARGET}/include" \
--with-zstd-lib="${G_TARGET}/lib" \
no-apps \
no-docs \
no-dso \
no-dynamic-engine \
no-module \
no-shared \
no-tests \
zlib \
enable-zstd
make install
popd
lua thirdparty/luasec/src/options.lua -g "${G_TARGET}/include/openssl/ssl.h" > "${G_TARGET}/generated/luasec_options.c"
@ -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