Refactor file path

This commit is contained in:
Calcitem Team 2019-09-03 00:07:08 +08:00
parent 479862ddba
commit eaae122200
31 changed files with 86 additions and 87 deletions

View File

@ -1,81 +1,80 @@
#------------------------------------------------- #-------------------------------------------------
# #
# Project created by QtCreator 2015-11-03T22:30:34 # Project created by QtCreator 2015-11-03T22:30:34
# #
#------------------------------------------------- #-------------------------------------------------
QT += core gui \ QT += core gui \
multimedia multimedia
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = NineChess TARGET = NineChess
TEMPLATE = app TEMPLATE = app
CONFIG += warn_off CONFIG += warn_off
INCLUDEPATH += src INCLUDEPATH += include
INCLUDEPATH += include INCLUDEPATH += src/base
INCLUDEPATH += src/ai
SOURCES += \ INCLUDEPATH += src/game
src/client.cpp \ INCLUDEPATH += src/ui/qt
src/main.cpp \
src/boarditem.cpp \ SOURCES += \
src/gamecontroller.cpp \ src/main.cpp \
src/gamescene.cpp \ src/base/thread.cpp \
src/gameview.cpp \ src/ai/search.cpp \
src/ninechess.cpp \ src/game/ninechess.cpp \
src/ninechessai_ab.cpp \ src/ui/qt/ninechesswindow.cpp \
src/ninechesswindow.cpp \ src/ui/qt/pieceitem.cpp \
src/pieceitem.cpp \ src/ui/qt/server.cpp \
src/aithread.cpp \ src/ui/qt/boarditem.cpp \
src/server.cpp src/ui/qt/gamecontroller.cpp \
src/ui/qt/gamescene.cpp \
HEADERS += \ src/ui/qt/gameview.cpp \
include/config.h \ src/ui/qt/client.cpp
include/version.h \
include/version.h.template \ HEADERS += \
src/HashNode.h \ include/config.h \
src/MemoryPool.h \ include/version.h \
src/MemoryPool.tcc \ include/version.h.template \
src/StackAlloc.h \ src/base/HashNode.h \
src/boarditem.h \ src/base/hashMap.h \
src/client.h \ src/base/MemoryPool.h \
src/gamecontroller.h \ src/base/MemoryPool.tcc \
src/gamescene.h \ src/base/stackalloc.h \
src/gameview.h \ src/base/thread.h \
src/graphicsconst.h \ src/ai/search.h \
src/hashMap.h \ src/ai/zobrist.h \
src/ninechess.h \ src/game/ninechess.h \
src/ninechessai_ab.h \ src/ui/qt/client.h \
src/ninechesswindow.h \ src/ui/qt/gamecontroller.h \
src/pieceitem.h \ src/ui/qt/gamescene.h \
src/manuallistview.h \ src/ui/qt/gameview.h \
src/aithread.h \ src/ui/qt/graphicsconst.h \
src/server.h \ src/ui/qt/ninechesswindow.h \
src/zobrist.h src/ui/qt/pieceitem.h \
src/ui/qt/manuallistview.h \
FORMS += \ src/ui/qt/server.h \
ninechesswindow.ui src/ui/qt/boarditem.h
RESOURCES += \ FORMS += \
ninechesswindow.qrc ninechesswindow.ui
DISTFILES += \ RESOURCES += \
NineChess.rc \ ninechesswindow.qrc
../Readme.md \
../Sample.txt \ DISTFILES += \
../History.txt \ NineChess.rc \
../Licence.txt \ version.sh
version.sh
RC_FILE += NineChess.rc
RC_FILE += NineChess.rc
# With C++17 support
# With C++17 support greaterThan(QT_MAJOR_VERSION, 4) {
greaterThan(QT_MAJOR_VERSION, 4) { CONFIG += c++17
CONFIG += c++17 #QMAKE_CXXFLAGS += -O0 -g3 -fsanitize=leak -fno-omit-frame-pointer
#QMAKE_CXXFLAGS += -O0 -g3 -fsanitize=leak -fno-omit-frame-pointer #QMAKE_LFLAGS += -fsanitize=leak
#QMAKE_LFLAGS += -fsanitize=leak } else {
} else { QMAKE_CXXFLAGS += -std=c++0x
QMAKE_CXXFLAGS += -std=c++0x }
}

View File

@ -27,7 +27,7 @@
#include <chrono> #include <chrono>
#include <algorithm> #include <algorithm>
#include "ninechessai_ab.h" #include "search.h"
#include "hashmap.h" #include "hashmap.h"
using namespace CTSL; using namespace CTSL;

View File

@ -22,7 +22,7 @@
#include <QTimer> #include <QTimer>
#include <QDebug> #include <QDebug>
#include "aithread.h" #include "thread.h"
AiThread::AiThread(int id, QObject *parent) : AiThread::AiThread(int id, QObject *parent) :
QThread(parent), QThread(parent),

View File

@ -27,7 +27,7 @@
#include <QWaitCondition> #include <QWaitCondition>
#include <QTimer> #include <QTimer>
#include "ninechess.h" #include "ninechess.h"
#include "ninechessai_ab.h" #include "search.h"
#include "server.h" #include "server.h"
#include "client.h" #include "client.h"

View File

@ -21,7 +21,7 @@
#include <algorithm> #include <algorithm>
#include "ninechess.h" #include "ninechess.h"
#include "ninechessai_ab.h" #include "search.h"
#include <QDebug> #include <QDebug>
// 对静态常量数组的定义要放在类外,不要放在头文件 // 对静态常量数组的定义要放在类外,不要放在头文件

View File

@ -22,7 +22,7 @@
#include <QtNetwork> #include <QtNetwork>
#include "client.h" #include "client.h"
#include "aithread.h" #include "thread.h"
Client::Client(QWidget *parent, uint16_t port) Client::Client(QWidget *parent, uint16_t port)
: QDialog(parent) : QDialog(parent)

View File

@ -40,7 +40,7 @@
#include "ninechess.h" #include "ninechess.h"
#include "gamescene.h" #include "gamescene.h"
#include "pieceitem.h" #include "pieceitem.h"
#include "aithread.h" #include "thread.h"
#include "server.h" #include "server.h"
#include "client.h" #include "client.h"