mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
build: Add sample driver to meson build
This commit is contained in:
parent
86a1ba32e5
commit
5e1805f04b
|
@ -26,6 +26,7 @@ option('drivers',
|
||||||
'qwerty',
|
'qwerty',
|
||||||
'ulv2',
|
'ulv2',
|
||||||
'euroc',
|
'euroc',
|
||||||
|
'sample',
|
||||||
],
|
],
|
||||||
value: ['auto'],
|
value: ['auto'],
|
||||||
description: 'Set of drivers to build')
|
description: 'Set of drivers to build')
|
||||||
|
|
|
@ -348,3 +348,17 @@ lib_drv_euroc = static_library(
|
||||||
dependencies: [aux, opencv],
|
dependencies: [aux, opencv],
|
||||||
build_by_default: 'euroc' in drivers,
|
build_by_default: 'euroc' in drivers,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# We build the sample driver to make sure it stays valid,
|
||||||
|
# but it never gets linked into a final target (src/xrt/targets/meson.build)
|
||||||
|
lib_drv_sample = static_library(
|
||||||
|
'drv_sample',
|
||||||
|
files(
|
||||||
|
'sample/sample_hmd.c',
|
||||||
|
'sample/sample_interface.h',
|
||||||
|
'sample/sample_prober.c',
|
||||||
|
),
|
||||||
|
include_directories: [xrt_include],
|
||||||
|
dependencies: [aux],
|
||||||
|
build_by_default: 'sample' in drivers,
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue