tageditor/tageditor.pro

165 lines
4.5 KiB
Prolog
Raw Normal View History

2015-12-08 08:40:03 +01:00
# meta data
2015-04-22 19:33:53 +02:00
projectname = tageditor
appname = "Tag Editor"
appauthor = Martchus
appurl = "https://github.com/$${appauthor}/$${projectname}"
QMAKE_TARGET_DESCRIPTION = "A tageditor with Qt GUI and command line interface. Supports MP4 (iTunes), ID3, Vorbis, Opus and Matroska."
VERSION = 1.4.0
2015-04-22 19:33:53 +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:40:03 +01:00
# basic configuration: application
2015-04-22 19:33:53 +02:00
TEMPLATE = app
2016-03-10 22:13:43 +01:00
QT += core gui widgets concurrent network
2015-12-26 00:25:06 +01:00
# use webkitwidgets if available; otherwise use webenginewidgets
!forcewebengine:qtHaveModule(webkitwidgets) {
QT += webkitwidgets
} else {
QT += webenginewidgets
DEFINES += TAGEDITOR_USE_WEBENGINE
}
# use script if available; otherwise use qml
!forcejsengine:qtHaveModule(script) {
QT += script
} else {
QT += qml
DEFINES += TAGEDITOR_USE_JSENGINE
}
2015-04-22 19:33:53 +02:00
2015-12-08 08:40:03 +01:00
# add project files
HEADERS += \
application/main.h \
2015-04-22 19:33:53 +02:00
application/knownfieldmodel.h \
application/settings.h \
gui/filefilterproxymodel.h \
gui/tagfieldedit.h \
gui/tagedit.h \
gui/mainwindow.h \
gui/pathlineedit.h \
gui/notificationlabel.h \
gui/renamefilesdialog.h \
gui/javascripthighlighter.h \
gui/picturepreviewselection.h \
gui/notificationmodel.h \
gui/settingsdialog.h \
renamingutility/filesystemitem.h \
renamingutility/filesystemitemmodel.h \
renamingutility/filteredfilesystemitemmodel.h \
renamingutility/renamingengine.h \
renamingutility/scriptdefs.h \
renamingutility/tageditorobject.h \
2015-04-22 19:33:53 +02:00
misc/htmlinfo.h \
gui/previousvaluehandling.h \
gui/initiate.h \
cli/mainfeatures.h \
misc/utility.h \
gui/entertargetdialog.h \
gui/attachmentsmodel.h \
gui/attachmentsedit.h \
gui/codeedit.h \
2016-03-03 22:21:15 +01:00
gui/tageditorwidget.h \
dbquery/dbquery.h \
gui/dbquerywidget.h
2015-04-22 19:33:53 +02:00
SOURCES += \
application/main.cpp \
2015-12-08 08:40:03 +01:00
application/knownfieldmodel.cpp \
application/settings.cpp \
gui/filefilterproxymodel.cpp \
gui/settingsdialog.cpp \
gui/mainwindow.cpp \
gui/pathlineedit.cpp \
gui/notificationlabel.cpp \
gui/renamefilesdialog.cpp \
gui/javascripthighlighter.cpp \
gui/tagfieldedit.cpp \
gui/tagedit.cpp \
gui/picturepreviewselection.cpp \
gui/notificationmodel.cpp \
renamingutility/filesystemitem.cpp \
renamingutility/filesystemitemmodel.cpp \
renamingutility/filteredfilesystemitemmodel.cpp \
renamingutility/renamingengine.cpp \
renamingutility/tageditorobject.cpp \
2015-12-08 08:40:03 +01:00
misc/htmlinfo.cpp \
gui/initiate.cpp \
cli/mainfeatures.cpp \
misc/utility.cpp \
gui/entertargetdialog.cpp \
gui/attachmentsmodel.cpp \
gui/attachmentsedit.cpp \
gui/codeedit.cpp \
2016-03-03 22:21:15 +01:00
gui/tageditorwidget.cpp \
dbquery/dbquery.cpp \
gui/dbquerywidget.cpp
2015-12-08 08:40:03 +01:00
2015-04-22 19:33:53 +02:00
FORMS += \
gui/id3v2optionpage.ui \
gui/id3v1optionpage.ui \
gui/tagprocessinggeneraloptionpage.ui \
gui/editorgeneraloptionpage.ui \
gui/filebrowsergeneraloptionpage.ui \
gui/mainwindow.ui \
gui/renamefilesdialog.ui \
gui/editorautocorrectionoptionpage.ui \
gui/picturepreviewselection.ui \
gui/editorfieldsoptionpage.ui \
gui/editordbqueryoptionpage.ui \
2015-04-22 19:33:53 +02:00
gui/infooptionpage.ui \
gui/entertargetdialog.ui \
gui/attachmentsedit.ui \
2015-11-26 19:25:59 +01:00
gui/editortempoptionpage.ui \
gui/filelayout.ui \
2016-03-03 22:21:15 +01:00
gui/tageditorwidget.ui \
gui/dbquerywidget.ui
2015-04-22 19:33:53 +02:00
2015-12-08 08:40:03 +01:00
RESOURCES += \
resources/icons.qrc \
2015-04-29 22:04:18 +02:00
resources/scripts.qrc
2015-04-22 19:33:53 +02:00
TRANSLATIONS = \
translations/tageditor_en_US.ts \
translations/tageditor_de_DE.ts
2015-07-17 23:57:27 +02:00
2015-04-22 19:33:53 +02:00
OTHER_FILES += \
2015-06-08 22:07:39 +02:00
README.md \
2015-12-08 08:40:03 +01:00
LICENSE \
CMakeLists.txt \
resources/config.h.in \
resources/windows.rc.in
# release translations
include(translations.pri)
# add libs
2015-04-22 19:33:53 +02:00
CONFIG(debug, debug|release) {
2015-08-26 20:29:28 +02:00
LIBS += -lc++utilitiesd -ltagparserd
2015-04-22 19:33:53 +02:00
!no-gui {
LIBS += -lqtutilitiesd
}
} else {
2015-08-26 20:29:28 +02:00
LIBS += -lc++utilities -ltagparser
2015-04-22 19:33:53 +02:00
!no-gui {
LIBS += -lqtutilities
}
}
# installs
target.path = $$(INSTALL_ROOT)/bin
INSTALLS += target
2015-07-17 23:57:27 +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 \
$${PWD}/resources/desktop/applications/$${projectname}-renamingutility.desktop
2015-07-17 23:57:27 +02:00
INSTALLS += menu
}