monado/src/xrt/auxiliary/meson.build

210 lines
4 KiB
Meson
Raw Normal View History

# Copyright 2019-2020, Collabora, Ltd.
2019-09-24 13:43:43 +00:00
# SPDX-License-Identifier: BSL-1.0
aux_include = include_directories('.')
lib_aux_util = static_library(
'aux_util',
files(
'util/u_bitwise.c',
'util/u_bitwise.h',
2019-09-24 13:43:43 +00:00
'util/u_debug.c',
'util/u_debug.h',
'util/u_device.c',
'util/u_device.h',
'util/u_distortion_mesh.c',
'util/u_distortion_mesh.h',
2019-09-24 13:43:43 +00:00
'util/u_documentation.h',
2020-04-06 10:08:48 +00:00
'util/u_file.c',
'util/u_file.h',
2019-09-24 13:43:43 +00:00
'util/u_format.c',
'util/u_format.h',
'util/u_frame.c',
'util/u_frame.h',
2020-08-13 19:58:01 +00:00
'util/u_handles.c',
'util/u_handles.h',
2019-09-24 13:43:43 +00:00
'util/u_hashmap.cpp',
'util/u_hashmap.h',
'util/u_hashset.cpp',
'util/u_hashset.h',
'util/u_json.c',
'util/u_json.h',
2020-07-03 13:27:39 +00:00
'util/u_logging.c',
'util/u_logging.h',
'util/u_misc.c',
'util/u_misc.h',
'util/u_render_timing.c',
'util/u_render_timing.h',
2019-09-24 13:43:43 +00:00
'util/u_sink.h',
'util/u_sink_converter.c',
2020-01-18 20:59:38 +00:00
'util/u_sink_deinterleaver.c',
2019-09-24 13:43:43 +00:00
'util/u_sink_queue.c',
2020-01-17 14:17:54 +00:00
'util/u_sink_quirk.c',
2019-09-24 13:43:43 +00:00
'util/u_sink_split.c',
'util/u_time.cpp',
'util/u_time.h',
'util/u_var.cpp',
'util/u_var.h',
),
include_directories: [
xrt_include,
cjson_include,
],
dependencies: [
xrt_config_have
]
2019-09-24 13:43:43 +00:00
)
aux_util = declare_dependency(
include_directories: aux_include,
2019-10-10 15:18:41 +00:00
link_with: lib_aux_util,
2019-09-24 13:43:43 +00:00
)
if build_opengl or build_opengles
ogl_files = [
'ogl/ogl_documentation.h',
2020-08-19 19:37:55 +00:00
'ogl/ogl_api.h',
'ogl/ogl_api.c',
'ogl/ogl_helpers.c',
'ogl/ogl_helpers.h',
]
if build_opengles or build_egl
ogl_files += [
'ogl/egl_api.h',
'ogl/egl_api.c',
]
endif
lib_aux_ogl = static_library(
'aux_ogl',
files(ogl_files),
include_directories: [
xrt_include,
glad_include,
],
)
aux_ogl = declare_dependency(
include_directories: aux_include,
link_with: lib_aux_ogl,
)
endif
2019-09-24 13:43:43 +00:00
lib_aux_os = static_library(
'aux_os',
files(
'os/os_documentation.h',
'os/os_hid.h',
'os/os_hid_hidraw.c',
'os/os_threading.h',
'os/os_time.h',
),
include_directories: xrt_include,
)
aux_os = declare_dependency(
include_directories: aux_include,
2019-10-10 15:18:41 +00:00
link_with: lib_aux_os,
2019-09-24 13:43:43 +00:00
)
lib_aux_math = static_library(
'aux_math',
files(
'math/m_api.h',
'math/m_base.cpp',
'math/m_eigen_interop.hpp',
2020-02-18 12:48:57 +00:00
'math/m_filter_fifo.c',
'math/m_filter_fifo.h',
2019-09-24 13:43:43 +00:00
'math/m_hash.cpp',
2020-03-13 19:56:47 +00:00
'math/m_imu_3dof.c',
'math/m_imu_3dof.h',
2020-01-29 20:50:42 +00:00
'math/m_imu_pre.c',
'math/m_imu_pre.h',
2019-09-24 13:43:43 +00:00
'math/m_optics.c',
2020-08-25 18:14:08 +00:00
'math/m_permutation.c',
'math/m_permutation.h',
2019-09-24 13:43:43 +00:00
'math/m_quatexpmap.cpp',
'math/m_vec2.h',
2020-01-27 06:31:56 +00:00
'math/m_vec3.h',
2019-09-24 13:43:43 +00:00
),
include_directories: xrt_include,
dependencies: [eigen3],
)
aux_math = declare_dependency(
include_directories: aux_include,
2019-10-10 15:18:41 +00:00
link_with: lib_aux_math,
2019-09-24 13:43:43 +00:00
)
tracking_srcs = [
'tracking/t_data_utils.c',
'tracking/t_imu.h',
'tracking/t_imu_fusion.hpp',
'tracking/t_imu.cpp',
'tracking/t_lowpass.hpp',
'tracking/t_lowpass_vector.hpp',
2019-09-24 13:43:43 +00:00
'tracking/t_tracking.h',
]
tracking_deps = [eigen3]
if build_tracking
tracking_srcs += [
'tracking/t_calibration.cpp',
'tracking/t_calibration_opencv.hpp',
'tracking/t_convert.cpp',
'tracking/t_debug_hsv_filter.cpp',
'tracking/t_debug_hsv_picker.cpp',
'tracking/t_debug_hsv_viewer.cpp',
'tracking/t_file.cpp',
'tracking/t_fusion.hpp',
'tracking/t_helper_debug_sink.hpp',
'tracking/t_hsv_filter.c',
'tracking/t_kalman.cpp',
'tracking/t_tracker_psmv.cpp',
'tracking/t_tracker_psmv_fusion.hpp',
'tracking/t_tracker_psvr.cpp',
]
tracking_deps += [opencv]
endif
2019-09-24 13:43:43 +00:00
lib_aux_tracking = static_library(
'aux_tracking',
files(tracking_srcs),
2020-07-09 13:14:53 +00:00
include_directories: [
xrt_include,
flexkalman_include,
hungarian_include,
],
dependencies: tracking_deps
2019-09-24 13:43:43 +00:00
)
aux_tracking = declare_dependency(
include_directories: aux_include,
2019-10-10 15:18:41 +00:00
link_with: lib_aux_tracking,
2019-09-24 13:43:43 +00:00
)
lib_aux_vk = static_library(
'aux_vk',
files(
2020-07-08 14:53:52 +00:00
'vk/vk_documentation.h',
'vk/vk_helpers.h',
'vk/vk_helpers.c',
2020-07-08 14:53:52 +00:00
'vk/vk_image_allocator.h',
'vk/vk_image_allocator.c',
),
include_directories: [
xrt_include,
],
)
aux_vk = declare_dependency(
include_directories: aux_include,
link_with: lib_aux_vk,
)
all_aux = [aux_util, aux_os, aux_math, aux_tracking]
2019-09-24 13:43:43 +00:00
aux = declare_dependency(dependencies: all_aux)