|
|
@ -142,8 +142,9 @@ macx { |
|
|
|
contains(DEFINES, DISABLE_GUI) { |
|
|
|
contains(DEFINES, DISABLE_GUI) { |
|
|
|
QT = core |
|
|
|
QT = core |
|
|
|
TARGET = qbittorrent-nox |
|
|
|
TARGET = qbittorrent-nox |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
TARGET = qbittorrent |
|
|
|
} |
|
|
|
} |
|
|
|
else:TARGET = qbittorrent |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# QMAKE_CXXFLAGS_RELEASE += -fwrapv |
|
|
|
# QMAKE_CXXFLAGS_RELEASE += -fwrapv |
|
|
|
# QMAKE_CXXFLAGS_DEBUG += -fwrapv |
|
|
|
# QMAKE_CXXFLAGS_DEBUG += -fwrapv |
|
|
@ -210,6 +211,7 @@ os2:LIBS += -ltorrent-rasterbar \ |
|
|
|
message("On Mac OS X, GeoIP database must be embedded.") |
|
|
|
message("On Mac OS X, GeoIP database must be embedded.") |
|
|
|
} |
|
|
|
} |
|
|
|
unix:!macx:contains(DEFINES, WITH_GEOIP_EMBEDDED):message("You chose to embed GeoIP database in qBittorrent executable.") |
|
|
|
unix:!macx:contains(DEFINES, WITH_GEOIP_EMBEDDED):message("You chose to embed GeoIP database in qBittorrent executable.") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Resource files |
|
|
|
# Resource files |
|
|
|
RESOURCES = icons.qrc \ |
|
|
|
RESOURCES = icons.qrc \ |
|
|
@ -217,19 +219,19 @@ RESOURCES = icons.qrc \ |
|
|
|
search.qrc \ |
|
|
|
search.qrc \ |
|
|
|
webui.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 |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
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:message("GeoIP database will not be embedded in qBittorrent executable.") |
|
|
|
} else { |
|
|
|
|
|
|
|
message("GeoIP database will not be embedded in qBittorrent executable.") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Translations |
|
|
|
# Translations |
|
|
|