SparrowBot is now linking with mmokoban
This commit is contained in:
parent
5d5a7e862b
commit
9a94283309
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,10 +1,12 @@
|
|||||||
build/*
|
build/*
|
||||||
debug/*
|
debug/*
|
||||||
release/*
|
release/*
|
||||||
*.user
|
|
||||||
*.Debug
|
*.Debug
|
||||||
*.Release
|
*.Release
|
||||||
Makefile
|
Makefile
|
||||||
ui_*
|
ui_*
|
||||||
bin/*
|
bin/*
|
||||||
build*
|
build*
|
||||||
|
*.user
|
||||||
|
lib
|
||||||
|
deploy
|
@ -1,2 +1,4 @@
|
|||||||
bin_dir=$$PWD/bin
|
bin_dir=$$PWD/bin
|
||||||
lib_dir=$$PWD/lib
|
lib_dir=$$PWD/lib
|
||||||
|
mmokoban_lib_dir=$$PWD/../mmokoban/lib
|
||||||
|
include_dir=$$PWD/../mmokoban/src
|
||||||
|
27
app/app.pro
27
app/app.pro
@ -1,13 +1,36 @@
|
|||||||
QT += core gui network widgets
|
QT += core gui network widgets
|
||||||
|
|
||||||
DESTDIR = $$relative_path($$bin_dir)
|
DESTDIR = $$bin_dir
|
||||||
|
|
||||||
|
|
||||||
TARGET = SparrowBot
|
TARGET = SparrowBot
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
CONFIG += c++11
|
CONFIG += c++11
|
||||||
|
|
||||||
LIBS += $$relative_path($$lib_dir/libircbot.a)
|
QMAKE_CXXFLAGS += -std=c++11
|
||||||
|
QMAKE_CXXFLAGS += -fno-strict-aliasing
|
||||||
|
|
||||||
|
DEFINES += SFML_STATIC
|
||||||
|
|
||||||
|
LIBPATH += $$lib_dir
|
||||||
|
LIBPATH += $$mmokoban_lib_dir
|
||||||
|
win32 {
|
||||||
|
LIBPATH += $$mmokoban_lib_dir/MinGW_32
|
||||||
|
}
|
||||||
|
unix {
|
||||||
|
LIBPATH += $$mmokoban_lib_dir/linux_64
|
||||||
|
}
|
||||||
|
|
||||||
|
LIBS += -lserverlib -lcommon -lircbot
|
||||||
|
win32 {
|
||||||
|
LIBS += -lsfml-network-s -lws2_32 -lsfml-system-s -lwinmm
|
||||||
|
}
|
||||||
|
unix {
|
||||||
|
LIBS += -lsfml-network-s -lsfml-system-s -ldl -lpthread -ludev
|
||||||
|
}
|
||||||
|
|
||||||
INCLUDEPATH += ../ircbot
|
INCLUDEPATH += ../ircbot
|
||||||
|
INCLUDEPATH += $$include_dir
|
||||||
|
|
||||||
SOURCES = main.cpp \
|
SOURCES = main.cpp \
|
||||||
regismodule.cpp \
|
regismodule.cpp \
|
||||||
|
@ -1,12 +1,19 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
mkdir build
|
mkdir SparrowBot/build
|
||||||
|
mkdir mmokoban/build
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
git pull https://git.epicsparrow.com/Anselme/SparrowBot.git
|
cd mmokoban
|
||||||
|
git pull
|
||||||
|
cd build
|
||||||
|
qmake-qt5 ../mmokoban.pro
|
||||||
|
make -j4
|
||||||
|
cd ../../SparrowBot
|
||||||
|
git pull
|
||||||
cd build
|
cd build
|
||||||
qmake-qt5 ../SparrowBot.pro
|
qmake-qt5 ../SparrowBot.pro
|
||||||
make
|
make -j4
|
||||||
cd bin
|
cd ../deploy
|
||||||
./SparrowBot -nogui nick=SirSparrow pass=$1 chan=epicsparrow server=irc.freenode.net port=6667
|
./SparrowBot -nogui nick=SirSparrow pass=$1 chan=epicsparrow server=irc.freenode.net port=6667
|
||||||
cd ../..
|
cd ../..
|
||||||
done
|
done
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
QT += core gui network widgets
|
QT += core gui network widgets
|
||||||
|
|
||||||
DESTDIR = $$relative_path($$lib_dir)
|
DESTDIR = $$lib_dir
|
||||||
|
|
||||||
TARGET = ircbot
|
TARGET = ircbot
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user