Skip to content

Commit 5457581

Browse files
committedApr 13, 2024
add icu4c
1 parent 0503e8b commit 5457581

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed
 

‎.gitmodules

+5
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,8 @@
163163
url = https://github.com/linux-pam/linux-pam.git
164164
ignore = dirty
165165
shallow = true
166+
[submodule "ext/icu"]
167+
path = ext/icu
168+
url = https://github.com/unicode-org/icu.git
169+
ignore = dirty
170+
shallow = true

‎ext/icu

Submodule icu added at b7e6e9b

‎linux/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
crosstool-ng
2+
icu4c
23
*/root
34
*/.build
45
*/.config.old
@@ -38,3 +39,4 @@ crosstool-ng
3839
*/libxext
3940
*/linux-pam
4041
*/libcups
42+
*/icu4c

‎linux/build.sh

+31
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,37 @@ then
844844
popd
845845
fi
846846

847+
# build icu4c for current platform
848+
if [ ! -f $sdk/icu4c/stamp ]
849+
then
850+
mkdir -p $sdk/icu4c
851+
pushd $sdk/icu4c
852+
$ext/icu/icu4c/source/configure
853+
make
854+
touch stamp
855+
popd
856+
fi
857+
858+
# build icu4c
859+
if [ ! -f $home/icu4c/stamp ]
860+
then
861+
mkdir -p $home/icu4c
862+
pushd $home/icu4c
863+
PKG_CONFIG_PATH=$dist/lib/pkgconfig:$dist/share/pkgconfig \
864+
PKG_CONFIG_SYSROOT_DIR=$dist \
865+
$ext/icu/icu4c/source/configure \
866+
--host=$SDK_TARGET \
867+
--target=$SDK_TARGET \
868+
--prefix="" \
869+
--with-sysroot=$dist \
870+
--with-cross-build=$sdk/icu4c \
871+
$SDK_LIBICU4C_ARGS
872+
make
873+
make DESTDIR=$dist install
874+
touch stamp
875+
popd
876+
fi
877+
847878
# adjust symlinks to relative paths
848879
symlinks -cr $dist
849880

0 commit comments

Comments
 (0)