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/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 \
|
2017-06-29 16:28:26 +02:00
|
|
|
hotkeyinputdialog.cpp \
|
2017-06-30 15:05:37 +02:00
|
|
|
cropeditor/drawing/arrowitem.cpp \
|
2017-06-30 16:49:12 +02:00
|
|
|
uploaders/default/imgursettingsdialog.cpp \
|
2017-07-05 12:05:55 +02:00
|
|
|
uploaders/default/imgplusuploader.cpp \
|
2017-07-12 20:12:17 +02:00
|
|
|
filenamevalidator.cpp \
|
|
|
|
logs/requestlogging.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/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 \
|
2017-06-29 16:28:26 +02:00
|
|
|
hotkeyinputdialog.hpp \
|
2017-06-30 15:05:37 +02:00
|
|
|
cropeditor/drawing/arrowitem.hpp \
|
2017-06-30 16:49:12 +02:00
|
|
|
uploaders/default/imgursettingsdialog.hpp \
|
2017-07-05 12:05:55 +02:00
|
|
|
uploaders/default/imgplusuploader.hpp \
|
2017-07-12 20:12:17 +02:00
|
|
|
filenamevalidator.hpp \
|
|
|
|
logs/requestlogging.hpp
|
2017-06-11 23:56:06 +02:00
|
|
|
|
2017-07-05 20:10:39 +02:00
|
|
|
nopkg {
|
2017-07-07 13:02:00 +02:00
|
|
|
# win32 {
|
|
|
|
# !exists($$(FFMPEG_DEV_PATH)\README.txt) {
|
|
|
|
# error("You must define a valid FFMPEG_DEV_PATH")
|
|
|
|
# }
|
|
|
|
|
|
|
|
# !exists($$(FFMPEG_SHARED_PATH)\README.txt) {
|
|
|
|
# error("You must define a valid FFMPEG_SHARED_PATH")
|
|
|
|
# }
|
|
|
|
|
|
|
|
# INCLUDEPATH += $$(FFMPEG_DEV_PATH)\include
|
|
|
|
# LIBS += -L$$(FFMPEG_DEV_PATH)\lib
|
|
|
|
# message(Set the library and include paths);
|
|
|
|
# }
|
2017-07-05 20:10:39 +02:00
|
|
|
LIBS += -lavcodec -lavformat -lavutil -lswscale
|
2017-07-07 13:02:00 +02:00
|
|
|
message(nopkg);
|
2017-07-05 20:10:39 +02:00
|
|
|
} else {
|
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
PKGCONFIG += libavformat libavcodec libswscale libavutil
|
|
|
|
}
|
2017-05-19 22:32:23 +02:00
|
|
|
|
2017-05-13 11:03:46 +02:00
|
|
|
mac {
|
2017-07-09 21:04:21 +02:00
|
|
|
ICON = $$PWD/icons/icon.icns
|
2017-07-05 20:10:39 +02:00
|
|
|
SOURCES += $$PWD/platformspecifics/mac/macbackend.cpp
|
|
|
|
HEADERS += $$PWD/platformspecifics/mac/macbackend.hpp
|
|
|
|
LIBS += -framework Carbon
|
|
|
|
warning(Mac is on TODO);
|
2017-05-13 11:03:46 +02:00
|
|
|
} else:win32 {
|
2017-07-09 21:04:21 +02:00
|
|
|
RC_FILE = $$PWD/icon.rc
|
2017-07-05 20:10:39 +02:00
|
|
|
SOURCES += $$PWD/platformspecifics/u32/u32backend.cpp
|
|
|
|
HEADERS += $$PWD/platformspecifics/u32/u32backend.hpp
|
|
|
|
LIBS += -luser32 -lkernel32 -lpthread
|
|
|
|
QT += winextras
|
2017-05-13 11:03:46 +02:00
|
|
|
} else:unix {
|
2017-07-09 21:04:21 +02:00
|
|
|
RC_FILE = $$PWD/icon.rc
|
2017-07-05 20:10:39 +02:00
|
|
|
SOURCES += $$PWD/platformspecifics/x11/x11backend.cpp
|
|
|
|
HEADERS += $$PWD/platformspecifics/x11/x11backend.hpp
|
|
|
|
QT += x11extras
|
|
|
|
LIBS += -lxcb-cursor -lxcb-xfixes -lxcb
|
2017-05-13 11:03:46 +02:00
|
|
|
} else {
|
2017-07-05 20:10:39 +02:00
|
|
|
error(Unsupported platform);
|
2017-05-13 11:03:46 +02:00
|
|
|
}
|
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-22 17:41:29 +02:00
|
|
|
recording/encoders/encodersettingsdialog.ui \
|
|
|
|
settingsdialog.ui \
|
2017-06-27 12:46:35 +02:00
|
|
|
aboutbox.ui \
|
2017-06-30 15:05:37 +02:00
|
|
|
hotkeyinputdialog.ui \
|
|
|
|
uploaders/default/imgursettingsdialog.ui
|
2017-04-23 15:05:48 +02:00
|
|
|
|
|
|
|
DISTFILES += \
|
|
|
|
README.md \
|
2017-06-29 19:50:06 +02:00
|
|
|
LICENSE \
|
2017-07-05 20:10:39 +02:00
|
|
|
OlderSystemFix.patch \
|
2017-07-07 13:02:00 +02:00
|
|
|
AppVeyor/appveyor.yml \
|
2017-07-07 17:33:03 +02:00
|
|
|
AppVeyor/make_installer.sh \
|
2017-07-11 16:24:36 +02:00
|
|
|
.travis.yml \
|
|
|
|
install.sh
|
2017-04-23 15:05:48 +02:00
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
icon.qrc
|
|
|
|
|
|
|
|
# Enable debug symbols
|
|
|
|
QMAKE_CFLAGS_DEBUG += -g
|
2017-04-26 22:00:13 +02:00
|
|
|
|
|
|
|
include(QHotkey/qhotkey.pri)
|