mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
build: Enable service less build with meson too
This commit is contained in:
parent
b073e3dfb9
commit
54f01b570c
|
@ -61,3 +61,9 @@ option('wayland',
|
||||||
type: 'feature',
|
type: 'feature',
|
||||||
value: 'auto',
|
value: 'auto',
|
||||||
description: 'Enable support for Wayland rendering.')
|
description: 'Enable support for Wayland rendering.')
|
||||||
|
|
||||||
|
option('service',
|
||||||
|
type: 'boolean',
|
||||||
|
value: true,
|
||||||
|
description: 'Enable separate service module for OpenXR runtime'
|
||||||
|
)
|
||||||
|
|
|
@ -75,7 +75,7 @@ xrt_config_have = declare_dependency(
|
||||||
#
|
#
|
||||||
|
|
||||||
build_conf = configuration_data()
|
build_conf = configuration_data()
|
||||||
if true
|
if get_option('service')
|
||||||
build_conf.set('XRT_FEATURE_SERVICE', true)
|
build_conf.set('XRT_FEATURE_SERVICE', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -8,5 +8,7 @@ subdir('auxiliary')
|
||||||
subdir('drivers')
|
subdir('drivers')
|
||||||
subdir('compositor')
|
subdir('compositor')
|
||||||
subdir('state_trackers')
|
subdir('state_trackers')
|
||||||
|
if get_option('service')
|
||||||
subdir('ipc')
|
subdir('ipc')
|
||||||
|
endif
|
||||||
subdir('targets')
|
subdir('targets')
|
||||||
|
|
|
@ -66,4 +66,7 @@ if get_option('gui').enabled() or (get_option('gui').auto() and sdl2.found())
|
||||||
subdir('gui')
|
subdir('gui')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get_option('service')
|
||||||
subdir('service')
|
subdir('service')
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,25 @@ if build_xcb_xrandr_direct
|
||||||
openxr_deps += [xcb_randr]
|
openxr_deps += [xcb_randr]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
libs = [
|
||||||
|
lib_aux_vk,
|
||||||
|
lib_aux_os,
|
||||||
|
lib_aux_ogl,
|
||||||
|
lib_aux_util,
|
||||||
|
lib_aux_math,
|
||||||
|
lib_comp,
|
||||||
|
lib_st_oxr
|
||||||
|
] + hack_libs
|
||||||
|
|
||||||
|
if get_option('service')
|
||||||
|
libs += lib_ipc_client
|
||||||
|
else
|
||||||
|
libs += [
|
||||||
|
lib_target_instance,
|
||||||
|
driver_libs
|
||||||
|
]
|
||||||
|
endif
|
||||||
|
|
||||||
mapfile = 'libopenxr.version'
|
mapfile = 'libopenxr.version'
|
||||||
version_script_flag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile)
|
version_script_flag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile)
|
||||||
openxr = library(
|
openxr = library(
|
||||||
|
@ -71,16 +90,7 @@ openxr = library(
|
||||||
'target.c',
|
'target.c',
|
||||||
hack_src,
|
hack_src,
|
||||||
),
|
),
|
||||||
link_whole: [
|
link_whole: libs,
|
||||||
lib_aux_vk,
|
|
||||||
lib_aux_os,
|
|
||||||
lib_aux_ogl,
|
|
||||||
lib_aux_util,
|
|
||||||
lib_aux_math,
|
|
||||||
lib_comp,
|
|
||||||
lib_ipc_client,
|
|
||||||
lib_st_oxr,
|
|
||||||
] + hack_libs,
|
|
||||||
include_directories: [
|
include_directories: [
|
||||||
openxr_include,
|
openxr_include,
|
||||||
st_include, # Sigh debian meson requires this.
|
st_include, # Sigh debian meson requires this.
|
||||||
|
|
Loading…
Reference in a new issue