KShare/KShare.pro

183 lines
5.5 KiB
Prolog
Raw Normal View History

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
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 \
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 \
colorpicker/colorpickerscene.cpp \
2017-05-31 17:24:17 +02:00
worker/worker.cpp \
screenareaselector/screenareaselector.cpp \
recording/recordingpreview.cpp \
recording/recordingcontroller.cpp \
recording/recordingformats.cpp \
formats.cpp \
2017-06-17 17:32:47 +02:00
recording/encoders/encoder.cpp \
recording/encoders/encodersettings.cpp \
recording/encoders/encodersettingsdialog.cpp \
settingsdialog.cpp \
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 \
cropeditor/drawing/arrowitem.cpp \
2017-06-30 16:49:12 +02:00
uploaders/default/imgursettingsdialog.cpp \
uploaders/default/imgplusuploader.cpp \
filenamevalidator.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 \
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 \
screenareaselector/screenareaselector.hpp \
recording/recordingpreview.hpp \
recording/recordingcontroller.hpp \
recording/recordingformats.hpp \
formats.hpp \
2017-06-17 17:32:47 +02:00
recording/encoders/encoder.hpp \
recording/encoders/encodersettings.hpp \
recording/encoders/encodersettingsdialog.hpp \
settingsdialog.hpp \
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 \
cropeditor/drawing/arrowitem.hpp \
2017-06-30 16:49:12 +02:00
uploaders/default/imgursettingsdialog.hpp \
uploaders/default/imgplusuploader.hpp \
filenamevalidator.hpp
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 \
recording/encoders/encodersettingsdialog.ui \
settingsdialog.ui \
2017-06-27 12:46:35 +02:00
aboutbox.ui \
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)