videodownloader/videodownloader.pro

169 lines
4.5 KiB
Prolog
Raw Normal View History

2015-12-08 08:41:06 +01:00
# meta data
2015-04-22 19:32:04 +02:00
projectname = videodownloader
2015-07-27 23:31:31 +02:00
appname = "Video Downloader"
appauthor = Martchus
appurl = "https://github.com/$${appauthor}/$${projectname}"
2015-12-05 22:56:32 +01:00
QMAKE_TARGET_DESCRIPTION = "A video downloader with Qt GUI (currently only YouTube and Vimeo are maintained)."
2015-12-27 22:51:59 +01:00
VERSION = 1.3.0
2015-04-22 19:32:04 +02:00
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
!include(../../common.pri) {
!include(./general.pri) {
error("Couldn't find the common.pri or the general.pri file!")
}
}
2015-12-08 08:41:06 +01:00
# basic configuration: application
2015-04-22 19:32:04 +02:00
TEMPLATE = app
2015-12-08 08:41:06 +01:00
QT += core gui widgets network
2015-04-22 19:32:04 +02:00
2015-12-08 08:41:06 +01:00
# add defines for configuration
2015-04-22 19:32:04 +02:00
testdownload {
DEFINES += CONFIG_TESTDOWNLOAD
}
underconstruction {
DEFINES += UNDER_CONSTRUCTION
}
2015-04-22 19:32:04 +02:00
!notrayicon {
DEFINES += CONFIG_USE_TRAY_ICON
usetrayiconalways {
DEFINES += CONFIG_USE_TRAY_ICON_ALWAYS
}
}
2015-12-08 08:41:06 +01:00
# add project files
2015-04-22 19:32:04 +02:00
HEADERS += application/main.h \
network/bitsharedownload.h \
network/download.h \
model/downloadmodel.h \
network/downloadrange.h \
network/filenukedownload.h \
network/finder/downloadfinder.h \
network/finder/groovesharksearcher.h \
network/finder/youtubeplaylist.h \
model/downloadfinderresultsmodel.h \
network/finder/linkfinder.h \
network/groovesharkdownload.h \
network/httpdownload.h \
network/httpdownloadwithinforequst.h \
network/misc/contentdispositionparser.h \
network/socksharedownload.h \
network/youtubedownload.h \
gui/adddownloaddialog.h \
gui/addmultipledownloadswizard.h \
gui/downloadwidget.h \
gui/mainwindow.h \
gui/setrangedialog.h \
application/utils.h \
itemdelegates/comboboxitemdelegate.h \
itemdelegates/progressbaritemdelegate.h \
gui/downloadinteraction.h \
gui/settings.h \
network/authenticationcredentials.h \
network/permissionstatus.h \
network/optiondata.h \
application/main.h \
gui/initiate.h \
cli/mainfeatures.h \
2015-10-14 22:58:55 +02:00
cli/clidownloadinteraction.h \
network/vimeodownload.h
2015-04-22 19:32:04 +02:00
2015-12-08 08:41:06 +01:00
SOURCES += application/main.cpp \
network/bitsharedownload.cpp \
network/download.cpp \
model/downloadmodel.cpp \
network/downloadrange.cpp \
network/filenukedownload.cpp \
network/finder/downloadfinder.cpp \
network/finder/groovesharksearcher.cpp \
network/finder/youtubeplaylist.cpp \
model/downloadfinderresultsmodel.cpp \
network/finder/linkfinder.cpp \
network/groovesharkdownload.cpp \
network/httpdownload.cpp \
network/httpdownloadwithinforequst.cpp \
network/misc/contentdispositionparser.cpp \
network/socksharedownload.cpp \
network/youtubedownload.cpp \
gui/adddownloaddialog.cpp \
gui/addmultipledownloadswizard.cpp \
gui/downloadwidget.cpp \
gui/mainwindow.cpp \
gui/setrangedialog.cpp \
application/utils.cpp \
itemdelegates/comboboxitemdelegate.cpp \
itemdelegates/progressbaritemdelegate.cpp \
gui/downloadinteraction.cpp \
gui/settings.cpp \
network/optiondata.cpp \
gui/initiate.cpp \
cli/mainfeatures.cpp \
cli/clidownloadinteraction.cpp \
network/vimeodownload.cpp
2015-04-22 19:32:04 +02:00
testdownload {
2015-12-08 08:41:06 +01:00
HEADERS += \
network/testdownload.h
SOURCES += \
network/testdownload.cpp
2015-04-22 19:32:04 +02:00
}
underconstruction {
2015-12-08 08:41:06 +01:00
SOURCES += \
network/spotifydownload.cpp
2015-12-08 08:41:06 +01:00
HEADERS += \
network/spotifydownload.h
}
2015-12-08 08:41:06 +01:00
FORMS += \
gui/adddownloaddialog.ui \
2015-04-22 19:32:04 +02:00
gui/downloadwidget.ui \
gui/setrangedialog.ui \
gui/mainwindow.ui \
gui/targetpage.ui \
gui/proxypage.ui \
gui/useragentpage.ui
RESOURCES += resources/icons.qrc \
resources/json.qrc
OTHER_FILES += \
2015-06-08 22:11:28 +02:00
README.md \
2015-12-08 08:41:06 +01:00
LICENSE \
CMakeLists.txt \
resources/config.h.in \
resources/windows.rc.in
# make windows icon
win32:include(windowsicon.pri)
2015-04-22 19:32:04 +02:00
2015-12-08 08:41:06 +01:00
# add libs
2015-04-22 19:32:04 +02:00
CONFIG(debug, debug|release) {
2015-08-26 20:27:40 +02:00
LIBS += -lc++utilitiesd
2015-04-22 19:32:04 +02:00
!no-gui {
LIBS += -lqtutilitiesd
}
} else {
2015-08-26 20:27:40 +02:00
LIBS += -lc++utilities
2015-04-22 19:32:04 +02:00
!no-gui {
LIBS += -lqtutilities
}
}
# installs
target.path = $$(INSTALL_ROOT)/bin
INSTALLS += target
2015-07-17 23:58:15 +02:00
!mingw-w64-install {
icon.path = $$(INSTALL_ROOT)/share/icons/hicolor/scalable/apps/
icon.files = $${PWD}/resources/icons/hicolor/scalable/apps/$${projectname}.svg
INSTALLS += icon
menu.path = $$(INSTALL_ROOT)/share/applications/
menu.files = $${PWD}/resources/desktop/applications/$${projectname}.desktop
INSTALLS += menu
}
2015-04-22 19:32:04 +02:00
json.path = $$(INSTALL_ROOT)/share/$${projectname}/json/
json.files = $${PWD}/resources/json/groovesharkauthenticationinfo.json
2015-04-22 19:32:04 +02:00
INSTALLS += json