mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
build/meson: Add XRT_HAVE_DBUS when dbus is found
This commit is contained in:
parent
5ca90343ab
commit
5bea856f20
|
@ -69,6 +69,7 @@ libuvc = dependency('libuvc', required: false)
|
||||||
vulkan = dependency('vulkan', required: true)
|
vulkan = dependency('vulkan', required: true)
|
||||||
zlib = dependency('zlib', required: false)
|
zlib = dependency('zlib', required: false)
|
||||||
survive = dependency('survive', required: false)
|
survive = dependency('survive', required: false)
|
||||||
|
dbus = dependency('dbus-1', required: get_option('dbus'))
|
||||||
|
|
||||||
opencv = dependency('opencv4', required: false)
|
opencv = dependency('opencv4', required: false)
|
||||||
if not opencv.found()
|
if not opencv.found()
|
||||||
|
|
|
@ -67,6 +67,11 @@ option('wayland',
|
||||||
value: 'auto',
|
value: 'auto',
|
||||||
description: 'Enable support for Wayland rendering.')
|
description: 'Enable support for Wayland rendering.')
|
||||||
|
|
||||||
|
option('dbus',
|
||||||
|
type: 'feature',
|
||||||
|
value: 'auto',
|
||||||
|
description: 'Enable support for dbus.')
|
||||||
|
|
||||||
option('service',
|
option('service',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: true,
|
value: true,
|
||||||
|
|
|
@ -91,15 +91,28 @@ if build_opengl or build_opengles
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
aux_os_files = files(
|
||||||
|
'os/os_documentation.h',
|
||||||
|
'os/os_hid.h',
|
||||||
|
'os/os_hid_hidraw.c',
|
||||||
|
'os/os_threading.h',
|
||||||
|
'os/os_time.h',
|
||||||
|
'os/os_ble.h',
|
||||||
|
)
|
||||||
|
|
||||||
|
aux_os_deps = []
|
||||||
|
|
||||||
|
if dbus.found() and not get_option('dbus').disabled()
|
||||||
|
aux_os_files += files(
|
||||||
|
'os/os_ble_dbus.c'
|
||||||
|
)
|
||||||
|
aux_os_deps += dbus
|
||||||
|
endif
|
||||||
|
|
||||||
lib_aux_os = static_library(
|
lib_aux_os = static_library(
|
||||||
'aux_os',
|
'aux_os',
|
||||||
files(
|
aux_os_files,
|
||||||
'os/os_documentation.h',
|
dependencies: aux_os_deps,
|
||||||
'os/os_hid.h',
|
|
||||||
'os/os_hid_hidraw.c',
|
|
||||||
'os/os_threading.h',
|
|
||||||
'os/os_time.h',
|
|
||||||
),
|
|
||||||
include_directories: xrt_include,
|
include_directories: xrt_include,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,10 @@ if true
|
||||||
have_conf.set('XRT_HAVE_VULKAN', true)
|
have_conf.set('XRT_HAVE_VULKAN', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if dbus.found() and not get_option('dbus').disabled()
|
||||||
|
have_conf.set('XRT_HAVE_DBUS', true)
|
||||||
|
endif
|
||||||
|
|
||||||
if get_option('layer_depth')
|
if get_option('layer_depth')
|
||||||
have_conf.set('XRT_FEATURE_OPENXR_LAYER_DEPTH', true)
|
have_conf.set('XRT_FEATURE_OPENXR_LAYER_DEPTH', true)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue