hack to enter libtorrent and make it during twister compilation

This commit is contained in:
Miguel Freitas 2013-09-18 08:25:38 -03:00
parent 55ca248925
commit f631bdf98d

View File

@ -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) {