mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
iOS build: create the translations to be bundled
And add them to the bundle. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d668a89df7
commit
42eee8a2e1
3 changed files with 39 additions and 2 deletions
|
|
@ -355,7 +355,18 @@ done
|
|||
|
||||
# now combine the arm libraries into fat libraries
|
||||
cp -a install-root-arm64 install-root
|
||||
cd install-root/lib
|
||||
pushd install-root/lib
|
||||
for LIB in $(find . -type f -name \*.a); do
|
||||
lipo ../../install-root-armv7/lib/$LIB ../../install-root-arm64/lib/$LIB ../../install-root-x86_64/lib/$LIB -create -output $LIB
|
||||
done
|
||||
popd
|
||||
|
||||
pushd ${SUBSURFACE_SOURCE}/translations
|
||||
SRCS=$(ls *.ts | grep -v source)
|
||||
popd
|
||||
pushd Subsurface-mobile
|
||||
mkdir -p translations
|
||||
for src in $SRCS; do
|
||||
${IOS_QT}/5.6/ios/bin/lrelease ${SUBSURFACE_SOURCE}/translations/$src -qm translations/${src/.ts/.qm}
|
||||
done
|
||||
popd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue