|
|
@ -11,7 +11,7 @@ CONFIG += qt \ |
|
|
|
thread |
|
|
|
thread |
|
|
|
|
|
|
|
|
|
|
|
# Update this VERSION for each release |
|
|
|
# Update this VERSION for each release |
|
|
|
DEFINES += VERSION=\\\"v2.1.0rc3\\\" |
|
|
|
DEFINES += VERSION=\\\"v2.1.0rc4\\\" |
|
|
|
DEFINES += VERSION_MAJOR=2 |
|
|
|
DEFINES += VERSION_MAJOR=2 |
|
|
|
DEFINES += VERSION_MINOR=1 |
|
|
|
DEFINES += VERSION_MINOR=1 |
|
|
|
DEFINES += VERSION_BUGFIX=0 |
|
|
|
DEFINES += VERSION_BUGFIX=0 |
|
|
@ -38,7 +38,8 @@ contains(DEBUG_MODE, 0) { |
|
|
|
include(../conf.pri) |
|
|
|
include(../conf.pri) |
|
|
|
|
|
|
|
|
|
|
|
# Target |
|
|
|
# Target |
|
|
|
target.path = $$BINDIR |
|
|
|
#target.path = $$BINDIR |
|
|
|
|
|
|
|
target.path = $$PREFIX/bin/ |
|
|
|
INSTALLS += target |
|
|
|
INSTALLS += target |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -117,30 +118,26 @@ win32:LIBS += -lssl32 \ |
|
|
|
-ladvapi32 \ |
|
|
|
-ladvapi32 \ |
|
|
|
-lwinmm |
|
|
|
-lwinmm |
|
|
|
|
|
|
|
|
|
|
|
win32 { |
|
|
|
!contains(DEFINES, DISABLE_GUI) { |
|
|
|
|
|
|
|
win32 { |
|
|
|
DEFINES += WITH_GEOIP_EMBEDDED |
|
|
|
DEFINES += WITH_GEOIP_EMBEDDED |
|
|
|
message("On Windows, GeoIP database must be embedded.") |
|
|
|
message("On Windows, GeoIP database must be embedded.") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
macx { |
|
|
|
macx { |
|
|
|
DEFINES += WITH_GEOIP_EMBEDDED |
|
|
|
DEFINES += WITH_GEOIP_EMBEDDED |
|
|
|
message("On Mac OS X, GeoIP database must be embedded.") |
|
|
|
message("On Mac OS X, GeoIP database must be embedded.") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
unix:!macx { |
|
|
|
unix:!macx { |
|
|
|
contains(DEFINES, WITH_GEOIP_EMBEDDED) { |
|
|
|
contains(DEFINES, WITH_GEOIP_EMBEDDED) { |
|
|
|
message("You chose to embed GeoIP database in qBittorrent executable.") |
|
|
|
message("You chose to embed GeoIP database in qBittorrent executable.") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
RESOURCES = icons.qrc \ |
|
|
|
|
|
|
|
lang.qrc \ |
|
|
|
|
|
|
|
search.qrc \ |
|
|
|
|
|
|
|
webui.qrc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add GeoIP resource file if the GeoIP database |
|
|
|
# Add GeoIP resource file if the GeoIP database |
|
|
|
# should be embedded in qBittorrent executable |
|
|
|
# should be embedded in qBittorrent executable |
|
|
|
contains(DEFINES, WITH_GEOIP_EMBEDDED) { |
|
|
|
contains(DEFINES, WITH_GEOIP_EMBEDDED) { |
|
|
|
exists("geoip/GeoIP.dat") { |
|
|
|
exists("geoip/GeoIP.dat") { |
|
|
|
message("GeoIP.dat was found in src/geoip/.") |
|
|
|
message("GeoIP.dat was found in src/geoip/.") |
|
|
|
RESOURCES += geoip.qrc |
|
|
|
RESOURCES += geoip.qrc |
|
|
@ -148,10 +145,17 @@ contains(DEFINES, WITH_GEOIP_EMBEDDED) { |
|
|
|
DEFINES -= WITH_GEOIP_EMBEDDED |
|
|
|
DEFINES -= WITH_GEOIP_EMBEDDED |
|
|
|
error("GeoIP.dat was not found in src/geoip/ folder, please follow instructions in src/geoip/README.") |
|
|
|
error("GeoIP.dat was not found in src/geoip/ folder, please follow instructions in src/geoip/README.") |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
message("GeoIP database will not be embedded in qBittorrent executable.") |
|
|
|
message("GeoIP database will not be embedded in qBittorrent executable.") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Resource files |
|
|
|
|
|
|
|
RESOURCES = icons.qrc \ |
|
|
|
|
|
|
|
lang.qrc \ |
|
|
|
|
|
|
|
search.qrc \ |
|
|
|
|
|
|
|
webui.qrc |
|
|
|
|
|
|
|
|
|
|
|
# Translations |
|
|
|
# Translations |
|
|
|
TRANSLATIONS = $$LANG_PATH/qbittorrent_fr.ts \ |
|
|
|
TRANSLATIONS = $$LANG_PATH/qbittorrent_fr.ts \ |
|
|
|
$$LANG_PATH/qbittorrent_zh.ts \ |
|
|
|
$$LANG_PATH/qbittorrent_zh.ts \ |
|
|
@ -245,7 +249,6 @@ contains(DEFINES, DISABLE_GUI) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
!contains(DEFINES, DISABLE_GUI) { |
|
|
|
!contains(DEFINES, DISABLE_GUI) { |
|
|
|
message(adding forms) |
|
|
|
|
|
|
|
FORMS += ui/mainwindow.ui \ |
|
|
|
FORMS += ui/mainwindow.ui \ |
|
|
|
ui/options.ui \ |
|
|
|
ui/options.ui \ |
|
|
|
ui/about.ui \ |
|
|
|
ui/about.ui \ |
|
|
|