2019-06-20 21:39:55 +08:00
|
|
|
#
|
|
|
|
# Video output modules
|
|
|
|
#
|
|
|
|
|
|
|
|
# Declared here, as its used by both the
|
|
|
|
# libplacebo and opengl subfolder build file.
|
2023-02-07 17:34:01 +08:00
|
|
|
if have_win_store
|
|
|
|
# even if it's there, don't use it
|
|
|
|
missing_win_glew = true
|
|
|
|
elif host_system == 'windows'
|
|
|
|
missing_win_glew = not cdata.has('HAVE_GL_WGLEW_H')
|
|
|
|
else
|
|
|
|
missing_win_glew = false
|
|
|
|
endif
|
|
|
|
|
2019-06-20 21:39:55 +08:00
|
|
|
libplacebo_dep = dependency('libplacebo',
|
|
|
|
version: '>= 2.72',
|
|
|
|
required: get_option('libplacebo'))
|
2023-02-07 17:34:01 +08:00
|
|
|
if missing_win_glew
|
|
|
|
# Our OpenGL code requires glew.h to be present
|
|
|
|
opengl_dep = disabler()
|
|
|
|
else
|
|
|
|
opengl_dep = dependency('gl', required: false)
|
|
|
|
endif
|
2019-06-20 21:39:55 +08:00
|
|
|
opengles2_dep = dependency('glesv2', required: get_option('gles2'))
|
|
|
|
|
2023-01-11 19:43:36 +08:00
|
|
|
if host_system == 'darwin'
|
|
|
|
subdir('apple')
|
|
|
|
endif
|
|
|
|
|
2019-06-20 21:39:55 +08:00
|
|
|
if libplacebo_dep.found()
|
|
|
|
libplacebo_utils = static_library('vlc_libplacebo_utils',
|
|
|
|
files('./libplacebo/utils.c'),
|
|
|
|
dependencies: [libplacebo_dep],
|
|
|
|
include_directories: [vlc_include_dirs])
|
|
|
|
|
|
|
|
subdir('libplacebo')
|
2023-02-07 16:32:15 +08:00
|
|
|
else
|
|
|
|
libplacebo_utils = []
|
2019-06-20 21:39:55 +08:00
|
|
|
endif
|
2023-02-07 16:32:15 +08:00
|
|
|
subdir('opengl')
|
2019-06-20 21:39:55 +08:00
|
|
|
|
2023-02-03 18:05:55 +08:00
|
|
|
if host_system == 'windows'
|
|
|
|
subdir('win32')
|
|
|
|
endif
|
|
|
|
|
2019-06-20 21:39:55 +08:00
|
|
|
# Dummy video output
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'vdummy',
|
|
|
|
'sources' : files('vdummy.c')
|
|
|
|
}
|
|
|
|
|
|
|
|
# Dummy window provider
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'wdummy',
|
|
|
|
'sources' : files('wdummy.c')
|
|
|
|
}
|
|
|
|
|
|
|
|
# Video splitter
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'video_splitter',
|
|
|
|
'sources' : files('splitter.c')
|
|
|
|
}
|
|
|
|
|
|
|
|
# YUV video output
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'yuv',
|
|
|
|
'sources' : files('yuv.c')
|
|
|
|
}
|
|
|
|
|
|
|
|
# Flaschen video output
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'flaschen',
|
|
|
|
'sources' : files('flaschen.c'),
|
|
|
|
'dependencies' : [socket_libs]
|
|
|
|
}
|
|
|
|
|
|
|
|
# vmem
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'vmem',
|
|
|
|
'sources' : files('vmem.c')
|
|
|
|
}
|
|
|
|
|
|
|
|
# wextern
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'wextern',
|
|
|
|
'sources' : files('wextern.c')
|
|
|
|
}
|
|
|
|
|
|
|
|
# vgl
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'vgl',
|
|
|
|
'sources' : files('vgl.c')
|
|
|
|
}
|
|
|
|
|
2024-11-12 14:48:14 +08:00
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'decklinkoutput',
|
|
|
|
'sources' : files('decklink.cpp',
|
|
|
|
'../stream_out/sdi/Ancillary.cpp',
|
|
|
|
'../stream_out/sdi/Ancillary.hpp',
|
|
|
|
'../stream_out/sdi/DBMHelper.cpp',
|
|
|
|
'../stream_out/sdi/DBMHelper.hpp',
|
|
|
|
'../stream_out/sdi/SDIGenerator.cpp',
|
|
|
|
'../stream_out/sdi/SDIGenerator.hpp',
|
|
|
|
'../stream_out/sdi/V210.cpp',
|
|
|
|
'../stream_out/sdi/V210.hpp'),
|
|
|
|
'dependencies' : [dl_lib, decklink_dep],
|
|
|
|
'cpp_args' : decklink_cpp_args,
|
|
|
|
'enabled' : decklink_dep.found(),
|
|
|
|
}
|
|
|
|
|
2019-06-20 21:39:55 +08:00
|
|
|
# Kernel Mode Setting
|
2023-01-11 23:25:07 +08:00
|
|
|
drm_dep = dependency('libdrm', version: '>= 2.4.83', required: get_option('drm'))
|
2019-06-20 21:39:55 +08:00
|
|
|
if drm_dep.found()
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'kms',
|
|
|
|
'sources' : files('kms.c'),
|
|
|
|
'dependencies' : [drm_dep]
|
|
|
|
}
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Coloured ASCII art (Caca)
|
2023-01-11 23:25:07 +08:00
|
|
|
caca_dep = dependency('caca', version: '>= 0.99.beta14', required: get_option('caca'))
|
2024-11-08 21:06:22 +08:00
|
|
|
caca_deps = [ caca_dep ]
|
|
|
|
if not (host_system in ['windows', 'darwin'])
|
|
|
|
caca_deps += x11_dep
|
|
|
|
endif
|
2019-06-20 21:39:55 +08:00
|
|
|
if caca_dep.found()
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'caca',
|
|
|
|
'sources' : files('caca.c'),
|
2024-11-08 21:06:22 +08:00
|
|
|
'dependencies' : [caca_deps],
|
2019-06-20 21:39:55 +08:00
|
|
|
}
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# x11 video outputs
|
|
|
|
#
|
|
|
|
|
|
|
|
if xcb_dep.found()
|
|
|
|
vlc_xcb_events_lib = library('vlc_xcb_events',
|
|
|
|
files('xcb/events.c'),
|
|
|
|
include_directories: [vlc_include_dirs],
|
2023-01-11 23:25:07 +08:00
|
|
|
dependencies: [xcb_dep, libvlccore_dep])
|
2019-06-20 21:39:55 +08:00
|
|
|
|
|
|
|
if xcb_randr_dep.found() and xproto_dep.found()
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'xcb_window',
|
|
|
|
'sources' : files('xcb/window.c'),
|
|
|
|
'dependencies' : [xcb_dep, xcb_randr_dep, xproto_dep]
|
|
|
|
}
|
|
|
|
endif
|
|
|
|
|
|
|
|
if xcb_render_dep.found() and xcb_shm_dep.found()
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'xcb_render',
|
|
|
|
'sources' : files(
|
|
|
|
'xcb/pictures.c',
|
|
|
|
'xcb/render.c'
|
|
|
|
),
|
|
|
|
'dependencies' : [xcb_dep, xcb_render_dep, xcb_shm_dep, m_lib],
|
|
|
|
'link_with' : [vlc_xcb_events_lib]
|
|
|
|
}
|
|
|
|
endif
|
|
|
|
|
|
|
|
if xcb_shm_dep.found()
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'xcb_x11',
|
|
|
|
'sources' : files(
|
|
|
|
'xcb/pictures.c',
|
|
|
|
'xcb/x11.c'
|
|
|
|
),
|
|
|
|
'dependencies' : [xcb_dep, xcb_shm_dep],
|
|
|
|
'link_with' : [vlc_xcb_events_lib]
|
|
|
|
}
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2023-01-11 23:25:07 +08:00
|
|
|
egl_dep = dependency('egl', required: false)
|
2019-06-20 21:39:55 +08:00
|
|
|
|
|
|
|
if x11_dep.found() and egl_dep.found()
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'egl_x11',
|
|
|
|
'sources' : files('opengl/egl.c'),
|
2023-01-12 01:02:02 +08:00
|
|
|
'c_args' : ['-DUSE_PLATFORM_X11=1'],
|
2019-06-20 21:39:55 +08:00
|
|
|
'dependencies' : [egl_dep, x11_dep]
|
|
|
|
}
|
|
|
|
endif
|
|
|
|
|
|
|
|
if x11_dep.found() and opengl_dep.found()
|
|
|
|
vlc_modules += {
|
|
|
|
'name' : 'glx',
|
|
|
|
'sources' : files('glx.c'),
|
2023-01-12 01:02:02 +08:00
|
|
|
'dependencies' : [x11_dep, opengl_dep]
|
2019-06-20 21:39:55 +08:00
|
|
|
}
|
|
|
|
endif
|