-
Notifications
You must be signed in to change notification settings - Fork 16
/
streamer.pro
107 lines (92 loc) · 2.74 KB
/
streamer.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
TEMPLATE = lib
TARGET = qml.rtmp
QT += qml core gui quick multimedia multimediawidgets
CONFIG += qt plugin
DESTDIR = lib
TARGET = $$qtLibraryTarget($$TARGET)
uri = qml.rtmp
INCLUDEPATH += $$(FFMPEG_INCLUDE_PATH) $$(OPENCV_PATH)\include
LIBS += -L$$(FFMPEG_LIBRARY_PATH) -L$$(OPENCV_PATH)\lib
CONFIG(debug, debug|release) {
LIBS += -llibopencv_highgui246d -llibopencv_core246d -llibopencv_imgproc246d
}
CONFIG(release, debug|release) {
LIBS += -llibopencv_highgui246 -llibopencv_core246 -llibopencv_imgproc246
}
win32 {
DEFINES += __WINDOWS_DS__
LIBS += -ldsound -lole32 -lwinmm
LIBS += -lavcodec \
-lavdevice \
-lavformat \
-lswscale \
-lavutil \
-ldsound \
-lole32 \
-lwinmm
}
# Input
SOURCES += \
streamer_plugin.cpp \
rtmpsender.cpp \
abstractgrabber.cpp \
abstractimagegrabber.cpp \
audiograbber.cpp \
cameragrabber.cpp \
streamer.cpp \
3rdparty/RtAudio/include/asio.cpp \
3rdparty/RtAudio/include/asiodrivers.cpp \
3rdparty/RtAudio/include/asiolist.cpp \
3rdparty/RtAudio/include/iasiothiscallresolver.cpp \
3rdparty/RtAudio/RtAudio.cpp \
encoder/audiocodecsettings.cpp \
encoder/encoder.cpp \
encoder/videocodecsettings.cpp \
helpers/audiotimer.cpp \
rtmpreader.cpp \
audioplayer.cpp \
audioformat.cpp \
qtcameragrabber.cpp
HEADERS += \
streamer_plugin.h \
rtmpsender.h \
abstractgrabber.h \
abstractimagegrabber.h \
audiograbber.h \
cameragrabber.h \
streamer.h \
3rdparty/RtAudio/include/asio.h \
3rdparty/RtAudio/include/asiodrivers.h \
3rdparty/RtAudio/include/asiodrvr.h \
3rdparty/RtAudio/include/asiolist.h \
3rdparty/RtAudio/include/asiosys.h \
3rdparty/RtAudio/include/dsound.h \
3rdparty/RtAudio/include/ginclude.h \
3rdparty/RtAudio/include/iasiodrv.h \
3rdparty/RtAudio/include/iasiothiscallresolver.h \
3rdparty/RtAudio/include/soundcard.h \
3rdparty/RtAudio/RtAudio.h \
encoder/audiocodecsettings.h \
encoder/encoder.h \
encoder/encoderglobal.h \
encoder/videocodecsettings.h \
helpers/audiotimer.h \
rtmpreader.h \
audioplayer.h \
audioformat.h \
qtcameragrabber.h
OTHER_FILES = qmldir
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
copy_qmldir.target = $$OUT_PWD/qmldir
copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
QMAKE_EXTRA_TARGETS += copy_qmldir
PRE_TARGETDEPS += $$copy_qmldir.target
}
qmldir.files = qmldir
unix {
installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
qmldir.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir
}