From f631bdf98d803a70f315e2f6de834513f27091b4 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Wed, 18 Sep 2013 08:25:38 -0300 Subject: [PATCH] hack to enter libtorrent and make it during twister compilation --- twister-qt.pro | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/twister-qt.pro b/twister-qt.pro index 8b7fb43f..a712339a 100644 --- a/twister-qt.pro +++ b/twister-qt.pro @@ -125,6 +125,16 @@ LIBS += $$PWD/libtorrent/src/.libs/libtorrent-rasterbar.a DEFINES += TORRENT_DEBUG DEFINES += BOOST_ASIO_SEPARATE_COMPILATION #DEFINES += BOOST_ASIO_DYN_LINK +!win32 { + libtorrent.commands = cd $$PWD/libtorrent && CC=$$QMAKE_CC CXX=$$QMAKE_CXX $(MAKE) OPT=\"$$QMAKE_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE\" +} +libtorrent.target = $$PWD/libtorrent/src/.libs/libtorrent-rasterbar.a +libtorrent.depends = FORCE +PRE_TARGETDEPS += $$PWD/libtorrent/src/.libs/libtorrent-rasterbar.a +QMAKE_EXTRA_TARGETS += libtorrent +# Gross ugly hack that depends on qmake internals, unfortunately there is no other way to do it. +QMAKE_CLEAN += $$PWD/libtorrent/src/.libs/libtorrent-rasterbar.a; cd $$PWD/libtorrent ; $(MAKE) clean + # regenerate src/build.h !win32|contains(USE_BUILD_INFO, 1) {