-
Notifications
You must be signed in to change notification settings - Fork 2
/
instead-launcher.pro
76 lines (64 loc) · 1.78 KB
/
instead-launcher.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -------------------------------------------------
# Project created by QtCreator 2010-01-17T11:48:50
# -------------------------------------------------
QT += network
TARGET = instead-launcher
TEMPLATE = app
SOURCES += main.cpp \
mainwindow.cpp \
unzip/unzip.c \
unzip/ioapi.c \
qunzip.cpp \
platform.cpp \
updatewidget.cpp \
global.cpp \
aboutwidget.cpp \
urlresolver.cpp
HEADERS += mainwindow.h \
unzip/unzip.h \
unzip/ioapi.h \
qunzip.h \
platform.h \
updatewidget.h \
config.h \
global.h \
aboutwidget.h \
urlresolver.h
FORMS += mainwindow.ui
#LIBS += -qt-zlib # use zlib embedded into qt
LIBS += -lz
DEFINES += NOUNCRIPT # need for unzip library build
RESOURCES += instead-launcher.qrc
TRANSLATIONS += instead-launcher_ru.ts
win32:INCLUDEPATH += ${QTDIR}/src/3rdparty/zlib
OTHER_FILES += README.TXT
RC_FILE = resources.rc
unix:exists($$[QT_INSTALL_BINS]/lrelease){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease
}
unix:exists($$[QT_INSTALL_BINS]/lrelease-qt4){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease-qt4
}
win32:exists($$[QT_INSTALL_BINS]/lrelease.exe){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease.exe
}
isEmpty(LRELEASE_EXECUTABLE){
error(Could not find lrelease executable)
}
else {
message(Found lrelease executable: $$LRELEASE_EXECUTABLE)
}
message(generating translations)
unix:system(find . -name \*.ts | xargs $$LRELEASE_EXECUTABLE)
win32:system(for /r %B in (*.ts) do $$LRELEASE_EXECUTABLE %B)
unix:DESTDIR = .
unix:system(cat instead-launcher.desktop.in | sed -e "s\|@BIN\|$$PREFIX\/bin\|g" > instead-launcher.desktop)
unix{
isEmpty(PREFIX){
PREFIX=/usr/local
}
target.path = $$PREFIX/bin
desktop.files = instead-launcher.desktop
desktop.path = $$PREFIX/share/applications
INSTALLS += desktop target
}