- Bump to rc4

- Clean up project file
This commit is contained in:
Christophe Dumez 2010-01-08 20:33:54 +00:00
parent eab6a194e1
commit e1b629df88

View file

@ -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,41 +118,44 @@ win32:LIBS += -lssl32 \
-ladvapi32 \ -ladvapi32 \
-lwinmm -lwinmm
win32 { !contains(DEFINES, DISABLE_GUI) {
DEFINES += WITH_GEOIP_EMBEDDED win32 {
message("On Windows, GeoIP database must be embedded.") DEFINES += WITH_GEOIP_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) {
message("You chose to embed GeoIP database in qBittorrent executable.")
}
}
# Add GeoIP resource file if the GeoIP database
# should be embedded in qBittorrent executable
contains(DEFINES, WITH_GEOIP_EMBEDDED) { contains(DEFINES, WITH_GEOIP_EMBEDDED) {
message("You chose to embed GeoIP database in qBittorrent executable.") exists("geoip/GeoIP.dat") {
message("GeoIP.dat was found in src/geoip/.")
RESOURCES += geoip.qrc
} else {
DEFINES -= WITH_GEOIP_EMBEDDED
error("GeoIP.dat was not found in src/geoip/ folder, please follow instructions in src/geoip/README.")
}
} else {
message("GeoIP database will not be embedded in qBittorrent executable.")
} }
} }
# Resource files
RESOURCES = icons.qrc \ RESOURCES = icons.qrc \
lang.qrc \ lang.qrc \
search.qrc \ search.qrc \
webui.qrc webui.qrc
# Add GeoIP resource file if the GeoIP database
# should be embedded in qBittorrent executable
contains(DEFINES, WITH_GEOIP_EMBEDDED) {
exists("geoip/GeoIP.dat") {
message("GeoIP.dat was found in src/geoip/.")
RESOURCES += geoip.qrc
} else {
DEFINES -= WITH_GEOIP_EMBEDDED
error("GeoIP.dat was not found in src/geoip/ folder, please follow instructions in src/geoip/README.")
}
} else {
message("GeoIP database will not be embedded in qBittorrent executable.")
}
# 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 \