2020-01-25 14:36:31 +00:00
|
|
|
# Copyright 2019-2020, Collabora, Ltd.
|
2019-09-24 13:43:43 +00:00
|
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
|
|
|
drv_include = include_directories('.')
|
|
|
|
|
2020-01-25 14:36:31 +00:00
|
|
|
lib_drv_dummy = static_library(
|
|
|
|
'drv_dummy',
|
|
|
|
files(
|
|
|
|
'dummy/dummy_hmd.c',
|
|
|
|
'dummy/dummy_interface.h',
|
|
|
|
'dummy/dummy_prober.c',
|
|
|
|
),
|
|
|
|
include_directories: xrt_include,
|
|
|
|
dependencies: [aux],
|
|
|
|
build_by_default: 'dummy' in drivers,
|
|
|
|
)
|
|
|
|
|
2019-09-24 13:43:43 +00:00
|
|
|
lib_drv_hdk = static_library(
|
|
|
|
'drv_hdk',
|
|
|
|
files(
|
|
|
|
'hdk/hdk_device.cpp',
|
|
|
|
'hdk/hdk_device.h',
|
|
|
|
'hdk/hdk_interface.h',
|
|
|
|
'hdk/hdk_prober.c',
|
|
|
|
),
|
|
|
|
include_directories: xrt_include,
|
2019-10-31 01:26:19 +00:00
|
|
|
dependencies: [aux],
|
2019-09-24 13:43:43 +00:00
|
|
|
build_by_default: 'hdk' in drivers,
|
|
|
|
)
|
|
|
|
|
|
|
|
lib_drv_hydra = static_library(
|
|
|
|
'drv_hydra',
|
|
|
|
files(
|
|
|
|
'hydra/hydra_driver.c',
|
|
|
|
'hydra/hydra_interface.h',
|
|
|
|
),
|
|
|
|
include_directories: xrt_include,
|
|
|
|
dependencies: [aux],
|
|
|
|
build_by_default: 'hydra' in drivers,
|
|
|
|
)
|
|
|
|
|
2020-01-24 21:35:12 +00:00
|
|
|
lib_drv_ns = static_library(
|
|
|
|
'drv_ns',
|
|
|
|
files(
|
2020-02-09 16:53:47 +00:00
|
|
|
'north_star/distortion/utility_northstar.h',
|
|
|
|
'north_star/distortion/deformation_northstar.h',
|
|
|
|
'north_star/distortion/deformation_northstar.cpp',
|
|
|
|
'north_star/ns_hmd.h',
|
2020-01-24 21:35:12 +00:00
|
|
|
'north_star/ns_hmd.c',
|
|
|
|
'north_star/ns_interface.h',
|
|
|
|
'north_star/ns_prober.c',
|
|
|
|
),
|
2020-03-31 19:59:02 +00:00
|
|
|
include_directories: [
|
|
|
|
xrt_include,
|
|
|
|
cjson_include,
|
|
|
|
],
|
2020-03-02 15:44:00 +00:00
|
|
|
dependencies: [aux, xrt_config_drivers],
|
2020-01-24 21:35:12 +00:00
|
|
|
build_by_default: 'ns' in drivers,
|
|
|
|
)
|
|
|
|
|
2020-11-23 22:04:29 +00:00
|
|
|
lib_drv_ht = static_library(
|
|
|
|
'drv_ht',
|
|
|
|
files(
|
|
|
|
'ht/ht_driver.c',
|
|
|
|
'ht/ht_driver.h',
|
|
|
|
'ht/ht_interface.h',
|
|
|
|
'ht/ht_prober.c',
|
|
|
|
),
|
|
|
|
include_directories: xrt_include,
|
|
|
|
dependencies: [aux],
|
|
|
|
build_by_default: 'handtracking' in drivers,
|
|
|
|
)
|
|
|
|
|
2019-09-24 13:43:43 +00:00
|
|
|
lib_drv_ohmd = static_library(
|
|
|
|
'drv_ohmd',
|
|
|
|
files(
|
|
|
|
'ohmd/oh_device.c',
|
|
|
|
'ohmd/oh_device.h',
|
|
|
|
'ohmd/oh_interface.h',
|
|
|
|
'ohmd/oh_prober.c',
|
|
|
|
),
|
|
|
|
include_directories: xrt_include,
|
|
|
|
dependencies: [aux, openhmd],
|
|
|
|
build_by_default: 'ohmd' in drivers,
|
|
|
|
)
|
|
|
|
|
|
|
|
lib_drv_psmv = static_library(
|
|
|
|
'drv_psmv',
|
|
|
|
files(
|
|
|
|
'psmv/psmv_driver.c',
|
|
|
|
'psmv/psmv_interface.h',
|
|
|
|
),
|
|
|
|
include_directories: xrt_include,
|
|
|
|
dependencies: [aux],
|
|
|
|
build_by_default: 'psmv' in drivers,
|
|
|
|
)
|
|
|
|
|
|
|
|
lib_drv_psvr = static_library(
|
|
|
|
'drv_psvr',
|
|
|
|
files(
|
|
|
|
'psvr/psvr_device.c',
|
|
|
|
'psvr/psvr_device.h',
|
|
|
|
'psvr/psvr_interface.h',
|
|
|
|
'psvr/psvr_packet.c',
|
|
|
|
'psvr/psvr_prober.c',
|
|
|
|
),
|
|
|
|
include_directories: xrt_include,
|
|
|
|
dependencies: [aux, hidapi],
|
|
|
|
build_by_default: 'psvr' in drivers,
|
|
|
|
)
|
|
|
|
|
2020-02-09 15:36:36 +00:00
|
|
|
lib_drv_rs = static_library(
|
|
|
|
'drv_rs',
|
|
|
|
files(
|
|
|
|
'realsense/rs_6dof.c',
|
|
|
|
'realsense/rs_interface.h',
|
|
|
|
),
|
|
|
|
include_directories: xrt_include,
|
|
|
|
dependencies: [aux, rs],
|
|
|
|
build_by_default: 'rs' in drivers,
|
|
|
|
)
|
|
|
|
|
2020-11-20 15:12:34 +00:00
|
|
|
lib_drv_remote = static_library(
|
|
|
|
'drv_remote',
|
|
|
|
files(
|
|
|
|
'remote/r_device.c',
|
|
|
|
'remote/r_hmd.c',
|
|
|
|
'remote/r_hub.c',
|
|
|
|
'remote/r_interface.h',
|
|
|
|
'remote/r_internal.h',
|
|
|
|
),
|
|
|
|
include_directories: xrt_include,
|
|
|
|
dependencies: [aux],
|
|
|
|
build_by_default: 'remote' in drivers,
|
|
|
|
)
|
|
|
|
|
2020-11-26 19:16:02 +00:00
|
|
|
lib_drv_vf = static_library(
|
|
|
|
'drv_vf',
|
|
|
|
files(
|
|
|
|
'vf/vf_driver.c'
|
|
|
|
),
|
|
|
|
include_directories: xrt_include,
|
|
|
|
dependencies: [aux, gst, gst_app, gst_video],
|
|
|
|
build_by_default: 'vf' in drivers,
|
|
|
|
)
|
|
|
|
|
2019-09-24 13:43:43 +00:00
|
|
|
lib_drv_v4l2 = static_library(
|
|
|
|
'drv_v4l2',
|
|
|
|
files(
|
|
|
|
'v4l2/v4l2_driver.c',
|
|
|
|
),
|
|
|
|
include_directories: xrt_include,
|
2020-08-26 20:51:49 +00:00
|
|
|
dependencies: [aux],
|
2019-09-24 13:43:43 +00:00
|
|
|
build_by_default: 'v4l2' in drivers,
|
|
|
|
)
|
2019-10-02 11:00:52 +00:00
|
|
|
|
|
|
|
lib_drv_vive = static_library(
|
|
|
|
'drv_vive',
|
|
|
|
files(
|
|
|
|
'vive/vive_device.c',
|
|
|
|
'vive/vive_device.h',
|
2020-04-14 14:18:58 +00:00
|
|
|
'vive/vive_protocol.c',
|
2019-10-02 11:00:52 +00:00
|
|
|
'vive/vive_protocol.h',
|
|
|
|
'vive/vive_prober.h',
|
|
|
|
'vive/vive_prober.c',
|
2020-06-19 12:13:31 +00:00
|
|
|
'vive/vive_controller.c',
|
|
|
|
'vive/vive_controller.h',
|
2020-07-02 14:41:29 +00:00
|
|
|
'vive/vive_config.c',
|
2020-06-19 11:27:00 +00:00
|
|
|
'vive/vive_config.h',
|
|
|
|
'vive/vive_lighthouse.c',
|
|
|
|
'vive/vive_lighthouse.h',
|
2019-10-02 11:00:52 +00:00
|
|
|
),
|
2020-03-31 19:59:02 +00:00
|
|
|
include_directories: [
|
|
|
|
xrt_include,
|
|
|
|
cjson_include,
|
|
|
|
],
|
2019-10-02 11:00:52 +00:00
|
|
|
dependencies: [aux, zlib],
|
|
|
|
build_by_default: 'vive' in drivers,
|
|
|
|
)
|
2019-03-12 01:02:06 +00:00
|
|
|
|
|
|
|
lib_drv_survive = static_library(
|
|
|
|
'drv_survive',
|
|
|
|
files(
|
|
|
|
'survive/survive_driver.c',
|
|
|
|
'survive/survive_interface.h',
|
|
|
|
'survive/survive_wrap.c',
|
|
|
|
'survive/survive_wrap.h'
|
|
|
|
),
|
|
|
|
include_directories: [
|
|
|
|
xrt_include,
|
|
|
|
cjson_include,
|
|
|
|
],
|
|
|
|
dependencies: [aux, zlib, survive],
|
|
|
|
build_by_default: 'survive' in drivers,
|
|
|
|
)
|
2020-10-04 23:07:53 +00:00
|
|
|
|
|
|
|
lib_drv_daydream = static_library(
|
|
|
|
'drv_daydream',
|
|
|
|
files(
|
|
|
|
'daydream/daydream_device.c',
|
|
|
|
'daydream/daydream_device.h',
|
|
|
|
'daydream/daydream_interface.h',
|
|
|
|
'daydream/daydream_prober.c',
|
|
|
|
),
|
|
|
|
include_directories: [
|
|
|
|
xrt_include,
|
|
|
|
],
|
|
|
|
dependencies: [dbus, aux],
|
|
|
|
build_by_default: 'daydream' in drivers,
|
|
|
|
)
|
|
|
|
|
|
|
|
lib_drv_arduino = static_library(
|
|
|
|
'drv_arduino',
|
|
|
|
files(
|
|
|
|
'arduino/arduino_device.c',
|
|
|
|
'arduino/arduino_interface.h',
|
|
|
|
'arduino/arduino_prober.c',
|
|
|
|
),
|
|
|
|
include_directories: [
|
|
|
|
xrt_include,
|
|
|
|
],
|
|
|
|
dependencies: [dbus, aux],
|
|
|
|
build_by_default: 'arduino' in drivers,
|
|
|
|
)
|