bump product version to 5.0.4.1
[LibreOffice.git] / bin / lo-all-static-libs
blob8cef48656c5fb65f6f29890434fa708a90cb0ed6
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 # Only liblo-bootstrap.a ends up here:
43 oslibs="$oslibs $WORKDIR/LinkTarget/Library/lib*.a"
45 IOS)
46 oslibs="$WORKDIR/UnpackedTarball/icu/source/stubdata/*.a"
47 oslibs="$oslibs $WORKDIR/UnpackedTarball/xmlsec/src/.libs/*.a"
48 oslibs="$oslibs $WORKDIR/UnpackedTarball/xmlsec/src/nss/.libs/*.a"
50 # The NSS dylibs (which we don't build for iOS) are constructed
51 # from a bunch of static archives and some freestanding object
52 # files (that are not present in any of the static archives). We
53 # need the latter too, so collect them here into an archive of
54 # their own.
55 ar cr $WORKDIR/UnpackedTarball/nss/nss/lib/ckfw/builtins/out/libLOtemp.a \
56 $WORKDIR/UnpackedTarball/nss/nss/lib/ckfw/builtins/out/*.o \
57 $WORKDIR/UnpackedTarball/nss/nss/lib/freebl/out/Darwin_SINGLE_SHLIB/*.o
59 nsslibs=`find $WORKDIR/UnpackedTarball/nss -name 'lib*.a'`
62 oslibs=
64 esac
66 echo $INSTDIR/$LIBO_LIB_FOLDER/lib*.a \
67 $foolibs \
68 $WORKDIR/LinkTarget/StaticLibrary/lib*.a \
69 $oslibs \
70 $nsslibs \
71 $WORKDIR/UnpackedTarball/coinmp/Cbc/src/.libs/*.a \
72 $WORKDIR/UnpackedTarball/coinmp/Cgl/src/.libs/*.a \
73 $WORKDIR/UnpackedTarball/coinmp/Clp/src/.libs/*.a \
74 $WORKDIR/UnpackedTarball/coinmp/Clp/src/OsiClp/.libs/*.a \
75 $WORKDIR/UnpackedTarball/coinmp/CoinMP/src/.libs/*.a \
76 $WORKDIR/UnpackedTarball/coinmp/CoinUtils/src/.libs/*.a \
77 $WORKDIR/UnpackedTarball/coinmp/Osi/src/Osi/.libs/*.a \
78 $WORKDIR/UnpackedTarball/glew/lib/*.a \
79 $WORKDIR/UnpackedTarball/icu/source/lib/*.a \
80 $WORKDIR/UnpackedTarball/lcms2/src/.libs/*.a \
81 $WORKDIR/UnpackedTarball/libabw/src/lib/.libs/*.a \
82 $WORKDIR/UnpackedTarball/libcdr/src/lib/.libs/*.a \
83 $WORKDIR/UnpackedTarball/libmspub/src/lib/.libs/*.a \
84 $WORKDIR/UnpackedTarball/libmwaw/src/lib/.libs/*.a \
85 $WORKDIR/UnpackedTarball/libodfgen/src/.libs/*.a \
86 $WORKDIR/UnpackedTarball/liborcus/src/*/.libs/*.a \
87 $WORKDIR/UnpackedTarball/libvisio/src/lib/.libs/*.a \
88 $WORKDIR/UnpackedTarball/libwp?/src/lib/.libs/*.a \
89 $WORKDIR/UnpackedTarball/openssl/*.a \
90 $WORKDIR/UnpackedTarball/raptor/src/.libs/*.a \
91 $WORKDIR/UnpackedTarball/rasqal/src/.libs/*.a \
92 $WORKDIR/UnpackedTarball/redland/src/.libs/*.a \
93 $WORKDIR/UnpackedTarball/xml2/.libs/*.a \
94 $WORKDIR/UnpackedTarball/xslt/libxslt/.libs/*.a