2015-05-13 07:49:49 -07:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2015-03-03T02:49:12
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
2017-03-05 05:55:48 -08:00
|
|
|
lessThan(QT_MAJOR_VERSION, 5) {
|
|
|
|
error(Your Qt version $$QT_VERSION is not supported. Upgrade to Qt5.)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QT += core gui widgets
|
2015-05-27 02:15:13 -07:00
|
|
|
win32:QT += winextras
|
2015-05-13 07:49:49 -07:00
|
|
|
|
|
|
|
|
|
|
|
TARGET = MinetestMapperGui
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
|
|
|
|
SOURCES += main.cpp\
|
2015-06-02 19:42:10 -07:00
|
|
|
mainwindow.cpp \
|
2015-07-02 06:11:29 -07:00
|
|
|
colorlineedit.cpp \
|
2016-12-14 01:00:35 -08:00
|
|
|
geometry.cpp \
|
2015-10-14 08:58:37 -07:00
|
|
|
geometrywidget.cpp \
|
2016-11-02 02:11:53 -07:00
|
|
|
configdialog.cpp \
|
2016-12-14 01:00:35 -08:00
|
|
|
makecolors.cpp \
|
|
|
|
drawmapfigure.cpp \
|
|
|
|
drawmapfiguretablemodel.cpp \
|
2017-01-27 03:15:24 -08:00
|
|
|
figuredelegate.cpp \
|
2017-03-06 23:39:00 -08:00
|
|
|
minetestmapperexe.cpp \
|
|
|
|
colorstxtwizard.cpp \
|
2016-12-14 01:00:35 -08:00
|
|
|
|
2015-05-13 07:49:49 -07:00
|
|
|
|
2015-06-02 19:42:10 -07:00
|
|
|
HEADERS += mainwindow.h \
|
2015-07-02 06:11:29 -07:00
|
|
|
colorlineedit.h \
|
2016-12-14 01:00:35 -08:00
|
|
|
geometry.h \
|
2015-10-14 08:58:37 -07:00
|
|
|
geometrywidget.h \
|
2016-11-02 02:11:53 -07:00
|
|
|
configdialog.h \
|
2016-12-14 01:00:35 -08:00
|
|
|
makecolors.h \
|
|
|
|
drawmapfigure.h \
|
|
|
|
drawmapfiguretablemodel.h \
|
2017-01-27 03:15:24 -08:00
|
|
|
figuredelegate.h \
|
2017-03-06 23:39:00 -08:00
|
|
|
minetestmapperexe.h \
|
|
|
|
colorstxtwizard.h \
|
2015-05-13 07:49:49 -07:00
|
|
|
|
2015-07-02 06:11:29 -07:00
|
|
|
FORMS += mainwindow.ui \
|
2015-10-14 08:58:37 -07:00
|
|
|
geometrywidget.ui \
|
2017-03-06 23:39:00 -08:00
|
|
|
configdialog.ui
|
2015-05-13 07:49:49 -07:00
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
minetestmappergui.qrc
|
|
|
|
|
2017-03-02 22:02:15 -08:00
|
|
|
TRANSLATIONS = translations/gui_de.ts\
|
|
|
|
translations/gui_en.ts
|
2015-05-13 07:49:49 -07:00
|
|
|
|
2017-03-05 18:33:19 -08:00
|
|
|
CONFIG += c++11
|
2015-05-15 10:44:37 -07:00
|
|
|
|
2015-07-19 23:44:41 -07:00
|
|
|
GIT_VERSION = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags)
|
|
|
|
#something like 0.4.2-55-g123c456
|
|
|
|
isEmpty(GIT_VERSION) {
|
2017-03-05 03:54:29 -08:00
|
|
|
GIT_VERSION = 0.7.0
|
2015-07-19 23:44:41 -07:00
|
|
|
}
|
|
|
|
# Turns describe output like 0.4.2-55-g652c397 into "0.4.2.55.123c456"
|
2017-03-05 03:54:29 -08:00
|
|
|
GIT_VERSION ~= s/v/""
|
2015-07-19 23:44:41 -07:00
|
|
|
GIT_VERSION ~= s/-/"."
|
|
|
|
GIT_VERSION ~= s/g/""
|
2015-05-15 10:44:37 -07:00
|
|
|
|
2015-07-19 23:44:41 -07:00
|
|
|
DEFINES += GIT_VERSION=\\\"$$GIT_VERSION\\\"
|
|
|
|
|
|
|
|
VERSION = $$GIT_VERSION
|
|
|
|
win32 {
|
|
|
|
VERSION ~= s/\.[a-f0-9]{6,}//
|
|
|
|
#something like 0.4.2.55
|
|
|
|
}
|
2015-05-15 10:44:37 -07:00
|
|
|
|
2015-05-27 02:15:13 -07:00
|
|
|
RC_ICONS = images/icon.ico
|
2015-07-19 23:44:41 -07:00
|
|
|
RC_LANG = 0x04b0
|
2015-05-27 02:15:13 -07:00
|
|
|
|
|
|
|
QMAKE_TARGET_PRODUCT = "Minetest Mappger GUI"
|
|
|
|
QMAKE_TARGET_DESCRIPTION = "Graphical user interface for MinetestMapper"
|
2017-01-30 03:25:53 -08:00
|
|
|
QMAKE_TARGET_COPYRIGHT = "2015-2017 addi; CC BY"
|
2015-05-29 03:14:47 -07:00
|
|
|
|
2017-01-30 03:25:53 -08:00
|
|
|
win32:contains(QT_ARCH, i386) {
|
|
|
|
# Support for x32 Windows XP (Windows 5.01)
|
|
|
|
QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
|
|
|
|
}
|
2018-08-17 08:51:17 -07:00
|
|
|
|
|
|
|
# Copies the given files to the destination directory
|
|
|
|
defineTest(copyToDestdir) {
|
|
|
|
|
|
|
|
files = $$1
|
|
|
|
|
|
|
|
for(FILE, files) {
|
|
|
|
|
|
|
|
!equals(OUT_PWD, $$dirname(FILE)){
|
|
|
|
DDIR = $$shell_path($$OUT_PWD)
|
|
|
|
# Replace slashes in paths with backslashes for Windows
|
|
|
|
FILE = $$shell_path($$FILE)
|
|
|
|
|
|
|
|
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export(QMAKE_POST_LINK)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
win32:copyToDestdir($$PWD/mtmapperenv.bat)
|