8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:03:03 +01:00

Cross-build ICU for IOS on linux

This commit is contained in:
AlexPeshkoff 2024-06-20 20:09:27 +03:00
parent 884ea969f2
commit e4298e2bc0
6 changed files with 72 additions and 0 deletions

2
extern/icu/ios/Readme.txt vendored Normal file
View File

@ -0,0 +1,2 @@
This directory contains files needed for cross-build of IBM ICU 63.1 for IOS on amd64 linux host.
Assuming xcode SDK is present in ${MACTOOLS}.

23
extern/icu/ios/aarch64/config.sh vendored Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
. ../crossenv.sh
../source/configure --prefix=$(pwd)/prebuilt \
--host=aarch64-apple-darwin \
--enable-static=no \
--enable-shared \
--enable-extras=no \
--enable-strict=no \
--enable-icuio=no \
--enable-layout=no \
--enable-layoutex=no \
--enable-tools=no \
--enable-tests=no \
--enable-samples=no \
--enable-renaming \
--enable-dyload \
--with-cross-build=`realpath ../linux` \
CFLAGS='-Os' \
CXXFLAGS='--std=c++11' \
LDFLAGS='-static-libstdc++' \
--with-data-packaging=archive

6
extern/icu/ios/aarch64/mk.sh vendored Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
. ../crossenv.sh
make -j15 && make install

22
extern/icu/ios/crossenv.sh vendored Normal file
View File

@ -0,0 +1,22 @@
#MACTOOLS=/usr/home/firebird/Mac/mactools
export PATH=${MACTOOLS}/usr/bin:$PATH
export LD_LIBRARY_PATH=${MACTOOLS}/usr/lib:$LD_LIBRARY_PATH
CROSS_PREFIX=${MACTOOLS}/usr/bin/arm-apple-darwin11-
export CXX=${CROSS_PREFIX}clang++
export CC=${CROSS_PREFIX}clang
export AR=${CROSS_PREFIX}ar
#AS=${CROSS_PREFIX}as
export LD=${CROSS_PREFIX}ld
#NM=${CROSS_PREFIX}nm
#OBJCOPY=${CROSS_PREFIX}objcopy
#OBJDUMP=${CROSS_PREFIX}objdump
export RANLIB=${CROSS_PREFIX}ranlib
#STRIP=${CROSS_PREFIX}strip

16
extern/icu/ios/linux/config.sh vendored Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
../source/runConfigureICU Linux --prefix=$PWD/prebuilt \
CFLAGS="-Os" \
CXXFLAGS="--std=c++11" \
--enable-static \
--enable-shared=no \
--enable-extras=no \
--enable-strict=no \
--enable-icuio=no \
--enable-layout=no \
--enable-layoutex=no \
--enable-tools \
--enable-tests=no \
--enable-samples=no \
--enable-dyload \
--with-data-packaging=archive

3
extern/icu/ios/linux/mk.sh vendored Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
make -j15 && make install