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