forked from royqh1979/RedPanda-CPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Red_Panda_CPP.pro
103 lines (84 loc) · 2.91 KB
/
Red_Panda_CPP.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
TEMPLATE = subdirs
SUBDIRS += \
RedPandaIDE \
astyle \
consolepauser \
redpanda_qt_utils \
qsynedit
astyle.subdir = tools/astyle
consolepauser.subdir = tools/consolepauser
redpanda_qt_utils.subdir = libs/redpanda_qt_utils
qsynedit.subdir = libs/qsynedit
# Add the dependencies so that the RedPandaIDE project can add the depended programs
# into the main app bundle
RedPandaIDE.depends = astyle consolepauser qsynedit
qsynedit.depends = redpanda_qt_utils
APP_NAME = RedPandaCPP
APP_VERSION = 2.26
TEST_VERSION = alpha7
win32: {
SUBDIRS += \
redpanda-win-git-askpass
redpanda-win-git-askpass.subdir = tools/redpanda-win-git-askpass
RedPandaIDE.depends += redpanda-win-git-askpass
}
unix: {
SUBDIRS += \
redpanda-git-askpass
redpanda-git-askpass.subdir = tools/redpanda-git-askpass
RedPandaIDE.depends += redpanda-git-askpass
}
linux: {
isEmpty(PREFIX) {
PREFIX = /usr/local
}
isEmpty(LIBEXECDIR) {
LIBEXECDIR = $${PREFIX}/libexec
}
QMAKE_SUBSTITUTES += platform/linux/redpandaide.desktop.in
resources.path = $${PREFIX}/share/$${APP_NAME}
resources.files += platform/linux/templates
INSTALLS += resources
docs.path = $${PREFIX}/share/doc/$${APP_NAME}
docs.files += README.md
docs.files += NEWS.md
docs.files += LICENSE
INSTALLS += docs
equals(XDG_ADAPTIVE_ICON, "ON") {
xdgicons.path = $${PREFIX}/share/icons/hicolor/scalable/apps/
xdgicons.files += platform/linux/redpandaide.svg
REDPANDA_ICON_PATH = redpandaide
INSTALLS += xdgicons
} else {
pixmaps.path = $${PREFIX}/share/pixmaps
pixmaps.files += platform/linux/redpandaide.png
REDPANDA_ICON_PATH = $${PREFIX}/share/pixmaps/redpandaide.png
INSTALLS += pixmaps
}
desktop.path = $${PREFIX}/share/applications
desktop.files += platform/linux/redpandaide.desktop
INSTALLS += desktop
}
win32: {
!isEmpty(PREFIX) {
target.path = $${PREFIX}
QMAKE_SUBSTITUTES += platform/windows/installer-scripts/config.nsh.in
QMAKE_SUBSTITUTES += platform/windows/installer-scripts/config32.nsh.in
QMAKE_SUBSTITUTES += platform/windows/installer-scripts/config-clang.nsh.in
resources.path = $${PREFIX}
resources.files += platform/windows/templates
resources.files += platform/windows/installer-scripts/config.nsh
resources.files += platform/windows/installer-scripts/config32.nsh
resources.files += platform/windows/installer-scripts/config-clang.nsh
resources.files += README.md
resources.files += NEWS.md
resources.files += LICENSE
resources.files += RedPandaIDE/images/devcpp.ico
INSTALLS += resources
equals(X86_64, "ON") {
extra_templates.path = $${PREFIX}/templates
extra_templates.files += platform/windows/templates-win64/*
INSTALLS += extra_templates
}
}
}