diff --git a/src/src.pro b/src/src.pro index c7814393d..df5bab108 100644 --- a/src/src.pro +++ b/src/src.pro @@ -24,12 +24,9 @@ DEFINES += VERSION_BUGFIX=0 DEFINES += VERSION_TYPE=ALPHA win32 { - # Adapt these paths on Windows - INCLUDEPATH += $$quote(C:/qbittorrent/boost_1_42_0) - INCLUDEPATH += $$quote(C:/qbittorrent/libtorrent-rasterbar-0.14.10/include) - INCLUDEPATH += $$quote(C:/qbittorrent/libtorrent-rasterbar-0.14.10/zlib) - - LIBS += -LC:/OpenSSL/lib/VC + exists(../winconf.pri) { + include(../winconf.pri) + } #DEFINES += _WIN32_WINNT=0x0601 #DEFINES += _WIN32_IE=0x0400 @@ -178,18 +175,17 @@ win32 { # LIBS += "/nodefaultlib:"libcmt.lib" #} - # Adapt these paths on Windows contains(DEBUG_MODE, 1) { - LIBS += C:/qbittorrent/libs/libtorrentd.lib \ - C:/qbittorrent/libs/libboost_system-vc90-mt-gd.lib \ - C:/qbittorrent/libs/libboost_filesystem-vc90-mt-gd.lib \ - C:/qbittorrent/libs/libboost_thread-vc90-mt-gd.lib + LIBS += libtorrentd.lib \ + libboost_system-vc90-mt-gd.lib \ + libboost_filesystem-vc90-mt-gd.lib \ + libboost_thread-vc90-mt-gd.lib } contains(DEBUG_MODE, 0) { - LIBS += C:/qbittorrent/libs/libtorrent.lib \ - C:/qbittorrent/libs/libboost_system-vc90-mt.lib \ - C:/qbittorrent/libs/libboost_filesystem-vc90-mt.lib \ - C:/qbittorrent/libs/libboost_thread-vc90-mt.lib + LIBS += libtorrent.lib \ + libboost_system-vc90-mt.lib \ + libboost_filesystem-vc90-mt.lib \ + libboost_thread-vc90-mt.lib } LIBS += advapi32.lib shell32.lib diff --git a/winconf.pri b/winconf.pri new file mode 100644 index 000000000..826a2c4b8 --- /dev/null +++ b/winconf.pri @@ -0,0 +1,8 @@ +# Adapt these paths on Windows +INCLUDEPATH += $$quote($$PWD/boost_1_42_0) +INCLUDEPATH += $$quote($$PWD/libtorrent-rasterbar-0.14.10/include) +INCLUDEPATH += $$quote($$PWD/libtorrent-rasterbar-0.14.10/zlib) +INCLUDEPATH += $$quote(C:/OpenSSL/include) + +LIBS += $$quote(-LC:/OpenSSL/lib/VC) +LIBS += $$quote(-L$$PWD/libs)