cubiomes-viewer/cubiomes-viewer.pro

172 lines
4.8 KiB
Prolog

#-------------------------------------------------
#
# Project created by QtCreator 2020-07-11T11:37:33
#
#-------------------------------------------------
QT += core widgets
# uncomment to override the profile compiler
#QMAKE_CC = clang
#QMAKE_CXX = clang++
CHARSET = -finput-charset=UTF-8 -fexec-charset=UTF-8
QMAKE_CFLAGS = $$CHARSET -fwrapv -DSTRUCT_CONFIG_OVERRIDE=1
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -std=gnu++11
QMAKE_CXXFLAGS_RELEASE *= -O3
win32: {
CONFIG += static_gnu
# thanks to nullprogram for dealing with the Windows UTF-16 nonsense
LIBWINSANE = $$PWD/src/libwinsane
libwinsane.target = libwinsane
libwinsane.output = $$LIBWINSANE/libwinsane.o
libwinsane.commands = $(MAKE) -C $$LIBWINSANE -f $$LIBWINSANE/Makefile
QMAKE_EXTRA_TARGETS += libwinsane
PRE_TARGETDEPS += libwinsane
LIBS += $$LIBWINSANE/libwinsane.o
}
static_gnu: {
LIBS += -static -static-libgcc -static-libstdc++
}
# compile cubiomes
release: {
CUTARGET = release
} else: { # may need the release target to be disabled: qmake CONFIG-=release
CUTARGET = debug
}
CUPATH = $$PWD/cubiomes
cubiomes.target = cubiomes
cubiomes.output = $$CUPATH/*.o $$CUPATH/libcubiomes.a
cubiomes.commands = $(MAKE) -C $$CUPATH -f $$CUPATH/makefile CFLAGS=\"$$QMAKE_CFLAGS\" $$CUTARGET
QMAKE_EXTRA_TARGETS += cubiomes
PRE_TARGETDEPS += cubiomes
LIBS += -lm $$CUPATH/libcubiomes.a
QMAKE_CLEAN += $$CUPATH/*.o $$CUPATH/libcubiomes.a
TARGET = cubiomes-viewer
SOURCES += \
src/aboutdialog.cpp \
src/analysis.cpp \
src/biomecolordialog.cpp \
src/collapsible.cpp \
src/conditiondialog.cpp \
src/configdialog.cpp \
src/extgendialog.cpp \
src/exportdialog.cpp \
src/formconditions.cpp \
src/formgen48.cpp \
src/formsearchcontrol.cpp \
src/gotodialog.cpp \
src/presetdialog.cpp \
src/protobasedialog.cpp \
src/quadlistdialog.cpp \
src/mapview.cpp \
src/quad.cpp \
src/rangedialog.cpp \
src/rangeslider.cpp \
src/search.cpp \
src/searchthread.cpp \
src/mainwindow.cpp \
src/main.cpp \
src/structuredialog.cpp
HEADERS += \
$$CUPATH/finders.h \
$$CUPATH/generator.h \
$$CUPATH/layers.h \
$$CUPATH/quadbase.h \
$$CUPATH/util.h \
src/aboutdialog.h \
src/analysis.h \
src/biomecolordialog.h \
src/collapsible.h \
src/conditiondialog.h \
src/configdialog.h \
src/extgendialog.h \
src/exportdialog.h \
src/formconditions.h \
src/formgen48.h \
src/formsearchcontrol.h \
src/gotodialog.h \
src/presetdialog.h \
src/protobasedialog.h \
src/quadlistdialog.h \
src/mapview.h \
src/quad.h \
src/cutil.h \
src/rangedialog.h \
src/rangeslider.h \
src/search.h \
src/searchthread.h \
src/seedtables.h \
src/mainwindow.h \
src/settings.h \
src/structuredialog.h
FORMS += \
src/aboutdialog.ui \
src/biomecolordialog.ui \
src/conditiondialog.ui \
src/configdialog.ui \
src/extgendialog.ui \
src/exportdialog.ui \
src/formconditions.ui \
src/formgen48.ui \
src/formsearchcontrol.ui \
src/gotodialog.ui \
src/presetdialog.ui \
src/protobasedialog.ui \
src/quadlistdialog.ui\
src/mainwindow.ui \
src/rangedialog.ui \
src/structuredialog.ui
TRANSLATIONS += \
rc/lang/en_US.ts
RESOURCES += \
rc/icons.qrc \
rc/style.qrc \
rc/examples.qrc \
rc/lang.qrc
# ----- translations -----
translations: {
# automatically run lupdate for pluralization default translation
THIS_FILE = cubiomes-viewer.pro
lupdate.input = THIS_FILE
lupdate.output = output.dummy.1 # removed by clean
lupdate.commands = $$[QT_INSTALL_BINS]/lupdate -pluralonly -noobsolete ${QMAKE_FILE_IN}
lupdate.CONFIG += no_link target_predeps
lrelease.input = TRANSLATIONS
lrelease.output = output.dummy.2 # removed by clean
lrelease.commands = $$[QT_INSTALL_BINS]/lrelease ${QMAKE_FILE_IN} \
-qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_IN_BASE}.qm
lrelease.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += lupdate lrelease
#CONFIG += lrelease embed_translations # does this do anything?
}
# enable network features with: qmake CONFIG+=with_network
with_network: {
QT += network
DEFINES += "WITH_UPDATER=1"
SOURCES += src/updater.cpp
HEADERS += src/updater.h
}