- Support FilesystemHierarchyStandard on Linux/Unix using preprocessor macros in .pro files.

- Add support for "make install" and "qmake PREFIX=" to improve YACReader packageability.
- Add .desktop files for YACReader and YACReaderLibrary X11 desktop integration.
- Add central YACReader.pro file as alternative to compileX11.sh
- Add p7zip patch support and sourcecode check to .pro files
This commit is contained in:
Felix Kauselmann
2014-06-25 18:15:41 +02:00
parent 7681fe699b
commit 1d6d605a26
16 changed files with 225 additions and 11 deletions

View File

@ -197,8 +197,12 @@ bool CompressedArchive::loadFunctions()
// fix2: rename 7z.so to 7z.dylib
if(sevenzLib == 0)
{
#ifdef Q_OS_UNIX
rarLib = new QLibrary(QApplication::applicationDirPath()+"/utils/Codecs/Rar29");
#if defined Q_OS_UNIX
#if defined Q_OS_MAC
rarLib = new QLibrary(QApplication::applicationDirPath()+"/utils/Codecs/Rar29");
#else
rarLib = new QLibrary(QString(LIBDIR)+"/p7zip/Codecs/Rar29.so");
#endif
if(!rarLib->load())
{
qDebug() << "Error Loading Rar29.so : " + rarLib->errorString() << endl;
@ -206,7 +210,11 @@ bool CompressedArchive::loadFunctions()
return false;
}
#endif
sevenzLib = new QLibrary(QApplication::applicationDirPath()+"/utils/7z");
#if defined Q_OS_UNIX && !defined Q_OS_MAC
sevenzLib = new QLibrary(QString(LIBDIR)+"/p7zip/7z.so");
#else
sevenzLib = new QLibrary(QApplication::applicationDirPath()+"/utils/7z");
#endif
}
if(!sevenzLib->load())
{