plop
This commit is contained in:
parent
85e4f4db0e
commit
12da0a08f7
@ -7,3 +7,9 @@ SUBDIRS = ircbot \
|
|||||||
|
|
||||||
app.depends = ircbot
|
app.depends = ircbot
|
||||||
|
|
||||||
|
#copy res
|
||||||
|
copydata.commands = $(COPY_DIR) $$PWD/res $$OUT_PWD
|
||||||
|
first.depends = $(first) copydata
|
||||||
|
export(first.depends)
|
||||||
|
export(copydata.commands)
|
||||||
|
QMAKE_EXTRA_TARGETS += first copydata
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
QT += core gui network widgets
|
QT += core gui network widgets
|
||||||
|
|
||||||
DESTDIR = $$bin_dir
|
DESTDIR = $$relative_path($$bin_dir)
|
||||||
|
|
||||||
TARGET = SparrowBot
|
TARGET = SparrowBot
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
CONFIG += c++11
|
CONFIG += c++11
|
||||||
|
|
||||||
LIBS += $$lib_dir/libircbot.a
|
LIBS += $$relative_path($$lib_dir/libircbot.a)
|
||||||
INCLUDEPATH += ../ircbot
|
INCLUDEPATH += ../ircbot
|
||||||
|
|
||||||
SOURCES = main.cpp \
|
SOURCES = main.cpp \
|
||||||
|
@ -19,7 +19,7 @@ void Vocab::load(QString filename)
|
|||||||
{
|
{
|
||||||
QFile file(filename);
|
QFile file(filename);
|
||||||
if(!file.exists())
|
if(!file.exists())
|
||||||
std::cerr << "can't find " << filename << std::endl;
|
std::cerr << "can't find " << filename.toStdString() << std::endl;
|
||||||
else if(file.open(QIODevice::ReadOnly | QIODevice::Text))
|
else if(file.open(QIODevice::ReadOnly | QIODevice::Text))
|
||||||
{
|
{
|
||||||
std::cerr << "file is open" << std::endl;
|
std::cerr << "file is open" << std::endl;
|
||||||
|
@ -9,7 +9,7 @@ do
|
|||||||
cd build
|
cd build
|
||||||
qmake-qt5 ../SparrowBot.pro
|
qmake-qt5 ../SparrowBot.pro
|
||||||
make
|
make
|
||||||
cd ../bin
|
cd bin
|
||||||
./SparrowBot -nogui nick=SparrowBot chan=epicsparrow server=irc.freenode.net port=6667
|
./SparrowBot -nogui nick=SparrowBot 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 = $$lib_dir
|
DESTDIR = $$relative_path($$lib_dir)
|
||||||
|
|
||||||
TARGET = ircbot
|
TARGET = ircbot
|
||||||
|
|
||||||
|
BIN
lib/libircbot.a
BIN
lib/libircbot.a
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user