MinetestMapperGUI/MinetestMapperGui.pro

109 lines
2.4 KiB
Prolog
Raw Permalink Normal View History

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
win32:QT += winextras
2015-05-13 07:49:49 -07:00
TARGET = MinetestMapperGui
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
colorlineedit.cpp \
2016-12-14 01:00:35 -08:00
geometry.cpp \
2015-10-14 08:58:37 -07:00
geometrywidget.cpp \
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
HEADERS += mainwindow.h \
colorlineedit.h \
2016-12-14 01:00:35 -08:00
geometry.h \
2015-10-14 08:58:37 -07:00
geometrywidget.h \
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
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
CONFIG += c++11
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-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
}
RC_ICONS = images/icon.ico
2015-07-19 23:44:41 -07:00
RC_LANG = 0x04b0
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"
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)