2015-04-22 19:33:53 +02:00
|
|
|
projectname = tageditor
|
2015-07-27 23:29:04 +02:00
|
|
|
appname = "Tag Editor"
|
|
|
|
appauthor = Martchus
|
|
|
|
appurl = "https://github.com/$${appauthor}/$${projectname}"
|
2015-10-01 14:27:51 +02:00
|
|
|
QMAKE_TARGET_DESCRIPTION = "A tageditor with Qt GUI and command line interface. Supports MP4 (iTunes), ID3, Vorbis and Matroska."
|
2015-06-24 00:52:31 +02:00
|
|
|
VERSION = 1.1.5
|
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!")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
2015-08-10 00:00:40 +02:00
|
|
|
QT += core gui script
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
QT += widgets
|
|
|
|
}
|
|
|
|
!forcewebkit:qtHaveModule(webenginewidgets) {
|
|
|
|
QT += webenginewidgets
|
|
|
|
DEFINES += TAGEDITOR_USE_WEBENGINE
|
|
|
|
} else {
|
|
|
|
QT += webkitwidgets
|
|
|
|
}
|
2015-04-22 19:33:53 +02:00
|
|
|
|
|
|
|
SOURCES += application/main.cpp \
|
|
|
|
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 \
|
|
|
|
gui/infowidgetbase.cpp \
|
|
|
|
renamingutility/filesystemitem.cpp \
|
|
|
|
renamingutility/filesystemitemmodel.cpp \
|
|
|
|
renamingutility/filteredfilesystemitemmodel.cpp \
|
|
|
|
renamingutility/renamingengine.cpp \
|
|
|
|
renamingutility/scriptfunctions.cpp \
|
|
|
|
misc/htmlinfo.cpp \
|
|
|
|
gui/previousvaluehandling.cpp \
|
|
|
|
gui/initiate.cpp \
|
|
|
|
cli/mainfeatures.cpp \
|
|
|
|
misc/utility.cpp \
|
|
|
|
gui/entertargetdialog.cpp \
|
|
|
|
gui/attachmentsmodel.cpp \
|
|
|
|
gui/attachmentsedit.cpp \
|
|
|
|
gui/codeedit.cpp
|
|
|
|
|
|
|
|
HEADERS += application/main.h \
|
|
|
|
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/infowidgetbase.h \
|
|
|
|
gui/settingsdialog.h \
|
|
|
|
renamingutility/filesystemitem.h \
|
|
|
|
renamingutility/filesystemitemmodel.h \
|
|
|
|
renamingutility/filteredfilesystemitemmodel.h \
|
|
|
|
renamingutility/renamingengine.h \
|
|
|
|
renamingutility/scriptfunctions.h \
|
|
|
|
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
|
|
|
|
|
|
|
|
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/infooptionpage.ui \
|
|
|
|
gui/entertargetdialog.ui \
|
|
|
|
gui/attachmentsedit.ui \
|
|
|
|
gui/editortempoptionpage.ui
|
|
|
|
|
|
|
|
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-06-12 02:33:39 +02:00
|
|
|
include(translations.pri)
|
2015-04-22 19:33:53 +02:00
|
|
|
|
2015-07-17 23:57:27 +02:00
|
|
|
win32:include(windowsicon.pri)
|
|
|
|
|
2015-04-22 19:33:53 +02:00
|
|
|
OTHER_FILES += \
|
2015-06-08 22:07:39 +02:00
|
|
|
README.md \
|
2015-06-26 02:31:02 +02:00
|
|
|
LICENSE
|
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
|
|
|
|
INSTALLS += menu
|
|
|
|
}
|