2019-09-04 22:53:41 +08:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2015-11-03T22:30:34
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
QT += core gui \
|
|
|
|
multimedia
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
TARGET = MillGame
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
CONFIG += warn_off
|
2019-09-07 19:19:45 +08:00
|
|
|
CONFIG += console
|
2019-09-04 22:53:41 +08:00
|
|
|
|
|
|
|
INCLUDEPATH += include
|
|
|
|
INCLUDEPATH += src/base
|
|
|
|
INCLUDEPATH += src/ai
|
|
|
|
INCLUDEPATH += src/game
|
|
|
|
INCLUDEPATH += src/ui/qt
|
|
|
|
|
|
|
|
SOURCES += \
|
2019-09-17 01:58:27 +08:00
|
|
|
src/ai/endgame.cpp \
|
2019-09-08 01:59:04 +08:00
|
|
|
src/ai/evaluate.cpp \
|
2019-09-08 12:57:30 +08:00
|
|
|
src/ai/movegen.cpp \
|
2019-09-09 00:56:46 +08:00
|
|
|
src/ai/tt.cpp \
|
2019-09-13 16:56:03 +08:00
|
|
|
src/base/misc.cpp \
|
2019-09-14 12:21:36 +08:00
|
|
|
src/base/zobrist.cpp \
|
2019-09-08 15:15:21 +08:00
|
|
|
src/game/board.cpp \
|
2019-09-20 00:19:18 +08:00
|
|
|
src/game/option.cpp \
|
2019-09-14 03:06:48 +08:00
|
|
|
src/game/player.cpp \
|
2019-09-13 00:31:20 +08:00
|
|
|
src/game/position.cpp \
|
2019-09-08 15:15:21 +08:00
|
|
|
src/game/rule.cpp \
|
2019-09-04 22:53:41 +08:00
|
|
|
src/main.cpp \
|
|
|
|
src/base/thread.cpp \
|
|
|
|
src/ai/search.cpp \
|
|
|
|
src/ui/qt/gamewindow.cpp \
|
|
|
|
src/ui/qt/pieceitem.cpp \
|
|
|
|
src/ui/qt/server.cpp \
|
|
|
|
src/ui/qt/boarditem.cpp \
|
|
|
|
src/ui/qt/gamecontroller.cpp \
|
|
|
|
src/ui/qt/gamescene.cpp \
|
|
|
|
src/ui/qt/gameview.cpp \
|
|
|
|
src/ui/qt/client.cpp
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
include/config.h \
|
|
|
|
include/version.h \
|
|
|
|
include/version.h.template \
|
2019-09-17 01:58:27 +08:00
|
|
|
src/ai/endgame.h \
|
2019-09-08 01:59:04 +08:00
|
|
|
src/ai/evaluate.h \
|
2019-09-08 12:57:30 +08:00
|
|
|
src/ai/movegen.h \
|
2019-09-09 00:56:46 +08:00
|
|
|
src/ai/tt.h \
|
2019-09-04 22:53:41 +08:00
|
|
|
src/base/HashNode.h \
|
2019-09-07 19:19:45 +08:00
|
|
|
src/base/debug.h \
|
2019-09-04 22:53:41 +08:00
|
|
|
src/base/hashMap.h \
|
|
|
|
src/base/MemoryPool.h \
|
|
|
|
src/base/MemoryPool.tcc \
|
2019-09-13 16:56:03 +08:00
|
|
|
src/base/misc.h \
|
2019-09-04 22:53:41 +08:00
|
|
|
src/base/stackalloc.h \
|
|
|
|
src/base/thread.h \
|
|
|
|
src/ai/search.h \
|
2019-09-14 12:21:36 +08:00
|
|
|
src/base/zobrist.h \
|
2019-09-08 15:15:21 +08:00
|
|
|
src/game/board.h \
|
2019-09-20 00:19:18 +08:00
|
|
|
src/game/option.h \
|
2019-09-14 03:06:48 +08:00
|
|
|
src/game/player.h \
|
2019-09-13 00:31:20 +08:00
|
|
|
src/game/position.h \
|
2019-09-08 15:15:21 +08:00
|
|
|
src/game/rule.h \
|
|
|
|
src/game/types.h \
|
2019-09-04 22:53:41 +08:00
|
|
|
src/ui/qt/client.h \
|
|
|
|
src/ui/qt/gamecontroller.h \
|
|
|
|
src/ui/qt/gamescene.h \
|
|
|
|
src/ui/qt/gameview.h \
|
|
|
|
src/ui/qt/gamewindow.h \
|
|
|
|
src/ui/qt/graphicsconst.h \
|
|
|
|
src/ui/qt/pieceitem.h \
|
|
|
|
src/ui/qt/manuallistview.h \
|
|
|
|
src/ui/qt/server.h \
|
|
|
|
src/ui/qt/boarditem.h
|
|
|
|
|
|
|
|
FORMS += \
|
|
|
|
gamewindow.ui
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
gamewindow.qrc
|
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
MillGame.rc \
|
|
|
|
version.sh
|
|
|
|
|
|
|
|
RC_FILE += millgame.rc
|
|
|
|
|
|
|
|
# Mobile App support
|
|
|
|
#DEFINES += MOBILE_APP_UI
|
|
|
|
|
|
|
|
# With C++17 support
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
CONFIG += c++17
|
|
|
|
#QMAKE_CXXFLAGS += -O0 -g3 -fsanitize=leak -fno-omit-frame-pointer
|
|
|
|
#QMAKE_LFLAGS += -fsanitize=leak
|
|
|
|
} else {
|
|
|
|
QMAKE_CXXFLAGS += -std=c++0x
|
|
|
|
}
|
2019-09-05 23:43:49 +08:00
|
|
|
|
|
|
|
*msvc* {
|
|
|
|
QMAKE_CXXFLAGS += /MP
|
|
|
|
}
|