-
Notifications
You must be signed in to change notification settings - Fork 35
/
meson.build
22 lines (20 loc) · 1.28 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
project('adaptive-streaming', 'c', 'cpp', default_options: [
'cpp_std=c++14'
])
common_c_args = [
'-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44',
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_60',
'-Wall',
'-Werror'
]
gst_dep = dependency('gstreamer-1.0')
gst_rtp_dep = dependency('gstreamer-rtp-1.0')
gst_rtsp_dep = dependency('gstreamer-rtsp-1.0')
gst_rtsp_server_dep = dependency('gstreamer-rtsp-server-1.0')
thread_dep = dependency('threads')
libconfig_dep = dependency('libconfig++')
common_deps = ['src/Common/PipelineManager.cpp', 'src/Common/QoSEstimator.cpp']
camera_deps = ['src/Camera/Camera.h','src/Camera/CameraFactory.h','src/Camera/Quality.cpp']
camera_src = ['src/Camera/RPiCamera.cpp', 'src/Camera/AR0521Camera.cpp', 'src/Camera/C920Camera.cpp', 'src/Camera/ZEDCamera.cpp', 'src/Camera/MJPGCamera.cpp', 'src/Camera/Camera.cpp']
rtsp_src = ['src/RTSPStreamServer/stream_server.cpp', 'src/RTSPStreamServer/IPCMessageHandler.cpp', 'src/RTSPStreamServer/RTSPAdaptiveStreaming.cpp', 'src/RTSPStreamServer/RTSPStreamServer.cpp']
executable('stream_server', sources: [rtsp_src, camera_src, common_deps, camera_deps], dependencies: [gst_dep, gst_rtp_dep, gst_rtsp_dep, gst_rtsp_server_dep, thread_dep, libconfig_dep], cpp_args : common_c_args, link_args: '-lstdc++fs', install : true)