oneTBB
rm -rf build_ndk
mkdir build_ndk
cd build_ndk
export ANDROID_NDK=/media/xp/data/3rd_party/25.2.9519653
make distclean
cmake .. \
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
-DANDROID_ABI="arm64-v8a" \
-DANDROID_NDK=$ANDROID_NDK \
-DANDROID_PLATFORM=android-29 \
-DANDROID_STL=c++_shared \
-DCMAKE_INSTALL_PREFIX=/media/xp/data/3rd_party_lib/one_tbb/2021.13.0/arm64-v8a \
-DTBB_TEST=OFF
make -j$(nproc)
make install
rm -rf build
mkdir build
cd build
export CC=/usr/bin/gcc-12
export CXX=/usr/bin/g++-12
cmake .. \
-DCMAKE_INSTALL_PREFIX=/media/xp/data/3rd_party_lib/one_tbb/2021.13.0/gnu \
-DTBB_TEST=OFF
make -j$(nproc)
make install
libpng
export ANDROID_NDK=/media/xp/data/3rd_party/25.2.9519653
rm -rf ndk_build
mkdir ndk_build
cd ndk_build
cmake .. -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
-DANDROID_ABI="arm64-v8a" \
-DANDROID_NDK=$ANDROID_NDK \
-DANDROID_PLATFORM=android-29 \
-DANDROID_STL=c++_static \
-DBUILD_SHARED_LIBS=ON \
-DPNG_ARM_NEON=on \
-DCMAKE_INSTALL_PREFIX=/media/xp/data/3rd_party_lib/libpng/1.6.34/arm64-v8a
make -j$(nproc)
make install
libiconv
export ANDROID_NDK=/media/xp/data/3rd_party/android-ndk-r26b/
$ANDROID_NDK/build/tools/make_standalone_toolchain.py \
--arch arm64 --api 29 --install-dir /media/xp/data/3rd_party/my-android-toolchain
export PATH=/media/xp/data/3rd_party/my-android-toolchain/bin:$PATH
./configure --host=aarch64-linux-android --prefix=/media/xp/data/3rd_party_lib/libiconv/1.17/arm64-v8a
make -j$(nproc)
make install
freetype
export ANDROID_NDK=/media/xp/data/3rd_party/25.2.9519653
rm -rf build_ndk
mkdir build_ndk
cd build_ndk
export HarfBuzz_DIR="/media/xp/data/3rd_party_lib/harfbuzz/9.0.0/arm64-v8a/lib/cmake/harfbuzz/"
cmake .. -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
-DANDROID_ABI="arm64-v8a" \
-DANDROID_NDK=$ANDROID_NDK \
-DANDROID_PLATFORM=android-29 \
-DANDROID_STL=c++_shared \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DFT_REQUIRE_HARFBUZZ=ON \
-DCMAKE_PREFIX_PATH="/media/xp/data/3rd_party_lib/harfbuzz/9.0.0/arm64-v8a/lib/cmake/harfbuzz" \
-DHarfBuzz_DIR="/media/xp/data/3rd_party_lib/harfbuzz/9.0.0/arm64-v8a/lib/cmake/harfbuzz/" \
-DHarfBuzz_INCLUDE_DIR="/media/xp/data/3rd_party_lib/harfbuzz/9.0.0/arm64-v8a/include/harfbuzz" \
-DHarfBuzz_LIBRARY="/media/xp/data/3rd_party_lib/harfbuzz/9.0.0/arm64-v8a/lib/libharfbuzz.so" \
-DCMAKE_INSTALL_PREFIX=/media/xp/data/3rd_party_lib/freetype/2.13.2/arm64-v8a
make -j$(nproc)
make install
rm build_linux -rf
mkdir build_linux
cd build_linux
cmake .. \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DFT_REQUIRE_HARFBUZZ=ON \
-DCMAKE_INSTALL_PREFIX=/media/xp/data/3rd_party_lib/freetype/2.13.2/gnu
make -j$(nproc)
make install