if test "x$have_utp" = "xyes"; then
LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
+ LIBUTP_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libutp/libutp.a"
if test "x$libutp_extra_libs" != "x" ; then
LIBUTP_LIBS="$LIBUTP_LIBS $libutp_extra_libs"
+ LIBUTP_LIBS_QT="$LIBUTP_LIBS_QT $libutp_extra_libs"
fi
AC_DEFINE([WITH_UTP],[1])
build_utp="yes"
fi
AC_SUBST(LIBUTP_CFLAGS)
AC_SUBST(LIBUTP_LIBS)
+AC_SUBST(LIBUTP_LIBS_QT)
AM_CONDITIONAL([BUILD_UTP],[test "x$build_utp" = "xyes"])
AC_MSG_RESULT([$build_utp])
macosx/Makefile
gtk/Makefile
gtk/icons/Makefile
+ qt/config.pri
web/Makefile
web/images/Makefile
web/style/Makefile
PKGCONFIG = fontconfig libcurl openssl libevent
TRANSMISSION_TOP = ..
+
+include(config.pri)
+
INCLUDEPATH = $${EVENT_TOP}/include $${INCLUDEPATH}
INCLUDEPATH += $${TRANSMISSION_TOP}
LIBS += $${TRANSMISSION_TOP}/libtransmission/libtransmission.a
-exists( $${TRANSMISSION_TOP}/third-party/libutp/Makefile ) {
- LIBS += $${TRANSMISSION_TOP}/third-party/libutp/libutp.a
-}
+LIBS += $${LIBUTP_LIBS}
LIBS += $${TRANSMISSION_TOP}/third-party/dht/libdht.a
-exists( $${TRANSMISSION_TOP}/third-party/miniupnp/Makefile ) {
- LIBS += $${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a
-}
-LIBS += $${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a
+LIBS += $${LIBUPNP_LIBS}
+LIBS += $${LIBNATPMP_LIBS}
unix: LIBS += -L$${EVENT_TOP}/lib -lz -lrt
win32:DEFINES += QT_DBUS
win32:LIBS += -levent-2.0 -lws2_32 -lintl