cubiomes-viewer/cubiomes-viewer.pro

120 lines
2.9 KiB
Prolog
Raw Normal View History

2021-01-04 22:07:27 +08:00
#-------------------------------------------------
#
# Project created by QtCreator 2020-07-11T11:37:33
#
#-------------------------------------------------
CUPATH = $$PWD/cubiomes
2021-01-04 22:07:27 +08:00
QT += core widgets
LIBS += -lm $$CUPATH/libcubiomes.a
# uncomment to override the profile compiler
#QMAKE_CC = clang
#QMAKE_CXX = clang++
2021-01-04 22:07:27 +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++
}
# 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
QMAKE_CLEAN += $$CUPATH/*.o $$CUPATH/libcubiomes.a
2021-01-04 22:07:27 +08:00
TARGET = cubiomes-viewer
CONFIG += static
SOURCES += \
src/aboutdialog.cpp \
src/collapsible.cpp \
src/configdialog.cpp \
src/examplesdialog.cpp \
2021-07-18 21:35:22 +08:00
src/extgendialog.cpp \
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 \
src/rangeslider.cpp \
src/search.cpp \
src/searchitem.cpp \
src/searchthread.cpp \
src/mainwindow.cpp \
src/main.cpp
2021-01-04 22:07:27 +08:00
HEADERS += \
$$CUPATH/finders.h \
$$CUPATH/generator.h \
$$CUPATH/layers.h \
$$CUPATH/util.h \
src/aboutdialog.h \
src/collapsible.h \
src/configdialog.h \
src/examplesdialog.h \
2021-07-18 21:35:22 +08:00
src/extgendialog.h \
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 \
src/rangeslider.h \
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 += \
src/aboutdialog.ui \
src/configdialog.ui \
src/examplesdialog.ui \
2021-07-18 21:35:22 +08:00
src/extgendialog.ui \
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 += \
rc/icons.qrc \
rc/style.qrc \
rc/examples.qrc
# 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
}