2020-03-05 11:41:06 +00:00
|
|
|
# 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(
|
2020-03-05 11:41:06 +00:00
|
|
|
'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',
|
2019-10-22 17:45:25 +00:00
|
|
|
'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',
|
2019-11-08 11:25:36 +00:00
|
|
|
'util/u_json.c',
|
|
|
|
'util/u_json.h',
|
2020-07-03 13:27:39 +00:00
|
|
|
'util/u_logging.c',
|
|
|
|
'util/u_logging.h',
|
2020-03-05 11:41:06 +00:00
|
|
|
'util/u_misc.c',
|
|
|
|
'util/u_misc.h',
|
2020-06-23 20:26:05 +00:00
|
|
|
'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',
|
|
|
|
),
|
2019-11-08 11:25:36 +00:00
|
|
|
include_directories: [
|
|
|
|
xrt_include,
|
2020-03-31 19:59:02 +00:00
|
|
|
cjson_include,
|
2019-11-08 11:25:36 +00:00
|
|
|
],
|
2020-03-02 15:44:00 +00:00
|
|
|
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
|
|
|
)
|
|
|
|
|
2020-07-16 22:22:59 +00:00
|
|
|
if build_opengl or build_opengles
|
|
|
|
ogl_files = [
|
2019-10-09 15:39:38 +00:00
|
|
|
'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',
|
2020-07-17 22:44:52 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if build_opengles or build_egl
|
2020-07-16 22:22:59 +00:00
|
|
|
ogl_files += [
|
2020-07-17 22:44:52 +00:00
|
|
|
'ogl/egl_api.h',
|
|
|
|
'ogl/egl_api.c',
|
2020-07-16 22:22:59 +00:00
|
|
|
]
|
|
|
|
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-10-09 15:39:38 +00:00
|
|
|
|
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',
|
2019-11-21 13:15:38 +00:00
|
|
|
'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',
|
2019-11-21 13:15:38 +00:00
|
|
|
'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 = [
|
2020-03-10 13:27:43 +00:00
|
|
|
'tracking/t_data_utils.c',
|
2019-10-10 16:28:42 +00:00
|
|
|
'tracking/t_imu.h',
|
2019-11-21 13:00:52 +00:00
|
|
|
'tracking/t_imu_fusion.hpp',
|
2019-12-03 21:48:36 +00:00
|
|
|
'tracking/t_imu.cpp',
|
2019-11-21 13:00:52 +00:00
|
|
|
'tracking/t_lowpass.hpp',
|
|
|
|
'tracking/t_lowpass_vector.hpp',
|
2019-09-24 13:43:43 +00:00
|
|
|
'tracking/t_tracking.h',
|
|
|
|
]
|
2019-12-03 21:48:36 +00:00
|
|
|
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',
|
2020-01-14 18:18:08 +00:00
|
|
|
'tracking/t_helper_debug_sink.hpp',
|
2019-12-03 21:48:36 +00:00
|
|
|
'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,
|
|
|
|
],
|
2019-12-03 21:48:36 +00:00
|
|
|
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
|
|
|
)
|
|
|
|
|
2020-02-23 12:30:26 +00:00
|
|
|
lib_aux_vk = static_library(
|
|
|
|
'aux_vk',
|
|
|
|
files(
|
2020-07-08 14:53:52 +00:00
|
|
|
'vk/vk_documentation.h',
|
2020-02-23 12:30:26 +00:00
|
|
|
'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',
|
2020-02-23 12:30:26 +00:00
|
|
|
),
|
|
|
|
include_directories: [
|
|
|
|
xrt_include,
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
aux_vk = declare_dependency(
|
|
|
|
include_directories: aux_include,
|
|
|
|
link_with: lib_aux_vk,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2019-12-03 21:48:36 +00:00
|
|
|
all_aux = [aux_util, aux_os, aux_math, aux_tracking]
|
2019-09-24 13:43:43 +00:00
|
|
|
|
|
|
|
aux = declare_dependency(dependencies: all_aux)
|