mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #60 from retuxx/bootstrap
Simple script for bootstrapping
This commit is contained in:
commit
292be5b111
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.pro.user*
|
||||
libs
|
||||
|
|
4
bootstrap.bat
Normal file
4
bootstrap.bat
Normal file
|
@ -0,0 +1,4 @@
|
|||
@mkdir %~dp0libs
|
||||
%~dp0tools\wget --no-check-certificate http://jenkins.libtoxcore.so/job/libtoxcore-win32-i686/lastSuccessfulBuild/artifact/libtoxcore-win32-i686.zip -O %~dp0libs\libtoxcore-latest.zip
|
||||
%~dp0tools\unzip %~dp0libs\libtoxcore-latest.zip -d %~dp0libs\
|
||||
@del %~dp0libs\libtoxcore-latest.zip
|
24
bootstrap.sh
Executable file
24
bootstrap.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
# directory where the script is located
|
||||
SCRIPT_NAME=$(readlink -f $0)
|
||||
SCRIPT_DIR=`dirname $SCRIPT_NAME`
|
||||
|
||||
# create libs dir if necessary
|
||||
mkdir -p ${SCRIPT_DIR}/libs
|
||||
|
||||
# clone current master of libtoxcore
|
||||
git clone https://github.com/irungentoo/toxcore.git ${SCRIPT_DIR}/libs/libtoxcore-latest
|
||||
|
||||
# compile and install libtoxcore
|
||||
pushd ${SCRIPT_DIR}/libs/libtoxcore-latest
|
||||
./autogen.sh
|
||||
./configure --prefix=${SCRIPT_DIR}/libs/
|
||||
make -j2
|
||||
make install
|
||||
popd
|
||||
|
||||
# remove clone dir
|
||||
rm -rf ${SCRIPT_DIR}/libs/libtoxcore-latest
|
||||
|
||||
|
BIN
tools/libeay32.dll
Normal file
BIN
tools/libeay32.dll
Normal file
Binary file not shown.
BIN
tools/libiconv2.dll
Normal file
BIN
tools/libiconv2.dll
Normal file
Binary file not shown.
BIN
tools/libintl3.dll
Normal file
BIN
tools/libintl3.dll
Normal file
Binary file not shown.
BIN
tools/libssl32.dll
Normal file
BIN
tools/libssl32.dll
Normal file
Binary file not shown.
BIN
tools/unzip.exe
Normal file
BIN
tools/unzip.exe
Normal file
Binary file not shown.
BIN
tools/wget.exe
Normal file
BIN
tools/wget.exe
Normal file
Binary file not shown.
96
toxgui.pro
96
toxgui.pro
|
@ -5,11 +5,36 @@
|
|||
#-------------------------------------------------
|
||||
|
||||
QT += core gui multimedia multimediawidgets
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
TARGET = toxgui
|
||||
TEMPLATE = app
|
||||
FORMS += widget.ui
|
||||
CONFIG += c++11
|
||||
|
||||
RESOURCES += \
|
||||
res.qrc
|
||||
|
||||
INCLUDEPATH += libs/include
|
||||
win32 {
|
||||
LIBS += libs/lib/libtoxav.a libs/lib/libopus.a libs/lib/libvpx.a libs/lib/libtoxcore.a -lws2_32 libs/lib/libsodium.a
|
||||
} else {
|
||||
LIBS += -L$$PWD/libs/lib/ -ltoxcore -ltoxav -lsodium -lvpx
|
||||
}
|
||||
|
||||
#### Static linux build
|
||||
#LIBS += -Wl,-Bstatic -ltoxcore -ltoxav -lsodium -lvpx -lopus -lgstaudiodecoder -lgstcamerabin -lgstmediacapture \
|
||||
# -lgstmediaplayer -lqgsttools_p -lgstaudio-0.10 -lgstinterfaces-0.10 -lgstvideo-0.10 -lgstpbutils-0.10 \
|
||||
# -lgstapp-0.10 -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lxml2 \
|
||||
# -lqtaudio_alsa -lasound -lqtmultimedia_m3u \
|
||||
# -lqtaccessiblewidgets -lqconnmanbearer -lqgenericbearer -lqnmbearer \
|
||||
# -lqxcb -lX11-xcb -lXi -lxcb-render-util -lxcb-glx -lxcb-render -ldbus-1 \
|
||||
# -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape \
|
||||
# -lxcb-keysyms -lxcb-xkb -lfontconfig -lfreetype -lXrender -lXext -lX11 \
|
||||
# -lmtdev -lqdds -lqicns -lqico -lqjp2 -lqmng -lqtga -lqtiff -lqwbmp -lqwebp \
|
||||
# -lpng -lz -licui18n -licuuc -licudata -lm -ldl -lgthread-2.0 \
|
||||
# -pthread -lglib-2.0 -lrt -lGL -lpthread -Wl,-Bdynamic
|
||||
#QMAKE_CXXFLAGS += -Os -flto -static-libstdc++ -static-libgcc
|
||||
|
||||
HEADERS += widget/form/addfriendform.h \
|
||||
widget/form/chatform.h \
|
||||
|
@ -39,29 +64,6 @@ HEADERS += widget/form/addfriendform.h \
|
|||
widget/camera.h \
|
||||
widget/netcamview.h
|
||||
|
||||
FORMS += widget.ui
|
||||
|
||||
CONFIG += c++11
|
||||
|
||||
RESOURCES += \
|
||||
res.qrc
|
||||
|
||||
LIBS += -ltoxcore -ltoxav -lsodium -lvpx
|
||||
|
||||
#### Static linux build
|
||||
#LIBS += -Wl,-Bstatic -ltoxcore -ltoxav -lsodium -lvpx -lopus -lgstaudiodecoder -lgstcamerabin -lgstmediacapture \
|
||||
# -lgstmediaplayer -lqgsttools_p -lgstaudio-0.10 -lgstinterfaces-0.10 -lgstvideo-0.10 -lgstpbutils-0.10 \
|
||||
# -lgstapp-0.10 -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lxml2 \
|
||||
# -lqtaudio_alsa -lasound -lqtmultimedia_m3u \
|
||||
# -lqtaccessiblewidgets -lqconnmanbearer -lqgenericbearer -lqnmbearer \
|
||||
# -lqxcb -lX11-xcb -lXi -lxcb-render-util -lxcb-glx -lxcb-render -ldbus-1 \
|
||||
# -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape \
|
||||
# -lxcb-keysyms -lxcb-xkb -lfontconfig -lfreetype -lXrender -lXext -lX11 \
|
||||
# -lmtdev -lqdds -lqicns -lqico -lqjp2 -lqmng -lqtga -lqtiff -lqwbmp -lqwebp \
|
||||
# -lpng -lz -licui18n -licuuc -licudata -lm -ldl -lgthread-2.0 \
|
||||
# -pthread -lglib-2.0 -lrt -lGL -lpthread -Wl,-Bdynamic
|
||||
#QMAKE_CXXFLAGS += -Os -flto -static-libstdc++ -static-libgcc
|
||||
|
||||
SOURCES += \
|
||||
widget/form/addfriendform.cpp \
|
||||
widget/form/chatform.cpp \
|
||||
|
@ -91,49 +93,3 @@ SOURCES += \
|
|||
widget/videosurface.cpp \
|
||||
widget/camera.cpp \
|
||||
widget/netcamview.cpp
|
||||
|
||||
|
||||
|
||||
### EXAMPLE BUILD SETTINGS FOR WINDOWS
|
||||
#win32: LIBS += -L$$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/ -ltoxcore
|
||||
|
||||
#INCLUDEPATH += $$PWD/../../../../Downloads/libtoxcore-win32-i686/include
|
||||
#DEPENDPATH += $$PWD/../../../../Downloads/libtoxcore-win32-i686/include
|
||||
|
||||
#win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/toxcore.lib
|
||||
#else:win32-g++: PRE_TARGETDEPS += $$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/libtoxcore.a
|
||||
|
||||
#win32: LIBS += -L$$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/ -ltoxav
|
||||
|
||||
#INCLUDEPATH += $$PWD/../../../../Downloads/libtoxcore-win32-i686/include
|
||||
#DEPENDPATH += $$PWD/../../../../Downloads/libtoxcore-win32-i686/include
|
||||
|
||||
#win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/toxav.lib
|
||||
#else:win32-g++: PRE_TARGETDEPS += $$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/libtoxav.a
|
||||
|
||||
#win32: LIBS += -L$$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/ -lvpx
|
||||
|
||||
#INCLUDEPATH += $$PWD/../../../../Downloads/libtoxcore-win32-i686/include
|
||||
#DEPENDPATH += $$PWD/../../../../Downloads/libtoxcore-win32-i686/include
|
||||
|
||||
#win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/vpx.lib
|
||||
#else:win32-g++: PRE_TARGETDEPS += $$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/libvpx.a
|
||||
|
||||
|
||||
#win32: LIBS += -L$$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/ -lopus
|
||||
|
||||
#INCLUDEPATH += $$PWD/../../../../Downloads/libtoxcore-win32-i686/include
|
||||
#DEPENDPATH += $$PWD/../../../../Downloads/libtoxcore-win32-i686/include
|
||||
|
||||
#win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/opus.lib
|
||||
#else:win32-g++: PRE_TARGETDEPS += $$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/libopus.a
|
||||
|
||||
#win32: LIBS += -lws2_32
|
||||
|
||||
#win32: LIBS += -L$$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/ -lsodium
|
||||
|
||||
#INCLUDEPATH += $$PWD/../../../../Downloads/libtoxcore-win32-i686/include
|
||||
#DEPENDPATH += $$PWD/../../../../Downloads/libtoxcore-win32-i686/include
|
||||
|
||||
#win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/sodium.lib
|
||||
#else:win32-g++: PRE_TARGETDEPS += $$PWD/../../../../Downloads/libtoxcore-win32-i686/lib/libsodium.a
|
||||
|
|
Loading…
Reference in New Issue
Block a user