2021-04-06 23:10:57 +08:00
|
|
|
TEMPLATE = subdirs
|
|
|
|
|
|
|
|
SUBDIRS += \
|
2021-12-29 09:43:32 +08:00
|
|
|
RedPandaIDE \
|
2022-09-25 17:43:31 +08:00
|
|
|
consolepauser \
|
|
|
|
redpanda_qt_utils \
|
2023-12-22 18:03:29 +08:00
|
|
|
qsynedit \
|
|
|
|
lua
|
|
|
|
|
2022-09-25 17:43:31 +08:00
|
|
|
consolepauser.subdir = tools/consolepauser
|
|
|
|
redpanda_qt_utils.subdir = libs/redpanda_qt_utils
|
|
|
|
qsynedit.subdir = libs/qsynedit
|
2023-12-22 18:03:29 +08:00
|
|
|
lua.subdir = libs/lua
|
2021-11-01 20:44:08 +08:00
|
|
|
|
2022-05-28 20:43:07 +08:00
|
|
|
# Add the dependencies so that the RedPandaIDE project can add the depended programs
|
|
|
|
# into the main app bundle
|
2024-06-10 09:17:16 +08:00
|
|
|
RedPandaIDE.depends = consolepauser qsynedit lua
|
2022-09-25 17:43:31 +08:00
|
|
|
qsynedit.depends = redpanda_qt_utils
|
2022-05-28 20:43:07 +08:00
|
|
|
|
2023-10-21 16:06:33 +08:00
|
|
|
APP_NAME = RedPandaCPP
|
2024-03-25 11:56:11 +08:00
|
|
|
include(version.inc)
|
|
|
|
|
|
|
|
!isEmpty(APP_VERSION_SUFFIX): {
|
|
|
|
APP_VERSION = "$${APP_VERSION}$${APP_VERSION_SUFFIX}"
|
|
|
|
}
|
2023-10-21 16:06:33 +08:00
|
|
|
|
2024-05-08 10:27:00 +08:00
|
|
|
# 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
|
|
|
|
# }
|
2022-02-26 18:50:07 +08:00
|
|
|
|
2024-02-26 10:51:15 +08:00
|
|
|
unix:!macos: {
|
2022-01-05 08:18:47 +08:00
|
|
|
isEmpty(PREFIX) {
|
|
|
|
PREFIX = /usr/local
|
|
|
|
}
|
2023-01-03 12:18:02 +08:00
|
|
|
isEmpty(LIBEXECDIR) {
|
|
|
|
LIBEXECDIR = $${PREFIX}/libexec
|
|
|
|
}
|
2022-01-05 08:18:47 +08:00
|
|
|
|
2024-03-10 08:04:41 +08:00
|
|
|
QMAKE_SUBSTITUTES += platform/linux/RedPandaIDE.desktop.in
|
2022-01-05 09:42:26 +08:00
|
|
|
|
2022-01-05 08:18:47 +08:00
|
|
|
resources.path = $${PREFIX}/share/$${APP_NAME}
|
2022-09-25 10:16:13 +08:00
|
|
|
resources.files += platform/linux/templates
|
2021-12-30 09:04:51 +08:00
|
|
|
INSTALLS += resources
|
2022-01-05 08:18:47 +08:00
|
|
|
|
2022-01-05 09:08:44 +08:00
|
|
|
docs.path = $${PREFIX}/share/doc/$${APP_NAME}
|
2022-01-05 08:18:47 +08:00
|
|
|
docs.files += README.md
|
|
|
|
docs.files += NEWS.md
|
|
|
|
docs.files += LICENSE
|
|
|
|
INSTALLS += docs
|
|
|
|
|
2024-02-26 10:51:15 +08:00
|
|
|
xdgicons.path = $${PREFIX}/share/icons/hicolor/scalable/apps/
|
|
|
|
xdgicons.files += platform/linux/redpandaide.svg
|
|
|
|
INSTALLS += xdgicons
|
2022-01-05 08:18:47 +08:00
|
|
|
|
2022-01-05 09:42:26 +08:00
|
|
|
desktop.path = $${PREFIX}/share/applications
|
2024-03-10 08:04:41 +08:00
|
|
|
desktop.files += platform/linux/RedPandaIDE.desktop
|
2022-01-05 09:42:26 +08:00
|
|
|
INSTALLS += desktop
|
2024-02-26 10:51:15 +08:00
|
|
|
|
|
|
|
mime.path = $${PREFIX}/share/mime/packages
|
|
|
|
mime.files = platform/linux/redpandaide.xml
|
|
|
|
INSTALLS += mime
|
2021-12-30 09:04:51 +08:00
|
|
|
}
|
2022-01-16 15:08:54 +08:00
|
|
|
|
|
|
|
win32: {
|
|
|
|
!isEmpty(PREFIX) {
|
|
|
|
target.path = $${PREFIX}
|
|
|
|
|
|
|
|
resources.path = $${PREFIX}
|
2023-02-14 23:42:11 +08:00
|
|
|
|
2022-09-25 10:16:13 +08:00
|
|
|
resources.files += platform/windows/templates
|
2024-01-18 16:14:36 +08:00
|
|
|
resources.files += platform/windows/qt.conf
|
2022-01-16 15:08:54 +08:00
|
|
|
resources.files += README.md
|
|
|
|
resources.files += NEWS.md
|
|
|
|
resources.files += LICENSE
|
|
|
|
resources.files += RedPandaIDE/images/devcpp.ico
|
|
|
|
|
|
|
|
INSTALLS += resources
|
2023-02-14 23:42:11 +08:00
|
|
|
|
|
|
|
equals(X86_64, "ON") {
|
|
|
|
extra_templates.path = $${PREFIX}/templates
|
|
|
|
extra_templates.files += platform/windows/templates-win64/*
|
|
|
|
INSTALLS += extra_templates
|
|
|
|
}
|
2022-01-16 15:08:54 +08:00
|
|
|
}
|
|
|
|
}
|