2021-01-04 22:07:27 +08:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2020-07-11T11:37:33
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
2021-06-10 02:21:10 +08:00
|
|
|
CUPATH = $$PWD/cubiomes
|
2021-01-04 22:07:27 +08:00
|
|
|
QT += core widgets
|
2021-06-10 02:21:10 +08:00
|
|
|
LIBS += -lm $$CUPATH/libcubiomes.a
|
|
|
|
|
2022-02-13 01:14:20 +08:00
|
|
|
# uncomment to override the profile compiler
|
2021-06-10 02:21:10 +08:00
|
|
|
#QMAKE_CC = clang
|
|
|
|
#QMAKE_CXX = clang++
|
2021-01-04 22:07:27 +08:00
|
|
|
|
2021-06-10 02:21:10 +08:00
|
|
|
QMAKE_CFLAGS = -fwrapv -DSTRUCT_CONFIG_OVERRIDE=1
|
|
|
|
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -std=gnu++11
|
2021-06-04 06:36:44 +08:00
|
|
|
QMAKE_CXXFLAGS_RELEASE *= -O3
|
|
|
|
|
2021-01-04 22:07:27 +08:00
|
|
|
win32: {
|
|
|
|
LIBS += -static -static-libgcc -static-libstdc++
|
|
|
|
}
|
|
|
|
|
2022-02-16 05:09:48 +08:00
|
|
|
# compile cubiomes
|
|
|
|
release: {
|
|
|
|
CUTARGET = release
|
|
|
|
} else: { # may need the release target to be disabled: qmake CONFIG-=release
|
|
|
|
CUTARGET = debug
|
|
|
|
}
|
|
|
|
QMAKE_PRE_LINK += $(MAKE) -C $$CUPATH -f $$CUPATH/makefile CFLAGS="-DSTRUCT_CONFIG_OVERRIDE=1" $$CUTARGET
|
2021-12-08 05:36:09 +08:00
|
|
|
QMAKE_CLEAN += $$CUPATH/*.o $$CUPATH/libcubiomes.a
|
2021-06-10 02:21:10 +08:00
|
|
|
|
2021-01-04 22:07:27 +08:00
|
|
|
TARGET = cubiomes-viewer
|
|
|
|
|
|
|
|
CONFIG += static
|
|
|
|
|
|
|
|
|
|
|
|
SOURCES += \
|
2021-06-03 23:04:28 +08:00
|
|
|
src/aboutdialog.cpp \
|
2021-06-04 17:49:13 +08:00
|
|
|
src/collapsible.cpp \
|
2021-06-03 23:04:28 +08:00
|
|
|
src/configdialog.cpp \
|
2022-02-20 06:03:23 +08:00
|
|
|
src/examplesdialog.cpp \
|
2021-07-18 21:35:22 +08:00
|
|
|
src/extgendialog.cpp \
|
2021-06-03 23:04:28 +08:00
|
|
|
src/formconditions.cpp \
|
|
|
|
src/formgen48.cpp \
|
|
|
|
src/formsearchcontrol.cpp \
|
|
|
|
src/gotodialog.cpp \
|
|
|
|
src/protobasedialog.cpp \
|
|
|
|
src/filterdialog.cpp \
|
|
|
|
src/quadlistdialog.cpp \
|
|
|
|
src/mapview.cpp \
|
|
|
|
src/quad.cpp \
|
2021-07-07 02:45:15 +08:00
|
|
|
src/rangedialog.cpp \
|
2022-02-28 03:57:14 +08:00
|
|
|
src/rangeslider.cpp \
|
2021-06-03 23:04:28 +08:00
|
|
|
src/search.cpp \
|
|
|
|
src/searchitem.cpp \
|
|
|
|
src/searchthread.cpp \
|
|
|
|
src/mainwindow.cpp \
|
|
|
|
src/main.cpp
|
2021-01-04 22:07:27 +08:00
|
|
|
|
|
|
|
HEADERS += \
|
2021-06-10 02:21:10 +08:00
|
|
|
$$CUPATH/finders.h \
|
|
|
|
$$CUPATH/generator.h \
|
|
|
|
$$CUPATH/layers.h \
|
|
|
|
$$CUPATH/util.h \
|
2021-06-03 23:04:28 +08:00
|
|
|
src/aboutdialog.h \
|
2021-06-04 17:49:13 +08:00
|
|
|
src/collapsible.h \
|
2021-06-03 23:04:28 +08:00
|
|
|
src/configdialog.h \
|
2022-02-20 06:03:23 +08:00
|
|
|
src/examplesdialog.h \
|
2021-07-18 21:35:22 +08:00
|
|
|
src/extgendialog.h \
|
2021-06-03 23:04:28 +08:00
|
|
|
src/formconditions.h \
|
|
|
|
src/formgen48.h \
|
|
|
|
src/formsearchcontrol.h \
|
|
|
|
src/gotodialog.h \
|
|
|
|
src/protobasedialog.h \
|
|
|
|
src/filterdialog.h \
|
|
|
|
src/quadlistdialog.h \
|
|
|
|
src/mapview.h \
|
|
|
|
src/quad.h \
|
|
|
|
src/cutil.h \
|
2021-07-07 02:45:15 +08:00
|
|
|
src/rangedialog.h \
|
2022-02-28 03:57:14 +08:00
|
|
|
src/rangeslider.h \
|
2021-06-03 23:04:28 +08:00
|
|
|
src/search.h \
|
|
|
|
src/searchitem.h \
|
|
|
|
src/searchthread.h \
|
|
|
|
src/seedtables.h \
|
|
|
|
src/mainwindow.h \
|
|
|
|
src/settings.h
|
2021-01-04 22:07:27 +08:00
|
|
|
|
|
|
|
FORMS += \
|
2021-06-03 23:04:28 +08:00
|
|
|
src/aboutdialog.ui \
|
|
|
|
src/configdialog.ui \
|
2022-02-20 06:03:23 +08:00
|
|
|
src/examplesdialog.ui \
|
2021-07-18 21:35:22 +08:00
|
|
|
src/extgendialog.ui \
|
2021-06-03 23:04:28 +08:00
|
|
|
src/formconditions.ui \
|
|
|
|
src/formgen48.ui \
|
|
|
|
src/formsearchcontrol.ui \
|
|
|
|
src/gotodialog.ui \
|
|
|
|
src/protobasedialog.ui \
|
|
|
|
src/filterdialog.ui \
|
|
|
|
src/quadlistdialog.ui\
|
2021-07-07 02:45:15 +08:00
|
|
|
src/mainwindow.ui \
|
|
|
|
src/rangedialog.ui
|
2021-01-04 22:07:27 +08:00
|
|
|
|
|
|
|
RESOURCES += \
|
2022-02-20 06:03:23 +08:00
|
|
|
rc/icons.qrc \
|
|
|
|
rc/style.qrc \
|
|
|
|
rc/examples.qrc
|
|
|
|
|
|
|
|
|
2022-03-03 04:24:26 +08:00
|
|
|
# disable network features completely with: qmake CONFIG+=without_network
|
|
|
|
!without_network: {
|
|
|
|
QT += network
|
|
|
|
DEFINES += "WITH_UPDATER=1"
|
|
|
|
SOURCES += src/updater.cpp
|
|
|
|
HEADERS += src/updater.h
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|