From 8ef1e0b45296281ed7190e7af5c734d6e7a4fdff Mon Sep 17 00:00:00 2001 From: marcel Date: Thu, 3 Jul 2014 15:03:13 +0200 Subject: [PATCH] added -L for linux/macx, applied some reformatting --- toxgui.pro | 59 ++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 31 deletions(-) diff --git a/toxgui.pro b/toxgui.pro index 8abca048f..45b240f39 100644 --- a/toxgui.pro +++ b/toxgui.pro @@ -5,11 +5,36 @@ #------------------------------------------------- QT += core gui multimedia multimediawidgets - greaterThan(QT_MAJOR_VERSION, 4): QT += widgets -TARGET = toxgui -TEMPLATE = app +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,34 +64,6 @@ HEADERS += widget/form/addfriendform.h \ widget/camera.h \ widget/netcamview.h -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 += -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 \