-project('nageru', 'cpp', default_options: ['buildtype=debugoptimized'], version: '1.9.2')
+project('nageru', 'cpp', default_options: ['buildtype=debugoptimized'], version: '2.0.2')
cxx = meson.get_compiler('cpp')
qt5 = import('qt5')
libavformatdep = dependency('libavformat')
libswresampledep = dependency('libswresample')
libavutildep = dependency('libavutil')
+libdrmdep = dependency('libdrm')
libjpegdep = dependency('libjpeg')
libswscaledep = dependency('libswscale')
libusbdep = dependency('libusb-1.0')
qt5deps = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGLExtensions', 'OpenGL', 'Network'])
sdl2_imagedep = dependency('SDL2_image', required: false)
sdl2dep = dependency('sdl2', required: false)
+srtdep = dependency('srt', required: false)
sqlite3dep = dependency('sqlite3')
threaddep = dependency('threads')
vadrmdep = dependency('libva-drm')
add_project_arguments('-DHAVE_CEF=1', language: 'cpp')
endif
+if srtdep.found()
+ # NOTE: Seemingly there's no way to figure out if we have OpenSSL libsrt
+ # or gnutls libsrt, so we cannot check license compatibility here.
+ add_project_arguments('-DHAVE_SRT=1', language: 'cpp')
+endif
+
top_include = include_directories('.')
subdir('shared')
nageru_deps = [shareddep, qt5deps, libjpegdep, movitdep, protobufdep,
vax11dep, vadrmdep, x11dep, libavformatdep, libswresampledep, libavcodecdep, libavutildep,
libswscaledep, libusbdep, luajitdep, dldep, x264dep, alsadep, zitaresamplerdep,
- qcustomplotdep, threaddep, eigendep]
+ qcustomplotdep, threaddep, eigendep, srtdep, libdrmdep]
nageru_include_dirs = [include_directories('nageru')]
nageru_link_with = []
nageru_build_rpath = ''
nageru_install_rpath = '$ORIGIN/'
endif
- cefdep = cxx.find_library('cef', dirs: cef_lib_dir)
- nageru_deps += cefdep
-
# CEF wrapper library; not built as part of the CEF binary distribution,
# but should be if CEF is installed as a system library.
if system_cef
endforeach
run_command('ln', '-s', join_paths(cef_resource_dir, 'locales/en-US.pak'), join_paths(meson.current_build_dir(), 'locales/'))
install_data(join_paths(cef_resource_dir, 'locales/en-US.pak'), install_dir: join_paths(exe_dir, 'locales'))
+
+ # NOTE: We link against libcef.so in the local directory, _not_ in the CEF directory,
+ # since upstream CEF searches for icudtl.dat in whatever path dladdr() says libcef.so
+ # comes from, and the upstream CEF tarballs have libcef.so and icudtl.dat in different
+ # directories. Thus, get both from the local symlinks we just created.
+ cefdep = cxx.find_library('cef', dirs: meson.current_build_dir())
+ nageru_deps += cefdep
endif
# bmusb.