Files
pay/android/docker/scripts/buildBoost.sh
tomFlowee fa600058db Update build env to latest Qt and Android NDK/SDK
This upgrades to the latest stable Qt (6.8.3) to my surprise the
translator patch still is required and they didn't fix that bug
for 2 bugfix releases now.
2025-08-02 13:45:24 +02:00

41 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
VERSION=1.83.0
echo "Based on boost version $VERSION" >> /etc/versions
source /etc/profile
VER2=`echo $VERSION|sed -e 's#\.#_#g'`
cd /usr/local/cache
if ! test -f boost_$VER2.tar.bz2; then
wget https://archives.boost.io/release/$VERSION/source/boost_$VER2.tar.bz2
fi
cd ~builduser
tar xf /usr/local/cache/boost_$VER2.tar.bz2
cd boost_$VER2
export PATH="$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH"
./bootstrap.sh --without-icu \
--with-toolset=clang \
--with-libraries=filesystem,iostreams,system,thread \
--prefix=/opt/android-boost
echo "using clang : arm : /opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android33-clang++ : <cxxflags>\"-std=c++17 -DBOOST_FILESYSTEM_DISABLE_STATX -DBOOST_FILESYSTEM_DISABLE_GETRANDOM -fvisibility=hidden -fPIC\" <cflags>\"-fPIC\" ;" > user-config.jam
./b2 \
--reconfigure \
--user-config=user-config.jam \
architecture=arm \
address-model=64 \
binary-format=elf \
abi=aapcs \
target-os=android \
variant=release \
link=static \
threading=multi \
debug-symbols=off \
install > ~builduser/boost.build.log 2>&1