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/*
|
||||
debug/*
|
||||
release/*
|
||||
*.user
|
||||
*.Debug
|
||||
*.Release
|
||||
Makefile
|
||||
ui_*
|
||||
bin/*
|
||||
build*
|
||||
build*
|
||||
*.user
|
||||
lib
|
||||
deploy
|
@ -1,2 +1,4 @@
|
||||
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
|
||||
|
||||
DESTDIR = $$relative_path($$bin_dir)
|
||||
DESTDIR = $$bin_dir
|
||||
|
||||
|
||||
TARGET = SparrowBot
|
||||
TEMPLATE = app
|
||||
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 += $$include_dir
|
||||
|
||||
SOURCES = main.cpp \
|
||||
regismodule.cpp \
|
||||
|
@ -1,12 +1,19 @@
|
||||
#!/bin/sh
|
||||
mkdir build
|
||||
mkdir SparrowBot/build
|
||||
mkdir mmokoban/build
|
||||
while true
|
||||
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
|
||||
qmake-qt5 ../SparrowBot.pro
|
||||
make
|
||||
cd bin
|
||||
make -j4
|
||||
cd ../deploy
|
||||
./SparrowBot -nogui nick=SirSparrow pass=$1 chan=epicsparrow server=irc.freenode.net port=6667
|
||||
cd ../..
|
||||
done
|
||||
|
@ -1,6 +1,6 @@
|
||||
QT += core gui network widgets
|
||||
|
||||
DESTDIR = $$relative_path($$lib_dir)
|
||||
DESTDIR = $$lib_dir
|
||||
|
||||
TARGET = ircbot
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user