Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / bin / lo-all-static-libs
blob2e620ff2a494b75e239b0e9a9843a5099a92171d
1 #!/bin/sh
3 # Output a list of all our (static) libraries, to be used when
4 # building the single executable or single dynamic object that is used
5 # in an LO-based iOS or Android app. (All our libraries and bundled
6 # 3rd-party ones are built as static archives for these platforms.)
8 # This script is to be run once a full "make" for iOS or Android has
9 # otherwise completed, when just building the actual apps is left.
11 if test -z "$INSTDIR" ; then
12 echo This script should be invoked only in a build.
13 exit 1
16 if test "$OS" != ANDROID -a "$OS" != IOS; then
17 echo This script makes sense only in Android or iOS builds.
20 foolibs=
21 for var in EBOOK_LIBS FREEHAND_LIBS HARFBUZZ_LIBS HUNSPELL_LIBS HYPHEN_LIB MYTHES_LIBS; do
22 dirs=
23 libs=
24 for i in `eval echo '$'$var`; do
25 case "$i" in
26 -L*) dirs="$dirs ${i#-L}";;
27 -l*) libs="$libs ${i#-l}";;
28 esac
29 done
30 for l in $libs; do
31 for d in $dirs; do
32 test -f $d/lib$l.a && foolibs="$foolibs $d/lib$l.a"
33 done
34 done
35 done
37 case $OS in
38 ANDROID)
39 oslibs="$WORKDIR/UnpackedTarball/curl/lib/.libs/*.a"
40 oslibs="$oslibs $WORKDIR/UnpackedTarball/fontconfig/src/.libs/libfontconfig.a"
41 oslibs="$oslibs $WORKDIR/UnpackedTarball/freetype/objs/.libs/libfreetype.a"
42 oslibs="$oslibs $WORKDIR/UnpackedTarball/pixman/pixman/.libs/libpixman-1.a"
43 oslibs="$oslibs $WORKDIR/UnpackedTarball/cairo/src/.libs/libcairo.a"
44 oslibs="$oslibs $WORKDIR/UnpackedTarball/xmlsec/src/.libs/libxmlsec1.a"
45 oslibs="$oslibs $WORKDIR/UnpackedTarball/xmlsec/src/nss/.libs/libxmlsec1-nss.a"
46 # Only liblo-bootstrap.a ends up here:
47 oslibs="$oslibs $WORKDIR/LinkTarget/Library/lib*.a"
48 oslibs="$oslibs $WORKDIR/UnpackedTarball/openssl/*.a"
50 # coinmp not used for iOS
51 oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/Cbc/src/.libs/*.a"
52 oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/Cgl/src/.libs/*.a"
53 oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/Clp/src/.libs/*.a"
54 oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/Clp/src/OsiClp/.libs/*.a"
55 oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/CoinMP/src/.libs/*.a"
56 oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/CoinUtils/src/.libs/*.a"
57 oslibs="$oslibs $WORKDIR/UnpackedTarball/coinmp/Osi/src/Osi/.libs/*.a"
59 IOS)
60 oslibs="$WORKDIR/UnpackedTarball/icu/source/stubdata/*.a"
63 oslibs=
65 esac
67 echo $INSTDIR/$LIBO_LIB_FOLDER/lib*.a \
68 $foolibs \
69 $WORKDIR/LinkTarget/StaticLibrary/lib*.a \
70 $oslibs \
71 $WORKDIR/UnpackedTarball/icu/source/lib/*.a \
72 $WORKDIR/UnpackedTarball/libjpeg-turbo/.libs/*.a \
73 $WORKDIR/UnpackedTarball/liblangtag/liblangtag/.libs/*.a \
74 $WORKDIR/UnpackedTarball/lcms2/src/.libs/*.a \
75 $WORKDIR/UnpackedTarball/libabw/src/lib/.libs/*.a \
76 $WORKDIR/UnpackedTarball/libcdr/src/lib/.libs/*.a \
77 $WORKDIR/UnpackedTarball/libmspub/src/lib/.libs/*.a \
78 $WORKDIR/UnpackedTarball/libmwaw/src/lib/.libs/*.a \
79 $WORKDIR/UnpackedTarball/libodfgen/src/.libs/*.a \
80 $WORKDIR/UnpackedTarball/liborcus/src/*/.libs/*.a \
81 $WORKDIR/UnpackedTarball/libvisio/src/lib/.libs/*.a \
82 $WORKDIR/UnpackedTarball/libwp?/src/lib/.libs/*.a \
83 $WORKDIR/UnpackedTarball/raptor/src/.libs/*.a \
84 $WORKDIR/UnpackedTarball/rasqal/src/.libs/*.a \
85 $WORKDIR/UnpackedTarball/redland/src/.libs/*.a \
86 $WORKDIR/UnpackedTarball/libxml2/.libs/*.a \
87 $WORKDIR/UnpackedTarball/libxslt/libxslt/.libs/*.a