2019-09-24 13:43:43 +00:00
|
|
|
# Copyright 2019, Collabora, Ltd.
|
|
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
|
|
|
conf_data = configuration_data()
|
2019-09-27 11:19:48 +00:00
|
|
|
conf_data.set('XRT_BUILD_TRACKING', build_tracking)
|
2019-09-27 11:03:36 +00:00
|
|
|
conf_data.set('XRT_BUILD_DRIVER_HDK', 'hdk' in drivers)
|
2019-09-27 11:19:48 +00:00
|
|
|
conf_data.set('XRT_BUILD_DRIVER_HYDRA', 'hydra' in drivers)
|
|
|
|
conf_data.set('XRT_BUILD_DRIVER_OHMD', 'ohmd' in drivers)
|
2019-09-27 11:03:36 +00:00
|
|
|
conf_data.set('XRT_BUILD_DRIVER_PSMV', 'psmv' in drivers)
|
|
|
|
conf_data.set('XRT_BUILD_DRIVER_PSVR', 'psvr' in drivers)
|
2019-09-27 11:19:48 +00:00
|
|
|
conf_data.set('XRT_BUILD_DRIVER_V4L2', 'v4l2' in drivers)
|
2019-10-02 11:00:52 +00:00
|
|
|
conf_data.set('XRT_BUILD_DRIVER_VIVE', 'vive' in drivers)
|
2019-09-24 13:43:43 +00:00
|
|
|
|
|
|
|
targets_enabled_h = configure_file(
|
|
|
|
input: 'targets_enabled_drivers.h.meson_in',
|
|
|
|
output: 'targets_enabled_drivers.h',
|
|
|
|
configuration: conf_data,
|
|
|
|
)
|
|
|
|
|
|
|
|
targets_enabled = declare_dependency(
|
|
|
|
sources: targets_enabled_h,
|
|
|
|
include_directories: include_directories('.'),
|
|
|
|
)
|
|
|
|
|
|
|
|
subdir('external')
|
|
|
|
subdir('xrt')
|