-
Notifications
You must be signed in to change notification settings - Fork 18
/
rasplex-installer.pro
83 lines (66 loc) · 1.84 KB
/
rasplex-installer.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
77
78
79
80
81
82
83
#-------------------------------------------------
#
# Project created by QtCreator 2013-03-14T18:13:26
#
#-------------------------------------------------
QT += core gui xml network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = rasplex-installer
TEMPLATE = app
SOURCES += main.cpp\
installer.cpp \
confighandler.cpp \
downloadmanager.cpp \
diskwriter.cpp \
simplejsonparser.cpp
static { # everything below takes effect with CONFIG += static
LIBS += -L$$PWD/3rd-party
CONFIG += static
CONFIG += staticlib # this is needed if you create a static library, not a static executable
DEFINES += STATIC
message("~~~ static build ~~~") # this is for information, that the static build is done
}
HEADERS += installer.h \
diskwriter.h \
zlib.h \
zconf.h \
confighandler.h \
downloadmanager.h \
deviceenumerator.h \
simplejsonparser.h
win32 {
SOURCES += diskwriter_windows.cpp \
confighandler_windows.cpp \
deviceenumerator_windows.cpp
HEADERS += diskwriter_windows.h \
confighandler_windows.h \
deviceenumerator_windows.h
CONFIG += rtti
QMAKE_LFLAGS = -static -static-libgcc
RC_FILE = rasplex-installer.rc
}
unix {
# remove possible other optimization flags
QMAKE_CFLAGS_RELEASE -= -O
QMAKE_CFLAGS_RELEASE -= -O1
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CFLAGS_RELEASE -= -O3
# Optimize for size
QMAKE_CFLAGS_RELEASE += -Os
QMAKE_CXXFLAGS += -fPIC
SOURCES += diskwriter_unix.cpp \
confighandler_unix.cpp \
deviceenumerator_unix.cpp
HEADERS += diskwriter_unix.h \
confighandler_unix.h \
deviceenumerator_unix.h
}
linux* {
LIBS += -lblkid
}
FORMS += installer.ui
LIBS += -lz
lessThan(QT_MAJOR_VERSION, 5): LIBS += -lqjson
OTHER_FILES +=
RESOURCES += \
resources.qrc