######################################################################
# Automatically generated by qmake (3.0) Wed Jun 21 13:05:24 2017
######################################################################

QMAKE_TARGET_BUNDLE_PREFIX = cz.cesnet.ultragrid
TEMPLATE = app
TARGET = uv-qt
INCLUDEPATH += .
INCLUDEPATH += $$PWD/../../tools/
INCLUDEPATH += $$PWD/../../src
INCLUDEPATH += window/
INCLUDEPATH += util/
INCLUDEPATH += widget/
INCLUDEPATH += option/
RC_FILE = uv-qt.rc

DEFINES += GUI_BUILD

QT += widgets network

greaterThan(QT_MAJOR_VERSION, 5) {
    QT += opengl openglwidgets
}

CONFIG += c++1z #c++17, but older qmake does not support the flag
CONFIG += silent

LIBS += -pthread
macx {
	LIBS += -framework CoreFoundation
} win32 {
	LIBS += -lWs2_32
}

system("which git"): HAS_GIT = TRUE

equals(HAS_GIT, "TRUE") {
	DEFINES += GIT_CURRENT_SHA1="\\\"$(shell cd \""$$_PRO_FILE_PWD_"\"; git rev-parse --short HEAD)\\\""
	DEFINES += GIT_CURRENT_BRANCH="\\\"$(shell cd \""$$_PRO_FILE_PWD_"\"; git name-rev --name-only HEAD)\\\""
}


# Input
HEADERS += window/ultragrid_window.hpp \
	option/available_settings.hpp \
	option/settings.hpp \
	option/settings_ui.hpp \
	widget/previewWidget.hpp \
	window/log_window.hpp \
	../../tools/astat.h \
	../../tools/ipc_frame.h \
	../../tools/ipc_frame_unix.h \
	../../src/compat/platform_pipe.h \
	../../src/utils/string_view_utils.hpp \
	widget/vuMeterWidget.hpp \
	widget/recv_report.hpp \
	widget/recv_loss.hpp \
	widget/bandwidth_widget.hpp \
	window/settings_window.hpp \
	widget/live_widget.hpp \
	option/widget_ui.hpp \
	option/checkable_ui.hpp \
	option/checkbox_ui.hpp \
	option/textOpt_ui.hpp \
	option/actionCheckable_ui.hpp \
	option/lineedit_ui.hpp \
	option/spinbox_ui.hpp \
	option/combobox_ui.hpp \
	option/groupBox_ui.hpp \
	option/radioButton_ui.hpp \
	option/audio_opts.hpp \
	option/video_opts.hpp \
	util/overload.hpp \
	util/extra_callback_data.hpp \
	util/launch_manager.hpp \
	util/debug.hpp \
	util/line_buffer.hpp \
	util/control_port.hpp \
	util/ssrc_container.hpp \

FORMS += ui/ultragrid_window.ui \
	ui/log_window.ui \
	ui/settings.ui

SOURCES += window/ultragrid_window.cpp \
	option/available_settings.cpp \
	option/settings.cpp \
	option/settings_ui.cpp \
	widget/previewWidget.cpp \
	window/log_window.cpp \
	widget/vuMeterWidget.cpp \
	widget/recv_report.cpp \
	widget/recv_loss.cpp \
	widget/bandwidth_widget.cpp \
	widget/live_widget.cpp \
	window/settings_window.cpp \
	option/widget_ui.cpp \
	option/checkable_ui.cpp \
	option/checkbox_ui.cpp \
	option/actionCheckable_ui.cpp \
	option/textOpt_ui.cpp \
	option/lineedit_ui.cpp \
	option/spinbox_ui.cpp \
	option/combobox_ui.cpp \
	option/groupBox_ui.cpp \
	option/radioButton_ui.cpp \
	option/audio_opts.cpp \
	option/video_opts.cpp \
	util/line_buffer.cpp \
	util/control_port.cpp \
	util/launch_manager.cpp \
	../../tools/astat.cpp \
	../../tools/ipc_frame.cpp \
	../../tools/ipc_frame_unix.cpp \
	../../src/compat/platform_pipe.cpp \
	../../src/utils/string_view_utils.cpp \
	main.cpp
