Files
flameshot/flameshot.pro
lupoDharkael 522c9b1ed1 Add panel
The side panel opens with the Space key, this panel can contain
    widgets to assist the capture with more features.
    This commit fixes the preview of the tool hiding it when the
    mouse hovers a widget. This is more needed now having a new widget
    inside the CaptureWidget.
2018-04-13 20:26:24 +02:00

263 lines
7.9 KiB
Prolog

#-------------------------------------------------
#
# Project created by Dharkael 2017-04-21T00:42:49
#
#-------------------------------------------------
win32:LIBS += -luser32 -lshell32
TAG_VERSION = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags)
DEFINES += APP_VERSION=\\\"$$TAG_VERSION\\\"
QT += core gui widgets network
unix:!macx {
QT += dbus
}
CONFIG += c++11 link_pkgconfig
#CONFIG += packaging # Enables "make install" for packaging paths
TARGET = flameshot
TEMPLATE = app
win32:RC_ICONS += img/flameshot.ico
#release: DESTDIR = build/release
#debug: DESTDIR = build/debug
#OBJECTS_DIR = $$DESTDIR/.obj
#MOC_DIR = $$DESTDIR/.moc
#RCC_DIR = $$DESTDIR/.qrc
#UI_DIR = $$DESTDIR/.ui
TRANSLATIONS = translations/Internationalization_es.ts \
translations/Internationalization_ca.ts \
translations/Internationalization_ru.ts \
translations/Internationalization_zh_CN.ts \
translations/Internationalization_zh_TW.ts \
translations/Internationalization_tr.ts \
translations/Internationalization_ka.ts \
translations/Internationalization_fr.ts \
translations/Internationalization_pl.ts
# Generate translations in build
TRANSLATIONS_FILES =
qtPrepareTool(LRELEASE, lrelease)
for(tsfile, TRANSLATIONS) {
qmfile = $$shadowed($$tsfile)
qmfile ~= s,.ts$,.qm,
qmdir = $$dirname(qmfile)
!exists($$qmdir) {
mkpath($$qmdir)|error("Aborting.")
}
command = $$LRELEASE -removeidentical $$tsfile -qm $$qmfile
system($$command)|error("Failed to run: $$command")
TRANSLATIONS_FILES += $$qmfile
}
DEFINES += QT_DEPRECATED_WARNINGS
include(src/third-party/singleapplication/singleapplication.pri)
include(src/third-party/Qt-Color-Widgets//color_widgets.pri)
DEFINES += QAPPLICATION_CLASS=QApplication
SOURCES += src/main.cpp \
src/widgets/capture/buttonhandler.cpp \
src/widgets/infowindow.cpp \
src/config/configwindow.cpp \
src/widgets/capture/capturewidget.cpp \
src/widgets/capture/colorpicker.cpp \
src/config/buttonlistview.cpp \
src/config/uicoloreditor.cpp \
src/config/geneneralconf.cpp \
src/core/controller.cpp \
src/config/clickablelabel.cpp \
src/config/filenameeditor.cpp \
src/config/strftimechooserwidget.cpp \
src/widgets/capture/capturebutton.cpp \
src/tools/pencil/penciltool.cpp \
src/tools/undo/undotool.cpp \
src/tools/redo/redotool.cpp \
src/tools/arrow/arrowtool.cpp \
src/tools/circle/circletool.cpp \
src/tools/copy/copytool.cpp \
src/tools/exit/exittool.cpp \
src/tools/imgur/imguruploadertool.cpp \
src/tools/line/linetool.cpp \
src/tools/marker/markertool.cpp \
src/tools/move/movetool.cpp \
src/tools/rectangle/rectangletool.cpp \
src/tools/save/savetool.cpp \
src/tools/selection/selectiontool.cpp \
src/tools/sizeindicator/sizeindicatortool.cpp \
src/tools/toolfactory.cpp \
src/utils/filenamehandler.cpp \
src/utils/screengrabber.cpp \
src/utils/confighandler.cpp \
src/utils/systemnotification.cpp \
src/cli/commandlineparser.cpp \
src/cli/commandoption.cpp \
src/cli/commandargument.cpp \
src/utils/screenshotsaver.cpp \
src/tools/imgur/imguruploader.cpp \
src/widgets/loadspinner.cpp \
src/widgets/imagelabel.cpp \
src/widgets/notificationwidget.cpp \
src/widgets/capture/notifierbox.cpp \
src/utils/desktopinfo.cpp \
src/tools/launcher/applauncherwidget.cpp \
src/utils/desktopfileparse.cpp \
src/tools/launcher/launcheritemdelegate.cpp \
src/tools/blur/blurtool.cpp \
src/tools/launcher/terminallauncher.cpp \
src/config/visualseditor.cpp \
src/config/extendedslider.cpp \
src/tools/launcher/openwithprogram.cpp \
src/tools/launcher/applaunchertool.cpp \
src/utils/pathinfo.cpp \
src/utils/colorutils.cpp \
src/tools/capturecontext.cpp \
src/widgets/capture/modificationcommand.cpp \
src/tools/abstractpathtool.cpp \
src/tools/abstracttwopointtool.cpp \
src/tools/abstractactiontool.cpp \
src/utils/globalvalues.cpp \
src/widgets/capture/utilitypanel.cpp \
src/widgets/capture/hovereventfilter.cpp
HEADERS += src/widgets/capture/buttonhandler.h \
src/widgets/infowindow.h \
src/config/configwindow.h \
src/widgets/capture/capturewidget.h \
src/widgets/capture/colorpicker.h \
src/config/buttonlistview.h \
src/config/uicoloreditor.h \
src/config/geneneralconf.h \
src/config/clickablelabel.h \
src/config/filenameeditor.h \
src/utils/filenamehandler.h \
src/config/strftimechooserwidget.h \
src/utils/screengrabber.h \
src/tools/capturetool.h \
src/widgets/capture/capturebutton.h \
src/tools/pencil/penciltool.h \
src/tools/undo/undotool.h \
src/tools/redo/redotool.h \
src/tools/arrow/arrowtool.h \
src/tools/circle/circletool.h \
src/tools/copy/copytool.h \
src/tools/exit/exittool.h \
src/tools/imgur/imguruploadertool.h \
src/tools/line/linetool.h \
src/tools/marker/markertool.h \
src/tools/move/movetool.h \
src/tools/rectangle/rectangletool.h \
src/tools/save/savetool.h \
src/tools/selection/selectiontool.h \
src/tools/sizeindicator/sizeindicatortool.h \
src/tools/toolfactory.h \
src/utils/confighandler.h \
src/core/controller.h \
src/utils/systemnotification.h \
src/cli/commandlineparser.h \
src/cli/commandoption.h \
src/cli/commandargument.h \
src/utils/screenshotsaver.h \
src/tools/imgur/imguruploader.h \
src/widgets/loadspinner.h \
src/widgets/imagelabel.h \
src/widgets/notificationwidget.h \
src/widgets/capture/notifierbox.h \
src/utils/desktopinfo.h \
src/tools/launcher/applauncherwidget.h \
src/utils/desktopfileparse.h \
src/tools/launcher/launcheritemdelegate.h \
src/tools/blur/blurtool.h \
src/tools/launcher/terminallauncher.h \
src/config/visualseditor.h \
src/config/extendedslider.h \
src/tools/launcher/openwithprogram.h \
src/utils/pathinfo.h \
src/tools/capturecontext.h \
src/tools/launcher/applaunchertool.h \
src/utils/globalvalues.h \
src/utils/colorutils.h \
src/widgets/capture/modificationcommand.h \
src/tools/abstractpathtool.h \
src/tools/abstracttwopointtool.h \
src/tools/abstractactiontool.h \
src/widgets/capture/utilitypanel.h \
src/widgets/capture/hovereventfilter.h
unix:!macx {
SOURCES += src/core/flameshotdbusadapter.cpp \
src/utils/dbusutils.cpp
HEADERS += src/core/flameshotdbusadapter.h \
src/utils/dbusutils.h
}
win32 {
SOURCES += src/core/globalshortcutfilter.cpp
HEADERS += src/core/globalshortcutfilter.h
}
RESOURCES += \
graphics.qrc
# installs
unix:!macx {
isEmpty(PREFIX) {
packaging {
PREFIX = /usr
} else {
PREFIX = /usr/local
}
}
DEFINES += APP_PREFIX=\\\"$$PREFIX\\\"
target.path = $${BASEDIR}$${PREFIX}/bin/
qmfile.path = $${BASEDIR}$${PREFIX}/share/flameshot/translations/
qmfile.files = $${TRANSLATIONS_FILES}
dbus.path = $${BASEDIR}$${PREFIX}/share/dbus-1/interfaces/
dbus.files = dbus/org.dharkael.Flameshot.xml
icon.path = $${BASEDIR}$${PREFIX}/share/icons/
icon.files = img/flameshot.png
completion.path = $${BASEDIR}$${PREFIX}/share/bash-completion/completions/
completion.files = docs/bash-completion/flameshot
appdata.path = $${BASEDIR}$${PREFIX}/share/metainfo/
appdata.files = docs/appdata/flameshot.appdata.xml
desktopentry.path = $${BASEDIR}$${PREFIX}/share/applications
desktopentry.files = docs/desktopEntry/package/flameshot.desktop
servicedbus.path = $${BASEDIR}$${PREFIX}/share/dbus-1/services/
packaging {
servicedbus.files = dbus/package/org.dharkael.Flameshot.service
} else {
servicedbus.files = dbus/make/org.dharkael.Flameshot.service
}
INSTALLS += target \
icon \
desktopentry \
qmfile \
servicedbus \
dbus \
completion \
appdata
}