2013-11-22 08:01:00 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Output a list of all our (static) libraries, to be used when
|
|
|
|
# building the single executable or single dynamic object that is used
|
|
|
|
# in an LO-based iOS or Android app. (All our libraries and bundled
|
|
|
|
# 3rd-party ones are built as static archives for these platforms.)
|
|
|
|
|
|
|
|
# This script is to be run once a full "make" for iOS or Android has
|
|
|
|
# otherwise completed, when just building the actual apps is left.
|
|
|
|
|
|
|
|
if test -z "$INSTDIR" ; then
|
|
|
|
echo This script should be invoked only in a build.
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$OS" != ANDROID -a "$OS" != IOS; then
|
|
|
|
echo This script makes sense only in Android or iOS builds.
|
|
|
|
fi
|
|
|
|
|
2013-11-22 09:04:51 -06:00
|
|
|
foolibs=
|
2013-11-22 10:18:48 -06:00
|
|
|
for var in EBOOK_LIBS FREEHAND_LIBS HARFBUZZ_LIBS HUNSPELL_LIBS HYPHEN_LIB MYTHES_LIBS; do
|
2013-11-22 09:04:51 -06:00
|
|
|
dirs=
|
|
|
|
libs=
|
|
|
|
for i in `eval echo '$'$var`; do
|
|
|
|
case "$i" in
|
|
|
|
-L*) dirs="$dirs ${i#-L}";;
|
|
|
|
-l*) libs="$libs ${i#-l}";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
for l in $libs; do
|
|
|
|
for d in $dirs; do
|
|
|
|
test -f $d/lib$l.a && foolibs="$foolibs $d/lib$l.a"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2014-04-12 12:27:41 -05:00
|
|
|
case $OS in
|
|
|
|
ANDROID)
|
|
|
|
oslibs="$WORKDIR/UnpackedTarball/curl/lib/.libs/*.a"
|
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/fontconfig/src/.libs/libfontconfig.a"
|
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/freetype/objs/.libs/libfreetype.a"
|
2015-11-16 07:40:22 -06:00
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/pixman/pixman/.libs/libpixman-1.a"
|
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/cairo/src/.libs/libcairo.a"
|
2017-08-18 12:47:15 -05:00
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/xmlsec/src/.libs/libxmlsec1.a"
|
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/xmlsec/src/nss/.libs/libxmlsec1-nss.a"
|
2014-12-19 02:42:35 -06:00
|
|
|
# Only liblo-bootstrap.a ends up here:
|
|
|
|
oslibs="$oslibs $WORKDIR/LinkTarget/Library/lib*.a"
|
2017-06-12 00:47:25 -05:00
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/openssl/*.a"
|
2017-10-06 02:20:22 -05:00
|
|
|
|
|
|
|
# coinmp not used for iOS
|
2017-10-12 08:48:25 -05:00
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/Cbc/src/.libs/*.a"
|
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/Cgl/src/.libs/*.a"
|
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/Clp/src/.libs/*.a"
|
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/Clp/src/OsiClp/.libs/*.a"
|
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/CoinMP/src/.libs/*.a"
|
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/CoinUtils/src/.libs/*.a"
|
|
|
|
oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/Osi/src/Osi/.libs/*.a"
|
2014-04-12 12:27:41 -05:00
|
|
|
;;
|
|
|
|
IOS)
|
|
|
|
oslibs="$WORKDIR/UnpackedTarball/icu/source/stubdata/*.a"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
oslibs=
|
|
|
|
;;
|
|
|
|
esac
|
2013-11-22 10:18:48 -06:00
|
|
|
|
2013-11-22 08:01:00 -06:00
|
|
|
echo $INSTDIR/$LIBO_LIB_FOLDER/lib*.a \
|
2013-11-22 09:04:51 -06:00
|
|
|
$foolibs \
|
2013-11-22 08:01:00 -06:00
|
|
|
$WORKDIR/LinkTarget/StaticLibrary/lib*.a \
|
2014-04-12 12:27:41 -05:00
|
|
|
$oslibs \
|
2013-11-22 08:01:00 -06:00
|
|
|
$WORKDIR/UnpackedTarball/icu/source/lib/*.a \
|
2017-09-13 15:50:14 -05:00
|
|
|
$WORKDIR/UnpackedTarball/libjpeg-turbo/.libs/*.a \
|
2017-09-14 05:20:31 -05:00
|
|
|
$WORKDIR/UnpackedTarball/liblangtag/liblangtag/.libs/*.a \
|
2013-11-22 08:01:00 -06:00
|
|
|
$WORKDIR/UnpackedTarball/lcms2/src/.libs/*.a \
|
2014-01-14 02:35:19 -06:00
|
|
|
$WORKDIR/UnpackedTarball/libabw/src/lib/.libs/*.a \
|
2013-11-22 08:01:00 -06:00
|
|
|
$WORKDIR/UnpackedTarball/libcdr/src/lib/.libs/*.a \
|
|
|
|
$WORKDIR/UnpackedTarball/libmspub/src/lib/.libs/*.a \
|
|
|
|
$WORKDIR/UnpackedTarball/libmwaw/src/lib/.libs/*.a \
|
|
|
|
$WORKDIR/UnpackedTarball/libodfgen/src/.libs/*.a \
|
|
|
|
$WORKDIR/UnpackedTarball/liborcus/src/*/.libs/*.a \
|
|
|
|
$WORKDIR/UnpackedTarball/libvisio/src/lib/.libs/*.a \
|
|
|
|
$WORKDIR/UnpackedTarball/libwp?/src/lib/.libs/*.a \
|
|
|
|
$WORKDIR/UnpackedTarball/raptor/src/.libs/*.a \
|
|
|
|
$WORKDIR/UnpackedTarball/rasqal/src/.libs/*.a \
|
|
|
|
$WORKDIR/UnpackedTarball/redland/src/.libs/*.a \
|
2017-09-14 07:54:07 -05:00
|
|
|
$WORKDIR/UnpackedTarball/libxml2/.libs/*.a \
|
2017-09-14 08:26:10 -05:00
|
|
|
$WORKDIR/UnpackedTarball/libxslt/libxslt/.libs/*.a
|