-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest.pro
170 lines (150 loc) · 5.86 KB
/
Test.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
QT += quick
CONFIG += c++11
QML_IMPORT_PATH += \
$$PWD/src \
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
src/main.cpp \
src/videoManager.cpp \
external/libklv/src/Klv.cpp \
external/libklv/src/KlvParser.cpp \
INCLUDEPATH += \
inc \
external \
external/libklv/include \
HEADERS += \
inc/videoManager.h \
inc/QObjectList.h \
external/libklv/include/Klv.h \
external/libklv/include/KlvFormatException.hpp \
external/libklv/include/KlvParser.hpp \
# inc/CustomObject.h \
# inc/ObjectManager.h \
RESOURCES += \
resources.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
linux {
linux-g++ | linux-g++-64 | linux-g++-32 | linux-clang {
CONFIG += LinuxBuild
} else : android-clang {
CONFIG += AndroidBuild
}
}
# VIDEO
LinuxBuild {
QT += x11extras waylandclient gui-private
CONFIG += link_pkgconfig
packagesExist(gstreamer-1.0) {
PKGCONFIG += gstreamer-1.0 gstreamer-video-1.0 gstreamer-app-1.0 gstreamer-gl-1.0 gstreamer-codecparsers-1.0 gstreamer-audio-1.0 gstreamer-tag-1.0 gstreamer-bad-audio-1.0 gstreamer-plugins-base-1.0
CONFIG += VideoEnabled
}
DEFINES += HAVE_QT_X11 HAVE_QT_EGLFS HAVE_QT_WAYLAND
}
else:AndroidBuild {
QMAKE_CXX_FLAGS += -lstdc++fs -std=c++17
DEFINES += HAVE_QT_ANDROID
contains(QT_ARCH, .*arm64.*) {
GST_ROOT = $$PWD/external/gstreamer-1.0-android-universal-1.14.4/arm64
} else:contains(QT_ARCH, .*arm.*) {
GST_ROOT = $$PWD/external/gstreamer-1.0-android-universal-1.14.4/armv7
} else {
GST_ROOT = $$PWD/external/gstreamer-1.0-android-universal-1.14.4/x86
}
exists($$GST_ROOT) {
QMAKE_CXXFLAGS += -pthread
# We want to link these plugins statically
LIBS += -L$$GST_ROOT/lib/gstreamer-1.0 \
-lgstvideo-1.0 \
-lgstcoreelements \
-lgstplayback \
-lgstudp \
-lgstrtp \
-lgstrtsp \
-lgstx264 \
-lgstlibav \
-lgstsdpelem \
-lgstvideoparsersbad \
-lgstrtpmanager \
-lgstisomp4 \
-lgstmatroska \
-lgstmpegtsdemux \
-lgstandroidmedia \
-lgstvideotestsrc \
-lgstopengl
# Rest of GStreamer dependencies
LIBS += -L$$GST_ROOT/lib \
-lgraphene-1.0 -ljpeg -lpng16 \
-lgstmpegts-1.0 \
-lgstfft-1.0 -lm \
-lgstnet-1.0 -lgio-2.0 \
-lgstphotography-1.0 -lgstgl-1.0 -lEGL \
-lgstaudio-1.0 -lgstcodecparsers-1.0 -lgstbase-1.0 \
-lgstreamer-1.0 -lgstrtp-1.0 -lgstpbutils-1.0 -lgstrtsp-1.0 -lgsttag-1.0 \
-lgstvideo-1.0 -lavformat -lavcodec -lavutil -lx264 -lavfilter -lswresample \
-lgstriff-1.0 -lgstcontroller-1.0 -lgstapp-1.0 \
-lgstsdp-1.0 -lbz2 -lgobject-2.0 \
-Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lorc-0.4 -liconv -lffi -lintl \
INCLUDEPATH += \
$$GST_ROOT/include/gstreamer-1.0 \
$$GST_ROOT/lib/gstreamer-1.0/include \
$$GST_ROOT/include/glib-2.0 \
$$GST_ROOT/lib/glib-2.0/include
}
}
SOURCES += \
external/gst-plugins-good/ext/qt/gstplugin.cc \
external/gst-plugins-good/ext/qt/gstqtglutility.cc \
external/gst-plugins-good/ext/qt/gstqsgtexture.cc \
external/gst-plugins-good/ext/qt/gstqtsink.cc \
external/gst-plugins-good/ext/qt/gstqtsrc.cc \
external/gst-plugins-good/ext/qt/qtwindow.cc \
external/gst-plugins-good/ext/qt/qtitem.cc
HEADERS += \
external/gst-plugins-good/ext/qt/gstqsgtexture.h \
external/gst-plugins-good/ext/qt/gstqtgl.h \
external/gst-plugins-good/ext/qt/gstqtglutility.h \
external/gst-plugins-good/ext/qt/gstqtsink.h \
external/gst-plugins-good/ext/qt/gstqtsrc.h \
external/gst-plugins-good/ext/qt/qtwindow.h \
external/gst-plugins-good/ext/qt/qtitem.h
INCLUDEPATH += \
/usr/include/gstreamer-1.0/ \
/usr/include/glib-2.0/ \
/usr/lib/x86_64-linux-gnu/glib-2.0/include/ \
SOURCES += \
external/gst-custom-tsdemux/tsdemux.c \
external/gst-custom-tsdemux/mpegtspacketizer.c \
external/gst-custom-tsdemux/pesparse.c \
external/gst-custom-tsdemux/mpegtsbase.c \
external/gst-custom-tsdemux/gsttsdemux.c \
external/gst-custom-tsdemux/gstmpegtssection.c \
external/gst-custom-tsdemux/gstmpegtsdescriptor.c \
external/gst-custom-tsdemux/mpegtsparse.c \
external/gst-custom-tsdemux/gst-dvb-section.c \
external/gst-custom-tsdemux/gst-dvb-descriptor.c \
external/gst-custom-tsdemux/gst-atsc-section.c \
DEFINES += PACKAGE=tsdemuxcustom GETTEXT_PACKAGE
HEADERS += \
external/gst-custom-tsdemux/tsdemux.h \
external/gst-custom-tsdemux/mpegtsbase.h \
external/gst-custom-tsdemux/mpegtspacketizer.h \
external/gst-custom-tsdemux/gstmpegdefs.h \
external/gst-custom-tsdemux/gstmpegdesc.h \
external/gst-custom-tsdemux/pesparse.h \
external/gst-custom-tsdemux/mpegtsparse.h \
external/gst-custom-tsdemux/gstmpegtssection.h \
external/gst-custom-tsdemux/mpegts.h \
external/gst-custom-tsdemux/mpegts-private.h \
external/gst-custom-tsdemux/gstmpegtsdescriptor.h \
external/gst-custom-tsdemux/gst-i18n-plugin.h \
external/gst-custom-tsdemux/gst-dvb-section.h \
external/gst-custom-tsdemux/gst-dvb-descriptor.h \
external/gst-custom-tsdemux/gst-atsc-section.h \