123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327 |
- #-------------------------------------------------
- #
- # Project created by Dharkael 2017-04-21T00:42:49
- #
- #-------------------------------------------------
- win32:LIBS += -luser32 -lshell32
- LIBS += -Llibeay32 -Lssleay32
- BASE_VERSION = 0.7.12
- TAG_VERSION = "$$system(git --git-dir $$PWD/.git rev-parse --short HEAD)"
- isEmpty(TAG_VERSION){
- DEFINES += APP_VERSION=\\\"$$BASE_VERSION\\\"
- }
- else {
- DEFINES += APP_VERSION=\\\"$$BASE_VERSION-$$TAG_VERSION\\\"
- }
- QT += core gui widgets network svg
- 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/app/flameshot.ico
- QMAKE_TARGET_COMPANY = "NameCheap"
- QMAKE_TARGET_COPYRIGHT = "GNU General Public License v3.0"
- QMAKE_TARGET_DESCRIPTION = "Flameshot - S3 bucket edition"
- VERSION = $$BASE_VERSION
- #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 \
- translations/Internationalization_ja.ts \
- translations/Internationalization_pt_br.ts \
- translations/Internationalization_sr.ts \
- translations/Internationalization_uk.ts \
- translations/Internationalization_de_DE.ts \
- translations/Internationalization_sk.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/config/filepathconfiguration.cpp \
- src/config/setshortcutwidget.cpp \
- src/config/shortcutswidget.cpp \
- src/tools/storage/imguploadertool.cpp \
- src/tools/storage/storagemanager.cpp \
- src/utils/configshortcuts.cpp \
- src/widgets/historywidget.cpp \
- src/utils/configenterprise.cpp \
- src/utils/history.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/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/storage/imguploader.cpp \
- src/tools/storage/imgur/imguruploadertool.cpp \
- src/tools/storage/imgur/imguruploader.cpp \
- src/tools/storage/s3/imgs3uploadertool.cpp \
- src/tools/storage/s3/imgs3uploader.cpp \
- src/tools/storage/s3/imgs3settings.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/pin/pintool.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/panel/utilitypanel.cpp \
- src/widgets/capture/hovereventfilter.cpp \
- src/widgets/capture/selectionwidget.cpp \
- src/tools/pin/pinwidget.cpp \
- src/widgets/capturelauncher.cpp \
- src/tools/text/texttool.cpp \
- src/tools/text/textwidget.cpp \
- src/core/capturerequest.cpp \
- src/tools/text/textconfig.cpp \
- src/widgets/panel/sidepanelwidget.cpp
- HEADERS += src/widgets/capture/buttonhandler.h \
- src/config/filepathconfiguration.h \
- src/config/setshortcutwidget.h \
- src/config/shortcutswidget.h \
- src/tools/storage/imgstorages.h \
- src/tools/storage/imguploadertool.h \
- src/tools/storage/storagemanager.h \
- src/utils/configshortcuts.h \
- src/widgets/historywidget.h \
- src/utils/configenterprise.h \
- src/utils/history.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/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/storage/imguploader.h \
- src/tools/storage/imgur/imguruploadertool.h \
- src/tools/storage/imgur/imguruploader.h \
- src/tools/storage/s3/imgs3uploader.h \
- src/tools/storage/s3/imgs3uploadertool.h \
- src/tools/storage/s3/imgs3settings.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/pin/pintool.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/panel/utilitypanel.h \
- src/widgets/capture/hovereventfilter.h \
- src/widgets/capture/selectionwidget.h \
- src/tools/pin/pinwidget.h \
- src/widgets/capturelauncher.h \
- src/tools/text/texttool.h \
- src/tools/text/textwidget.h \
- src/core/capturerequest.h \
- src/tools/text/textconfig.h \
- src/widgets/panel/sidepanelwidget.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 = $${PREFIX}/bin/
- qmfile.path = $${PREFIX}/share/flameshot/translations/
- qmfile.files = $${TRANSLATIONS_FILES}
- dbus.path = $${PREFIX}/share/dbus-1/interfaces/
- dbus.files = dbus/org.dharkael.Flameshot.xml
- icon.path = $${PREFIX}/share/icons/hicolor/
- icon.files = img/hicolor/*
- completion.path = $${PREFIX}/share/bash-completion/completions/
- completion.files = docs/bash-completion/flameshot
- appdata.path = $${PREFIX}/share/metainfo/
- appdata.files = docs/appdata/flameshot.appdata.xml
- desktopentry.path = $${PREFIX}/share/applications
- desktopentry.files = docs/desktopEntry/package/flameshot.desktop
- servicedbus.path = $${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
- }
- # Imgur API data
- include(src/imgur.pri)
|