Completed install-building script for current functionality

This commit is contained in:
Jean-Francois Dockes 2015-10-12 12:29:44 +02:00
parent 0a7c3f51dd
commit 264483e26a
4 changed files with 81 additions and 30 deletions

View file

@ -1,31 +1,43 @@
#!/bin/sh #!/bin/sh
fatal()
{
echo $*
exit 1
}
Usage()
{
fatal mkinstdir.sh targetdir
}
test $# -eq 1 || Usage
DESTDIR=$1
test -d $DESTDIR || mkdir $DESTDIR || fatal cant create $DESTDIR
# Script to make a prototype recoll install directory from locally compiled # Script to make a prototype recoll install directory from locally compiled
# software. *** Needs msys or cygwin *** # software. *** Needs msys or cygwin ***
################################ ################################
# Local values (to be adjusted) # Local values (to be adjusted)
# Target directory where we copy things.
DESTDIR=c:/recollinst
# Recoll src tree # Recoll src tree
RCL=c:/recoll/src/ RCL=c:/recoll/src/
# Note: unrtf not under recolldeps because it's a clone from the # Note: unrtf not under recolldeps because it's a clone from the
# original mercurial repository # original mercurial repository
UNRTF=c:/unrtf UNRTF=c:/unrtf
# antiword is under recolldeps: it's not really maintained any more # antiword is under recolldeps: it's not really maintained any more
# and has no public repository # and has no public repository
ANTIWORD=c:/recolldeps/antiword ANTIWORD=c:/recolldeps/antiword
PYXSLT=C:/recolldeps/pyxslt
CONFIGURATION=Release PYEXIV2=C:/recolldeps/pyexiv2
PLATFORM=Win32 LIBXAPIAN=c:/temp/xapian-core-1.2.21/.libs/libxapian-22.dll
MUTAGEN=C:/temp/mutagen-1.31/
LIBXAPIAN=c:/recolldeps/xapian/xapian-core-1.2.21/.libs/libxapian-22.dll EPUB=C:/temp/epub-0.5.2
ZLIB=c:/temp/zlib-1.2.8
MUTAGEN=C:/recolldeps/mutagen-1.31/ POPPLER=c:/temp/poppler-0.36/
# Where to copy the Qt Dlls from: # Where to copy the Qt Dlls from:
QTBIN=C:/Qt/5.5/mingw492_32/bin QTBIN=C:/Qt/5.5/mingw492_32/bin
@ -42,17 +54,16 @@ RCLQ=$RCLW/build-recollq-${QTA}-Debug/debug/recollq.exe
RCLS=$RCLW/build-rclstartw-${QTA}-Debug/debug/rclstartw.exe RCLS=$RCLW/build-rclstartw-${QTA}-Debug/debug/rclstartw.exe
# Needed for a VS build (which we did not ever complete because of
# missing Qt VS2015 support). Needed for unrtf
CONFIGURATION=Release
PLATFORM=Win32
################ ################
# Script: # Script:
FILTERS=$DESTDIR/Share/filters FILTERS=$DESTDIR/Share/filters
fatal()
{
echo $*
exit 1
}
# checkcopy. # checkcopy.
chkcp() chkcp()
{ {
@ -67,7 +78,8 @@ copyqt()
Qt5Positioningd.dll Qt5PrintSupportd.dll Qt5Qmld.dll Qt5Quickd.dll \ Qt5Positioningd.dll Qt5PrintSupportd.dll Qt5Qmld.dll Qt5Quickd.dll \
Qt5Sensorsd.dll Qt5Sqld.dll Qt5WebChanneld.dll Qt5WebKitWidgetsd.dll \ Qt5Sensorsd.dll Qt5Sqld.dll Qt5WebChanneld.dll Qt5WebKitWidgetsd.dll \
Qt5WebKitd.dll Qt5Widgetsd.dll Qt5Xmld.dll icudt54.dll \ Qt5WebKitd.dll Qt5Widgetsd.dll Qt5Xmld.dll icudt54.dll \
icuin54.dll icuuc54.dll ; do icuin54.dll icuuc54.dll libgcc_s_dw2-1.dll libwinpthread-1.dll \
libstdc++-6.dll ; do
chkcp $QTBIN/$dll $DESTDIR chkcp $QTBIN/$dll $DESTDIR
done done
} }
@ -76,6 +88,10 @@ copyxapian()
{ {
chkcp $LIBXAPIAN $DESTDIR chkcp $LIBXAPIAN $DESTDIR
} }
copyzlib()
{
chkcp $ZLIB/zlib1.dll $DESTDIR
}
copyrecoll() copyrecoll()
{ {
@ -105,7 +121,10 @@ copyrecoll()
copyantiword() copyantiword()
{ {
bindir=$ANTIWORD/Win32-only/$PLATFORM/$CONFIGURATION # MS VS
#bindir=$ANTIWORD/Win32-only/$PLATFORM/$CONFIGURATION
# MINGW
bindir=$ANTIWORD/
test -d $Filters/Resources || mkdir -p $FILTERS/Resources || exit 1 test -d $Filters/Resources || mkdir -p $FILTERS/Resources || exit 1
chkcp $bindir/antiword.exe $FILTERS chkcp $bindir/antiword.exe $FILTERS
@ -129,12 +148,48 @@ copymutagen()
chkcp $MUTAGEN/build/lib/mutagen/mp3.py $FILTERS/mutagen chkcp $MUTAGEN/build/lib/mutagen/mp3.py $FILTERS/mutagen
} }
copyepub()
{
cp -rp $EPUB/build/lib/epub $FILTERS
# chkcp to check that epub is where we think it is
chkcp $EPUB/build/lib/epub/opf.py $FILTERS/epub
}
copypyexiv2()
{
cp -rp $PYEXIV2/pyexiv2 $FILTERS
# Check
chkcp $PYEXIV2/pyexiv2/exif.py $FILTERS/pyexiv2
}
copyxslt()
{
chkcp $PYXSLT/libxslt.py $FILTERS/
cp -rp $PYXSLT/* $FILTERS
}
copypoppler()
{
for f in pdftotext.exe libpoppler.dll freetype6.dll jpeg62.dll \
libpng16-16.dll zlib1.dll libtiff3.dll; do
chkcp $POPPLER/bin/$f $FILTERS/
done
}
for d in doc examples filters images translations; do for d in doc examples filters images translations; do
test -d $DESTDIR/Share/$d || mkdir -p $DESTDIR/Share/$d || \ test -d $DESTDIR/Share/$d || mkdir -p $DESTDIR/Share/$d || \
fatal mkdir $d failed fatal mkdir $d failed
done done
copyqt
copyxapian copyxapian
copyzlib
copyrecoll copyrecoll
copyunrtf copypoppler
copyantiword copyantiword
copyunrtf
copyxslt
copymutagen
copyepub
copypyexiv2

View file

@ -116,11 +116,11 @@ windows {
contains(QMAKE_CC, cl){ contains(QMAKE_CC, cl){
# Visual Studio # Visual Studio
} }
LIBS += c:/recolldeps/xapian/xapian-core-1.2.21/.libs/libxapian-22.dll \ LIBS += c:/temp/xapian-core-1.2.21/.libs/libxapian-22.dll \
c:/recolldeps/zlib-1.2.8/zlib1.dll -liconv -lshlwapi -lpsapi -lkernel32 c:/temp/zlib-1.2.8/zlib1.dll -liconv -lshlwapi -lpsapi -lkernel32
INCLUDEPATH += ../../windows \ INCLUDEPATH += ../../windows \
C:/recolldeps/xapian/xapian-core-1.2.8/include C:/temp/xapian-core-1.2.21/include
} }
unix { unix {

View file

@ -30,10 +30,8 @@ windows {
} }
LIBS += \ LIBS += \
C:/recoll/src/windows/build-librecoll-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/librecoll.dll \ C:/recoll/src/windows/build-librecoll-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/librecoll.dll \
c:/recolldeps/xapian/xapian-core-1.2.21/.libs/libxapian-22.dll \ -lshlwapi -lpsapi -lkernel32
c:/recolldeps/zlib-1.2.8/zlib1.dll \
-liconv -lshlwapi -lpsapi -lkernel32
INCLUDEPATH += ../../windows \ INCLUDEPATH += ../../windows \
C:/recolldeps/xapian/xapian-core-1.2.8/include C:/temp/xapian-core-1.2.8/include
} }

View file

@ -28,9 +28,7 @@ windows {
} }
LIBS += \ LIBS += \
C:/recoll/src/windows/build-librecoll-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/librecoll.dll \ C:/recoll/src/windows/build-librecoll-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/librecoll.dll \
c:/recolldeps/xapian/xapian-core-1.2.21/.libs/libxapian-22.dll \ -lshlwapi -lpsapi -lkernel32
c:/recolldeps/zlib-1.2.8/zlib1.dll \
-liconv -lshlwapi -lpsapi -lkernel32
INCLUDEPATH += ../../windows \ INCLUDEPATH += ../../windows \
C:/recolldeps/xapian/xapian-core-1.2.8/include C:/recolldeps/xapian/xapian-core-1.2.8/include