mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 07:17:53 +00:00
hack to enter libtorrent and make it during twister compilation
This commit is contained in:
parent
55ca248925
commit
f631bdf98d
@ -125,6 +125,16 @@ LIBS += $$PWD/libtorrent/src/.libs/libtorrent-rasterbar.a
|
|||||||
DEFINES += TORRENT_DEBUG
|
DEFINES += TORRENT_DEBUG
|
||||||
DEFINES += BOOST_ASIO_SEPARATE_COMPILATION
|
DEFINES += BOOST_ASIO_SEPARATE_COMPILATION
|
||||||
#DEFINES += BOOST_ASIO_DYN_LINK
|
#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
|
# regenerate src/build.h
|
||||||
!win32|contains(USE_BUILD_INFO, 1) {
|
!win32|contains(USE_BUILD_INFO, 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user