qBittorrent/src/src.pro

138 lines
3.8 KiB
Prolog
Raw Normal View History

# Vars
LANG_PATH = lang
ICONS_PATH = Icons
#Set the following variable to 1 to enable debug
DEBUG_MODE = 1
# Global
TEMPLATE = app
TARGET = qbittorrent
CONFIG += qt thread x11 network
# Update this VERSION for each release
2007-07-23 08:57:28 +04:00
DEFINES += VERSION=\\\"v1.0.0beta2\\\"
DEFINES += VERSION_MAJOR=1
DEFINES += VERSION_MINOR=0
DEFINES += VERSION_BUGFIX=0
contains(DEBUG_MODE, 1){
CONFIG += debug
message(Debug build!)
}
contains(DEBUG_MODE, 0){
CONFIG -= debug
message(Release build!)
}
QMAKE_CXXFLAGS_RELEASE += -fwrapv -O2
QMAKE_CXXFLAGS_DEBUG += -fwrapv -O2
CONFIG += link_pkgconfig
2007-07-23 13:48:51 +04:00
PKGCONFIG += libtorrent libccext2 libccgnu2
QT += network xml
DEFINES += QT_NO_CAST_TO_ASCII
contains(DEBUG_MODE, 0){
2006-10-16 21:53:38 +04:00
contains(QT_VERSION, 4.2.0) {
message(Qt 4.2.0 detected : enabling debug output because of a bug in this version of Qt)
}else{
contains(QT_VERSION, 4.2.1) {
message(Qt 4.2.1 detected : enabling debug output because of a bug in this version of Qt)
}else{
DEFINES += QT_NO_DEBUG_OUTPUT
}
}
CONFIG += release
}
# Install
2007-03-12 16:20:29 +03:00
!win32 {
# Binary
exists(../conf.pri) {
include(../conf.pri)
# Target
target.path = $$BINDIR
INSTALLS += target
}
# Man page
2007-03-12 15:54:47 +03:00
man.files = ../doc/qbittorrent.1.gz
man.path = $$PREFIX/share/man/man1/
INSTALLS += man
# Menu Icon
menuicon.files = Icons/qBittorrent.desktop
menuicon.path = $$PREFIX/share/applications/
INSTALLS += menuicon
logos.files = menuicons/*
logos.path = $$PREFIX/share/icons/hicolor/
INSTALLS += logos
}
2007-03-12 16:20:29 +03:00
# Windows
win32 {
DEFINES += NO_UPNP
LIBS += -ltorrent -lccext2 -lccgnu2
2007-03-12 15:54:47 +03:00
}
RESOURCES = icons.qrc \
lang.qrc \
search.qrc
# Translations
TRANSLATIONS = $$LANG_PATH/qbittorrent_fr.ts \
$$LANG_PATH/qbittorrent_zh.ts \
$$LANG_PATH/qbittorrent_en.ts \
$$LANG_PATH/qbittorrent_ca.ts \
$$LANG_PATH/qbittorrent_es.ts \
$$LANG_PATH/qbittorrent_pl.ts \
$$LANG_PATH/qbittorrent_ko.ts \
$$LANG_PATH/qbittorrent_de.ts \
$$LANG_PATH/qbittorrent_nl.ts \
$$LANG_PATH/qbittorrent_tr.ts \
$$LANG_PATH/qbittorrent_sv.ts \
$$LANG_PATH/qbittorrent_el.ts \
$$LANG_PATH/qbittorrent_ru.ts \
$$LANG_PATH/qbittorrent_uk.ts \
$$LANG_PATH/qbittorrent_bg.ts \
$$LANG_PATH/qbittorrent_it.ts \
$$LANG_PATH/qbittorrent_zh_HK.ts \
$$LANG_PATH/qbittorrent_sk.ts \
$$LANG_PATH/qbittorrent_ro.ts \
2006-09-30 22:48:16 +04:00
$$LANG_PATH/qbittorrent_pt.ts \
2006-10-22 03:58:08 +04:00
$$LANG_PATH/qbittorrent_nb.ts \
$$LANG_PATH/qbittorrent_fi.ts \
2007-04-07 11:43:57 +04:00
$$LANG_PATH/qbittorrent_da.ts \
2007-07-13 16:28:18 +04:00
$$LANG_PATH/qbittorrent_ja.ts \
$$LANG_PATH/qbittorrent_hu.ts \
$$LANG_PATH/qbittorrent_pt_BR.ts
# Source code
HEADERS += GUI.h misc.h options_imp.h about_imp.h \
properties_imp.h createtorrent_imp.h \
DLListDelegate.h SearchListDelegate.h \
PropListDelegate.h previewSelect.h \
PreviewListDelegate.h trackerLogin.h \
downloadThread.h downloadFromURLImp.h \
torrentAddition.h deleteThread.h \
bittorrent.h searchEngine.h \
rss.h rss_imp.h FinishedTorrents.h \
allocationDlg.h FinishedListDelegate.h
FORMS += MainWindow.ui options.ui about.ui \
properties.ui createtorrent.ui preview.ui \
login.ui downloadFromURL.ui addTorrentDialog.ui \
search.ui rss.ui seeding.ui bandwidth_limit.ui
SOURCES += GUI.cpp \
main.cpp \
options_imp.cpp \
properties_imp.cpp \
createtorrent_imp.cpp \
bittorrent.cpp \
searchEngine.cpp \
rss_imp.cpp \
FinishedTorrents.cpp