Commit 34ffdfb9 authored by slelann's avatar slelann

MAJ pour build sous linux

parent baf4f76c
......@@ -59,8 +59,18 @@ void UploadThread::run()
QFileInfo fi(current->transfert.fileName);
QString tempImg = appPath.filePath("tmp.jpg");
QString tempFlv = appPath.filePath("tmp.flv");
QTemporaryFile fileImg(QString(QDir::tempPath() +"/XXXXXX.jpg"));
QTemporaryFile fileFlv(QString(QDir::tempPath() +"/XXXXXX.flv"));
if(!fileImg.open())
return;
if(!fileFlv.open())
return;
QString tempImg = fileImg.fileName();
QString tempFlv = fileFlv.fileName();
fileImg.close();
fileFlv.close();
#ifdef Q_WS_MAC
QString ffmpeg = appPath.filePath("ffmpeg");
#else
......
......@@ -37,3 +37,26 @@ mac {
CONFIG += x86 ppc
QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
}
unix {
#VARIABLES
isEmpty(PREFIX) {
PREFIX = /usr
}
BINDIR = $$PREFIX/bin
DATADIR =$$PREFIX/share
DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
#MAKE INSTALL
INSTALLS += target desktop icon128
target.path =$$BINDIR
desktop.path = $$DATADIR/applications
desktop.files += ubpttr.desktop
icon128.path = $$DATADIR/icons/hicolor/128x128/apps
icon128.files += ressources/ubpttr.png
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment