Add MinGW-specific project file (sledgehammer999)

This commit is contained in:
Christophe Dumez 2011-03-23 17:02:26 +00:00
parent 1489a6bbd6
commit 188a8ae4f5
6 changed files with 69 additions and 19 deletions

View file

@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*' />
</dependentAssembly>
</dependency>
</assembly>

3
src/qbittorrent_mingw.rc Normal file
View file

@ -0,0 +1,3 @@
IDI_ICON1 ICON DISCARDABLE "qbittorrent.ico"
IDI_ICON2 ICON DISCARDABLE "qbittorrent_file.ico"
1 24 DISCARDABLE "qbittorrent.exe.manifest"

View file

@ -4,7 +4,7 @@ CONFIG += qt thread
# Windows specific configuration
win32 {
include(../winconf.pri)
include(../winconf.pri)
}
# Mac specific configuration
@ -176,6 +176,8 @@ DESTDIR = .
# OS specific config
OTHER_FILES += ../winconf.pri ../macxconf.pri ../unixconf.pri ../os2conf.pri
# compiler specific config
OTHER_FILES += ../winconf-mingw.pri ../winconf-msvc.pri
# version file
OTHER_FILES += ../version.pri

21
winconf-mingw.pri Normal file
View file

@ -0,0 +1,21 @@
RC_FILE = qbittorrent_mingw.rc
# Enable Wide characters
DEFINES += TORRENT_USE_WPATH
#Adapt the lib names/versions accordingly
CONFIG(debug, debug|release) {
LIBS += libtorrent \
libboost_system-mgw45-mt-d-1_46_1 \
libboost_filesystem-mgw45-mt-d-1_46_1 \
libboost_thread-mgw45-mt-d-1_46_1
} else {
LIBS += libtorrent \
libboost_system-mgw45-mt-1_46_1 \
libboost_filesystem-mgw45-mt-1_46_1 \
libboost_thread-mgw45-mt-1_46_1
}
LIBS += libadvapi32 libshell32
LIBS += libcrypto.dll libssl.dll libwsock32 libws2_32 libz libiconv.dll
LIBS += libpowrprof

18
winconf-msvc.pri Normal file
View file

@ -0,0 +1,18 @@
RC_FILE = qbittorrent.rc
#Adapt the lib names/versions accordingly
CONFIG(debug, debug|release) {
LIBS += libtorrentd.lib \
libboost_system-vc90-mt-gd.lib \
libboost_filesystem-vc90-mt-gd.lib \
libboost_thread-vc90-mt-gd.lib
} else {
LIBS += libtorrent.lib \
libboost_system-vc90-mt.lib \
libboost_filesystem-vc90-mt.lib \
libboost_thread-vc90-mt.lib
}
LIBS += advapi32.lib shell32.lib
LIBS += libeay32MD.lib ssleay32MD.lib
LIBS += PowrProf.lib

View file

@ -1,11 +1,20 @@
# Adapt these paths on Windows
#Point this to the boost include folder
INCLUDEPATH += $$quote(C:/qBittorrent/boost_1_46_0)
#Point this to the libtorrent include folser
INCLUDEPATH += $$quote(C:/qBittorrent/RC_0_15/include)
#Point this to the zlib include folder(libtorrent's if you used that)
INCLUDEPATH += $$quote(C:/qBittorrent/RC_0_15/zlib)
#Point this to the openssl include folder
INCLUDEPATH += $$quote(C:/OpenSSL/include)
#Point this to the openssl lib folder
LIBS += $$quote(-LC:/OpenSSL/lib/VC)
LIBS += $$quote(-LC:/qBittorrent/libs)
#Point this to the libtorrent lib folder
LIBS += $$quote(-LC:/qBittorrent/RC_0_15/bin/<path-according-to-the-build-options-chosen>)
#Point this to the boost lib folder
LIBS += $$quote(-LC:/qBittorrent/boost_1_46_0/stage/lib)
# LIBTORRENT DEFINES
DEFINES += BOOST_ALL_NO_LIB
@ -24,9 +33,9 @@ DEFINES += _SCL_SECURE_NO_DEPRECATE
DEFINES += _UNICODE
DEFINES += _WIN32
DEFINES += _WIN32_WINNT=0x0500
DEFINES += _WIN32_IE=0x0500
DEFINES += __USE_W32_SOCKETS
DEFINES += WITH_SHIPPED_GEOIP_H
DEFINES += TORRENT_USE_WPATH
CONFIG(debug, debug|release) {
DEFINES += TORRENT_DEBUG
@ -34,23 +43,12 @@ CONFIG(debug, debug|release) {
DEFINES += NDEBUG
}
RC_FILE = qbittorrent.rc
CONFIG(debug, debug|release) {
LIBS += libtorrentd.lib \
libboost_system-vc90-mt-gd.lib \
libboost_filesystem-vc90-mt-gd.lib \
libboost_thread-vc90-mt-gd.lib
} else {
LIBS += libtorrent.lib \
libboost_system-vc90-mt.lib \
libboost_filesystem-vc90-mt.lib \
libboost_thread-vc90-mt.lib
win32-g++ {
include(winconf-mingw.pri)
}
else {
include(winconf-msvc.pri)
}
LIBS += advapi32.lib shell32.lib
LIBS += libeay32MD.lib ssleay32MD.lib
LIBS += PowrProf.lib
DEFINES += WITH_GEOIP_EMBEDDED
message("On Windows, GeoIP database must be embedded.")