2017-04-23 15:05:48 +02:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2017-04-19T15:47:09
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
QT += core gui network
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
TARGET = KShare
|
|
|
|
TEMPLATE = app
|
|
|
|
|
2017-06-22 17:41:29 +02:00
|
|
|
CONFIG += c++11
|
|
|
|
|
2017-04-23 15:05:48 +02:00
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
|
|
# any feature of Qt which as been marked as deprecated (the exact warnings
|
|
|
|
# depend on your compiler). Please consult the documentation of the
|
|
|
|
# deprecated API in order to know how to port your code away from it.
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
|
|
# You can also make your code fail to compile if you use deprecated APIs.
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
|
|
|
|
|
|
|
SOURCES += main.cpp\
|
|
|
|
mainwindow.cpp \
|
|
|
|
cropeditor/cropeditor.cpp \
|
|
|
|
cropeditor/cropview.cpp \
|
|
|
|
cropeditor/cropscene.cpp \
|
|
|
|
uploaders/uploadersingleton.cpp \
|
|
|
|
screenshotter.cpp \
|
|
|
|
screenshotutil.cpp \
|
|
|
|
uploaders/default/imguruploader.cpp \
|
|
|
|
io/ioutils.cpp \
|
|
|
|
settings.cpp \
|
2017-04-23 20:29:24 +02:00
|
|
|
uploaders/default/clipboarduploader.cpp \
|
2017-04-24 23:14:01 +02:00
|
|
|
formatter.cpp \
|
2017-04-25 22:17:36 +02:00
|
|
|
uploaders/customuploader.cpp \
|
2017-04-26 22:00:13 +02:00
|
|
|
notifications.cpp \
|
2017-04-29 17:35:42 +02:00
|
|
|
hotkeying.cpp \
|
2017-04-29 23:00:32 +02:00
|
|
|
cropeditor/drawing/dotitem.cpp \
|
2017-05-01 11:28:54 +02:00
|
|
|
cropeditor/settings/brushpenselection.cpp \
|
|
|
|
cropeditor/drawing/bluritem.cpp \
|
2017-05-01 18:43:54 +02:00
|
|
|
cropeditor/settings/blurdialog.cpp \
|
|
|
|
cropeditor/drawing/pathitem.cpp \
|
2017-05-05 23:59:39 +02:00
|
|
|
cropeditor/drawing/lineitem.cpp \
|
2017-05-16 15:52:15 +02:00
|
|
|
cropeditor/drawing/textitem.cpp \
|
2017-05-29 22:42:10 +02:00
|
|
|
colorpicker/colorpickerscene.cpp \
|
2017-05-31 17:24:17 +02:00
|
|
|
worker/worker.cpp \
|
2017-06-04 01:04:42 +02:00
|
|
|
screenareaselector/screenareaselector.cpp \
|
|
|
|
recording/recordingpreview.cpp \
|
2017-06-04 22:58:29 +02:00
|
|
|
recording/recordingcontroller.cpp \
|
2017-06-06 17:05:34 +02:00
|
|
|
recording/recordingformats.cpp \
|
2017-06-11 23:56:06 +02:00
|
|
|
formats.cpp \
|
2017-06-17 17:32:47 +02:00
|
|
|
recording/encoders/encoder.cpp \
|
|
|
|
recording/encoders/encodersettings.cpp \
|
2017-06-22 17:41:29 +02:00
|
|
|
recording/encoders/encodersettingsdialog.cpp \
|
|
|
|
settingsdialog.cpp \
|
2017-06-26 15:43:12 +02:00
|
|
|
aboutbox.cpp \
|
|
|
|
cropeditor/drawing/eraseritem.cpp \
|
2017-06-26 18:27:38 +02:00
|
|
|
cropeditor/drawing/rectitem.cpp \
|
2017-06-27 12:46:35 +02:00
|
|
|
cropeditor/drawing/ellipseitem.cpp \
|
|
|
|
hotkeyinputdialog.cpp
|
2017-04-23 15:05:48 +02:00
|
|
|
|
|
|
|
HEADERS += mainwindow.hpp \
|
|
|
|
cropeditor/cropeditor.hpp \
|
|
|
|
cropeditor/cropview.hpp \
|
|
|
|
cropeditor/cropscene.hpp \
|
|
|
|
uploaders/uploader.hpp \
|
|
|
|
uploaders/uploadersingleton.hpp \
|
|
|
|
screenshotter.hpp \
|
|
|
|
screenshotutil.hpp \
|
|
|
|
uploaders/default/imguruploader.hpp \
|
|
|
|
io/ioutils.hpp \
|
|
|
|
settings.hpp \
|
2017-04-23 20:29:24 +02:00
|
|
|
uploaders/default/clipboarduploader.hpp \
|
2017-04-24 23:14:01 +02:00
|
|
|
formatter.hpp \
|
2017-04-25 22:17:36 +02:00
|
|
|
uploaders/customuploader.hpp \
|
2017-04-26 22:00:13 +02:00
|
|
|
notifications.hpp \
|
2017-04-29 12:08:02 +02:00
|
|
|
hotkeying.hpp \
|
2017-04-29 17:35:42 +02:00
|
|
|
cropeditor/drawing/drawitem.hpp \
|
2017-04-29 23:00:32 +02:00
|
|
|
cropeditor/drawing/dotitem.hpp \
|
2017-05-01 11:28:54 +02:00
|
|
|
cropeditor/settings/brushpenselection.hpp \
|
|
|
|
cropeditor/drawing/bluritem.hpp \
|
2017-05-01 18:43:54 +02:00
|
|
|
cropeditor/settings/blurdialog.hpp \
|
|
|
|
cropeditor/drawing/pathitem.hpp \
|
2017-05-05 23:59:39 +02:00
|
|
|
cropeditor/drawing/lineitem.hpp \
|
2017-05-16 15:52:15 +02:00
|
|
|
cropeditor/drawing/textitem.hpp \
|
2017-05-17 13:53:30 +02:00
|
|
|
colorpicker/colorpickerscene.hpp \
|
2017-05-19 22:32:23 +02:00
|
|
|
platformbackend.hpp \
|
2017-05-31 17:24:17 +02:00
|
|
|
worker/worker.hpp \
|
2017-06-04 01:04:42 +02:00
|
|
|
screenareaselector/screenareaselector.hpp \
|
|
|
|
recording/recordingpreview.hpp \
|
2017-06-04 22:58:29 +02:00
|
|
|
recording/recordingcontroller.hpp \
|
2017-06-06 17:05:34 +02:00
|
|
|
recording/recordingformats.hpp \
|
2017-06-11 23:56:06 +02:00
|
|
|
formats.hpp \
|
2017-06-17 17:32:47 +02:00
|
|
|
recording/encoders/encoder.hpp \
|
|
|
|
recording/encoders/encodersettings.hpp \
|
2017-06-22 17:41:29 +02:00
|
|
|
recording/encoders/encodersettingsdialog.hpp \
|
|
|
|
settingsdialog.hpp \
|
2017-06-26 15:43:12 +02:00
|
|
|
aboutbox.hpp \
|
|
|
|
cropeditor/drawing/eraseritem.hpp \
|
2017-06-26 18:27:38 +02:00
|
|
|
cropeditor/drawing/rectitem.hpp \
|
2017-06-27 12:46:35 +02:00
|
|
|
cropeditor/drawing/ellipseitem.hpp \
|
|
|
|
hotkeyinputdialog.hpp
|
2017-06-11 23:56:06 +02:00
|
|
|
|
|
|
|
LIBS += -lavcodec -lavformat -lavutil -lswscale -lavutil
|
2017-05-19 22:32:23 +02:00
|
|
|
|
2017-05-13 11:03:46 +02:00
|
|
|
mac {
|
|
|
|
SOURCES += $$PWD/platformspecifics/mac/macbackend.cpp
|
|
|
|
HEADERS += $$PWD/platformspecifics/mac/macbackend.hpp
|
|
|
|
LIBS += -framework Carbon
|
2017-06-13 00:38:32 +02:00
|
|
|
warning(Mac is on TODO);
|
2017-05-13 11:03:46 +02:00
|
|
|
} else:win32 {
|
|
|
|
SOURCES += $$PWD/platformspecifics/u32/u32backend.cpp
|
|
|
|
HEADERS += $$PWD/platformspecifics/u32/u32backend.hpp
|
2017-06-06 01:26:26 +02:00
|
|
|
LIBS += -luser32 -lkernel32 -lpthread
|
2017-05-13 11:03:46 +02:00
|
|
|
QT += winextras
|
|
|
|
} else:unix {
|
|
|
|
SOURCES += $$PWD/platformspecifics/x11/x11backend.cpp
|
|
|
|
HEADERS += $$PWD/platformspecifics/x11/x11backend.hpp
|
|
|
|
QT += x11extras
|
2017-06-27 11:33:11 +02:00
|
|
|
LIBS += -lxcb-cursor -lxcb-xfixes -lxcb
|
2017-05-13 11:03:46 +02:00
|
|
|
} else {
|
|
|
|
error(Unsupported platform);
|
|
|
|
}
|
2017-04-23 15:05:48 +02:00
|
|
|
|
2017-04-29 23:00:32 +02:00
|
|
|
FORMS += mainwindow.ui \
|
2017-05-01 11:28:54 +02:00
|
|
|
cropeditor/settings/brushpenselection.ui \
|
2017-06-17 17:32:47 +02:00
|
|
|
cropeditor/settings/blurdialog.ui \
|
2017-06-22 17:41:29 +02:00
|
|
|
recording/encoders/encodersettingsdialog.ui \
|
|
|
|
settingsdialog.ui \
|
2017-06-27 12:46:35 +02:00
|
|
|
aboutbox.ui \
|
|
|
|
hotkeyinputdialog.ui
|
2017-04-23 15:05:48 +02:00
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
README.md \
|
|
|
|
LICENSE
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
icon.qrc
|
|
|
|
|
2017-04-29 23:28:05 +02:00
|
|
|
ICON = icons/icon.ico
|
2017-04-23 15:05:48 +02:00
|
|
|
|
|
|
|
# Enable debug symbols
|
|
|
|
QMAKE_CFLAGS_DEBUG += -g
|
2017-04-26 22:00:13 +02:00
|
|
|
|
|
|
|
include(QHotkey/qhotkey.pri)
|