blob: 217e5586e5b2f12681258a46e6933936f9c7543b (
plain)
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
|
# Copyright (c) 2017 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
TARGET = viper
VERSION = $$QTAV_VERSION
QT += av svg qml quick sql core gui opengl multimedia charts
android {
QT += androidextras
}
CONFIG -= release
CONFIG += debug
CONFIG += c++11
INCLUDEPATH += /usr/include/libdash
INCLUDEPATH += /usr/include/libxml2
QMAKE_CXXFLAGS += -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DANDROID_STL=c++_static #-DICNICPDOWNLOAD
QMAKE_CXXFLAGS += -std=c++11 -g -fpermissive
# Add more folders to ship with the application, here
folder_01.source = qml/Viper
folder_01.target = qml
LIBS += -licnet
RESOURCES += \
viper.qrc
# The .cpp file which was generated for your project. Feel free to hack it.
SOURCES += \
Adaptation/AbstractAdaptationLogic.cpp \
Adaptation/AdaptationLogicFactory.cpp \
Adaptation/AlwaysLowestLogic.cpp \
Adaptation/BufferBasedAdaptation.cpp \
Adaptation/BufferBasedAdaptationWithRateBased.cpp \
Adaptation/BufferBasedThreeThresholdAdaptation.cpp \
Adaptation/Panda.cpp \
Adaptation/Bola.cpp \
Adaptation/RateBasedAdaptation.cpp \
Input/DASHManager.cpp \
Input/DASHReceiver.cpp \
Input/MediaObject.cpp \
MPD/AbstractRepresentationStream.cpp \
MPD/AdaptationSetHelper.cpp \
MPD/AdaptationSetStream.cpp \
MPD/BaseUrlResolver.cpp \
MPD/RepresentationStreamFactory.cpp \
MPD/SegmentListStream.cpp \
MPD/SegmentTemplateStream.cpp \
MPD/SingleMediaSegmentStream.cpp \
MPD/TimeResolver.cpp \
Portable/MultiThreading.cpp \
Managers/MultimediaManager.cpp \
Managers/MultimediaStream.cpp \
UI/DASHPlayer.cpp \
UI/DASHPlayerNoGUI.cpp \
UI/GraphDataSource.cpp \
Input/ICNConnectionConsumerApi.cpp \
Websocket/communication-protocol.cpp \
Websocket/connection-pool.cpp \
Websocket/query.cpp \
Websocket/tcp-server.cpp \
Websocket/websocket-server.cpp \
Websocket/WebSocketService.cpp \
UI/ViperGui.cpp \
Common/ViperBuffer.cpp \
Common/QtQuick2ApplicationViewer.cpp
lupdate_only{
SOURCES = qml/Viper/*.qml qml/Viper/*.js
}
# Installation path
target.path = $$[QT_INSTALL_BINS]
desktopfile.files = $$PWD/../../qtc_packaging/debian_generic/Viper.desktop
desktopfile.path = /usr/share/applications
COMMON = $$PWD/Common
INCLUDEPATH *= $$COMMON $$COMMON/..
isEmpty(PROJECTROOT): PROJECTROOT = $$PWD
mac: RC_FILE = $$COMMON/Viper.icns
QMAKE_INFO_PLIST = $$COMMON/Info.plist
videos.files = videos
videos.path = /
#QMAKE_BUNDLE_DATA += videos
defineTest(genRC) {
RC_ICONS = $$COMMON/Cisco.icns
QMAKE_TARGET_COMPANY = "Cisco Systems"
QMAKE_TARGET_DESCRIPTION = "ICN Dash Player"
QMAKE_TARGET_COPYRIGHT = "Copyright (C) 2016-2017 Cisco Systems"
QMAKE_TARGET_PRODUCT = "Viper $$1"
export(RC_ICONS)
export(QMAKE_TARGET_COMPANY)
export(QMAKE_TARGET_DESCRIPTION)
export(QMAKE_TARGET_COPYRIGHT)
export(QMAKE_TARGET_PRODUCT)
return(true)
}
genRC($$TARGET)
#SystemParametersInfo
!winrt:*msvc*: LIBS += -lUser32
DEFINES += BUILD_QOPT_LIB
HEADERS *= \
$$COMMON/Common.h \
$$COMMON/Config.h \
$$COMMON/QOptions.h \
$$COMMON/CommonExport.h \
Adaptation/AbstractAdaptationLogic.h \
Adaptation/AdaptationLogicFactory.h \
Adaptation/AlwaysLowestLogic.h \
Adaptation/BufferBasedAdaptation.h \
Adaptation/BufferBasedAdaptationWithRateBased.h \
Adaptation/BufferBasedThreeThresholdAdaptation.h \
Adaptation/IAdaptationLogic.h \
Adaptation/Panda.h \
Adaptation/Bola.h \
Adaptation/RateBasedAdaptation.h \
Buffer/Buffer.h \
Buffer/IBufferObserver.h \
Input/DASHManager.h \
Input/DASHReceiver.h \
Input/IDASHManagerObserver.h \
Input/IDASHReceiverObserver.h \
Input/IDataReceiver.h \
Input/MediaObject.h \
MPD/AbstractRepresentationStream.h \
MPD/AdaptationSetHelper.h \
MPD/AdaptationSetStream.h \
MPD/BaseUrlResolver.h \
MPD/IRepresentationStream.h \
MPD/RepresentationStreamFactory.h \
MPD/SegmentListStream.h \
MPD/SegmentTemplateStream.h \
MPD/SingleMediaSegmentStream.h \
MPD/TimeResolver.h \
Portable/MultiThreading.h \
Portable/Networking.h \
Managers/IMultimediaManagerBase.h \
Managers/IMultimediaManagerObserver.h \
Managers/IStreamObserver.h \
Managers/MultimediaManager.h \
Managers/MultimediaStream.h \
UI/DASHPlayer.h \
UI/DASHPlayerNoGUI.h \
UI/IDASHPlayerGuiObserver.h \
UI/IDASHPlayerNoGuiObserver.h \
debug.h \
UI/GraphDataSource.h \
Input/ICNConnectionConsumerApi.h \
Input/IICNConnection.h \
Websocket/communication-protocol.h \
Websocket/connection-pool.h \
Websocket/json.h \
Websocket/query.h \
Websocket/tcp-server.h \
Websocket/websocket-server.h \
Websocket/WebSocketService.h \
websocketpp/base64/base64.hpp \
websocketpp/common/asio.hpp \
websocketpp/common/asio_ssl.hpp \
websocketpp/common/chrono.hpp \
websocketpp/common/connection_hdl.hpp \
websocketpp/common/cpp11.hpp \
websocketpp/common/functional.hpp \
websocketpp/common/md5.hpp \
websocketpp/common/memory.hpp \
websocketpp/common/network.hpp \
websocketpp/common/platforms.hpp \
websocketpp/common/random.hpp \
websocketpp/common/regex.hpp \
websocketpp/common/stdint.hpp \
websocketpp/common/system_error.hpp \
websocketpp/common/thread.hpp \
websocketpp/common/time.hpp \
websocketpp/common/type_traits.hpp \
websocketpp/concurrency/basic.hpp \
websocketpp/concurrency/none.hpp \
websocketpp/config/asio.hpp \
websocketpp/config/asio_client.hpp \
websocketpp/config/asio_no_tls.hpp \
websocketpp/config/asio_no_tls_client.hpp \
websocketpp/config/boost_config.hpp \
websocketpp/config/core.hpp \
websocketpp/config/core_client.hpp \
websocketpp/config/debug.hpp \
websocketpp/config/debug_asio.hpp \
websocketpp/config/debug_asio_no_tls.hpp \
websocketpp/config/minimal_client.hpp \
websocketpp/config/minimal_server.hpp \
websocketpp/extensions/permessage_deflate/disabled.hpp \
websocketpp/extensions/permessage_deflate/enabled.hpp \
websocketpp/extensions/extension.hpp \
websocketpp/http/impl/parser.hpp \
websocketpp/http/impl/request.hpp \
websocketpp/http/impl/response.hpp \
websocketpp/http/constants.hpp \
websocketpp/http/parser.hpp \
websocketpp/http/request.hpp \
websocketpp/http/response.hpp \
websocketpp/impl/connection_impl.hpp \
websocketpp/impl/endpoint_impl.hpp \
websocketpp/impl/utilities_impl.hpp \
websocketpp/logger/basic.hpp \
websocketpp/logger/levels.hpp \
websocketpp/logger/stub.hpp \
websocketpp/logger/syslog.hpp \
websocketpp/message_buffer/alloc.hpp \
websocketpp/message_buffer/message.hpp \
websocketpp/message_buffer/pool.hpp \
websocketpp/processors/base.hpp \
websocketpp/processors/hybi00.hpp \
websocketpp/processors/hybi07.hpp \
websocketpp/processors/hybi08.hpp \
websocketpp/processors/hybi13.hpp \
websocketpp/processors/processor.hpp \
websocketpp/random/none.hpp \
websocketpp/random/random_device.hpp \
websocketpp/roles/client_endpoint.hpp \
websocketpp/roles/server_endpoint.hpp \
websocketpp/sha1/sha1.hpp \
websocketpp/transport/asio/security/base.hpp \
websocketpp/transport/asio/security/none.hpp \
websocketpp/transport/asio/security/tls.hpp \
websocketpp/transport/asio/base.hpp \
websocketpp/transport/asio/connection.hpp \
websocketpp/transport/asio/endpoint.hpp \
websocketpp/transport/base/connection.hpp \
websocketpp/transport/base/endpoint.hpp \
websocketpp/transport/debug/base.hpp \
websocketpp/transport/debug/connection.hpp \
websocketpp/transport/debug/endpoint.hpp \
websocketpp/transport/iostream/base.hpp \
websocketpp/transport/iostream/connection.hpp \
websocketpp/transport/iostream/endpoint.hpp \
websocketpp/transport/stub/base.hpp \
websocketpp/transport/stub/connection.hpp \
websocketpp/transport/stub/endpoint.hpp \
websocketpp/client.hpp \
websocketpp/close.hpp \
websocketpp/connection.hpp \
websocketpp/connection_base.hpp \
websocketpp/endpoint.hpp \
websocketpp/endpoint_base.hpp \
websocketpp/error.hpp \
websocketpp/frame.hpp \
websocketpp/server.hpp \
websocketpp/uri.hpp \
websocketpp/utf8_validator.hpp \
websocketpp/utilities.hpp \
websocketpp/version.hpp \
UI/ViperGui.h \
Common/ViperBuffer.h \
Common/QtQuick2ApplicationViewer.h
SOURCES *= \
$$COMMON/Common.cpp \
$$COMMON/Config.cpp \
$$COMMON/QOptions.cpp
unix:!macx:!android {
INCLUDEPATH += /usr/local/include
INCLUDEPATH += /usr/local/include/libdash
LIBS += -L/usr/local/lib -ldash -lboost_system -licnet -lavcodec -lavutil -lavformat
}
macx:!ios {
#SOURCE is ok
INCLUDEPATH += /usr/local/include
INCLUDEPATH += /usr/local/include/libdash
LIBS += -L"/usr/local/lib" -framework CoreServices -ldash -lavformat -lavutil -lavcodec -lboost_system -lboost_regex -lswscale -licnet -lssl -lcrypto
}
SOURCES *= main.cpp
android {
DISTFILES += \
android/src/org/player/viper/ViperActivity.java \
android/gradle/wrapper/gradle-wrapper.jar \
android/AndroidManifest.xml \
android/res/values/libs.xml \
android/build.gradle \
android/gradle/wrapper/gradle-wrapper.properties \
android/gradlew \
android/gradlew.bat
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
LIBS += -lconsumer-producer -ldash -lavcodec -lavutil -lavformat -lboost_system # -lccnx_api_control -lccnx_api_notify -lccnx_api_portal -lccnx_common -lccnx_transport_rta #-lparc -lcrypto #-llongbow-textplain -llongbow-ansiterm -llongbow
#user can put fonts in android/assets/fonts
}
DISTFILES += \
qml/images/Triangle-.png \
Common/Viper.icns \
android/res/drawable-hdpi/icon.png \
android/res/drawable-ldpi/icon.png \
android/res/drawable-mdpi/icon.png \
android/gradle.properties \
android/src/org/qtav/qmlplayer/ViperActivity.java \
android/src/org/player/viper/ViperActivity.java
|