-
Notifications
You must be signed in to change notification settings - Fork 1
/
liquid.pro
111 lines (83 loc) · 3.89 KB
/
liquid.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
VERSION_MAJOR = 0
VERSION_MINOR = 7
VERSION_PATCH = 11
VERSION = $${VERSION_MAJOR}.$${VERSION_MINOR}.$${VERSION_PATCH}
QT += core gui webenginewidgets
CONFIG += c++11
TEMPLATE = app
DESTDIR = build
PROG_NAME = liquid
SRC_DIR = src
INC_DIR = inc
FORMS_DIR = ui
OBJECTS_DIR = .objs
MOC_DIR = .mocs
UI_DIR = .uis
RCC_DIR = .qrcs
INCLUDEPATH += $${INC_DIR}
HEADERS += inc/lqd.h \
inc/liquid.hpp \
inc/liquidappcookiejar.hpp \
inc/liquidappconfigwindow.hpp \
inc/liquidappwebpage.hpp \
inc/liquidappwindow.hpp \
inc/mainwindow.hpp \
SOURCES += src/liquid.cpp \
src/liquidappcookiejar.cpp \
src/liquidappconfigwindow.cpp \
src/liquidappwebpage.cpp \
src/liquidappwindow.cpp \
src/main.cpp \
src/mainwindow.cpp \
RESOURCES = res/resources.qrc
OTHER_FILES += res/images/$${PROG_NAME}.svg \
res/styles/base.qss \
res/styles/dark.qss \
res/styles/light.qss
QMAKE_CLEAN += -r $${DESTDIR}/$${PROG_NAME}
CONFIG += debug
DEFINES += PROG_NAME=\\\"$${PROG_NAME}\\\"
DEFINES += "VERSION_MAJOR=$$VERSION_MAJOR" \
"VERSION_MINOR=$$VERSION_MINOR" \
"VERSION_PATCH=$$VERSION_PATCH" \
DEFINES += VERSION=\\\"$${VERSION}\\\"
# GNU/Linux, FreeBSD, and similar
unix:!mac {
isEmpty(PREFIX) {
PREFIX = /usr
}
BINDIR = $${PREFIX}/bin
DATADIR =$${PREFIX}/share
OTHER_FILES += dist/$${PROG_NAME}.desktop
target.path = $${BINDIR}
INSTALLS += target
desktop.path = $${DATADIR}/applications
eval(desktop.files += dist/$${PROG_NAME}.desktop)
INSTALLS += desktop
icon.path = $${DATADIR}/icons/hicolor/scalable/apps
eval(icon.files += res/images/$${PROG_NAME}.svg)
INSTALLS += icon
}
# macOS
macx: {
HEADERS += inc/SetWindowBackgroundColor.h
OBJECTIVE_SOURCES += src/SetWindowBackgroundColor.mm
LIBS += -framework Cocoa
QMAKE_CLEAN += -r $${DESTDIR}/$${TARGET}.app \
$${DESTDIR}/$${TARGET}.icns \
$${DESTDIR}/$${TARGET}.iconset
!exists($${DESTDIR}/$${TARGET}.icns) {
QMAKE_PRE_LINK += mkdir -p $${DESTDIR}/$${TARGET}.iconset &&
QMAKE_PRE_LINK += convert -density 5.64705882353 -background none -resize 16x16 $${PWD}/res/images/$${PROG_NAME}.svg $${DESTDIR}/$${TARGET}.iconset/icon_16x16.png &&
QMAKE_PRE_LINK += convert -density 11.2941176471 -background none -resize 32x32 $${PWD}/res/images/$${PROG_NAME}.svg $${DESTDIR}/$${TARGET}.iconset/icon_16x16@2x.png &&
QMAKE_PRE_LINK += cp $${DESTDIR}/$${TARGET}.iconset/icon_16x16@2x.png $${DESTDIR}/$${TARGET}.iconset/icon_32x32.png &&
QMAKE_PRE_LINK += convert -density 22.5882352941 -background none -resize 64x64 $${PWD}/res/images/$${PROG_NAME}.svg $${DESTDIR}/$${TARGET}.iconset/icon_32x32@2x.png &&
QMAKE_PRE_LINK += cp $${DESTDIR}/$${TARGET}.iconset/icon_32x32@2x.png $${DESTDIR}/$${TARGET}.iconset/icon_64x64.png &&
QMAKE_PRE_LINK += convert -density 45.1764705882 -background none -resize 128x128 $${PWD}/res/images/$${PROG_NAME}.svg $${DESTDIR}/$${TARGET}.iconset/icon_64x64@2x.png &&
QMAKE_PRE_LINK += cp $${DESTDIR}/$${TARGET}.iconset/icon_64x64@2x.png $${DESTDIR}/$${TARGET}.iconset/icon_128x128.png &&
QMAKE_PRE_LINK += convert -density 90.3529411765 -background none -resize 256x256 $${PWD}/res/images/$${PROG_NAME}.svg $${DESTDIR}/$${TARGET}.iconset/icon_128x128@2x.png &&
QMAKE_PRE_LINK += cp $${DESTDIR}/$${TARGET}.iconset/icon_128x128@2x.png $${DESTDIR}/$${TARGET}.iconset/icon_256x256.png &&
QMAKE_PRE_LINK += iconutil -c icns $${DESTDIR}/$${TARGET}.iconset
}
QMAKE_POST_LINK += cp $${DESTDIR}/$${TARGET}.icns $${DESTDIR}/$${TARGET}.app/Contents/Resources/
}