mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 03:06:37 +03:00
Add MinGW-specific project file (sledgehammer999)
This commit is contained in:
parent
1489a6bbd6
commit
188a8ae4f5
6 changed files with 69 additions and 19 deletions
8
src/qbittorrent.exe.manifest
Normal file
8
src/qbittorrent.exe.manifest
Normal 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
3
src/qbittorrent_mingw.rc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
IDI_ICON1 ICON DISCARDABLE "qbittorrent.ico"
|
||||||
|
IDI_ICON2 ICON DISCARDABLE "qbittorrent_file.ico"
|
||||||
|
1 24 DISCARDABLE "qbittorrent.exe.manifest"
|
|
@ -176,6 +176,8 @@ DESTDIR = .
|
||||||
|
|
||||||
# OS specific config
|
# OS specific config
|
||||||
OTHER_FILES += ../winconf.pri ../macxconf.pri ../unixconf.pri ../os2conf.pri
|
OTHER_FILES += ../winconf.pri ../macxconf.pri ../unixconf.pri ../os2conf.pri
|
||||||
|
# compiler specific config
|
||||||
|
OTHER_FILES += ../winconf-mingw.pri ../winconf-msvc.pri
|
||||||
# version file
|
# version file
|
||||||
OTHER_FILES += ../version.pri
|
OTHER_FILES += ../version.pri
|
||||||
|
|
||||||
|
|
21
winconf-mingw.pri
Normal file
21
winconf-mingw.pri
Normal 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
18
winconf-msvc.pri
Normal 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
|
34
winconf.pri
34
winconf.pri
|
@ -1,11 +1,20 @@
|
||||||
# Adapt these paths on Windows
|
# Adapt these paths on Windows
|
||||||
|
|
||||||
|
#Point this to the boost include folder
|
||||||
INCLUDEPATH += $$quote(C:/qBittorrent/boost_1_46_0)
|
INCLUDEPATH += $$quote(C:/qBittorrent/boost_1_46_0)
|
||||||
|
#Point this to the libtorrent include folser
|
||||||
INCLUDEPATH += $$quote(C:/qBittorrent/RC_0_15/include)
|
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)
|
INCLUDEPATH += $$quote(C:/qBittorrent/RC_0_15/zlib)
|
||||||
|
#Point this to the openssl include folder
|
||||||
INCLUDEPATH += $$quote(C:/OpenSSL/include)
|
INCLUDEPATH += $$quote(C:/OpenSSL/include)
|
||||||
|
|
||||||
|
#Point this to the openssl lib folder
|
||||||
LIBS += $$quote(-LC:/OpenSSL/lib/VC)
|
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
|
# LIBTORRENT DEFINES
|
||||||
DEFINES += BOOST_ALL_NO_LIB
|
DEFINES += BOOST_ALL_NO_LIB
|
||||||
|
@ -24,9 +33,9 @@ DEFINES += _SCL_SECURE_NO_DEPRECATE
|
||||||
DEFINES += _UNICODE
|
DEFINES += _UNICODE
|
||||||
DEFINES += _WIN32
|
DEFINES += _WIN32
|
||||||
DEFINES += _WIN32_WINNT=0x0500
|
DEFINES += _WIN32_WINNT=0x0500
|
||||||
|
DEFINES += _WIN32_IE=0x0500
|
||||||
DEFINES += __USE_W32_SOCKETS
|
DEFINES += __USE_W32_SOCKETS
|
||||||
DEFINES += WITH_SHIPPED_GEOIP_H
|
DEFINES += WITH_SHIPPED_GEOIP_H
|
||||||
DEFINES += TORRENT_USE_WPATH
|
|
||||||
|
|
||||||
CONFIG(debug, debug|release) {
|
CONFIG(debug, debug|release) {
|
||||||
DEFINES += TORRENT_DEBUG
|
DEFINES += TORRENT_DEBUG
|
||||||
|
@ -34,23 +43,12 @@ CONFIG(debug, debug|release) {
|
||||||
DEFINES += NDEBUG
|
DEFINES += NDEBUG
|
||||||
}
|
}
|
||||||
|
|
||||||
RC_FILE = qbittorrent.rc
|
win32-g++ {
|
||||||
|
include(winconf-mingw.pri)
|
||||||
CONFIG(debug, debug|release) {
|
}
|
||||||
LIBS += libtorrentd.lib \
|
else {
|
||||||
libboost_system-vc90-mt-gd.lib \
|
include(winconf-msvc.pri)
|
||||||
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
|
|
||||||
|
|
||||||
DEFINES += WITH_GEOIP_EMBEDDED
|
DEFINES += WITH_GEOIP_EMBEDDED
|
||||||
message("On Windows, GeoIP database must be embedded.")
|
message("On Windows, GeoIP database must be embedded.")
|
||||||
|
|
Loading…
Reference in a new issue