st/oxr: Enable RenderDoc compiling on Android

This commit is contained in:
Zhongwang Zhang 2023-10-31 10:30:08 +08:00 committed by Jakob Bornecrantz
parent f93d08c7f5
commit aadb9517f3
2 changed files with 2 additions and 2 deletions

View file

@ -285,7 +285,7 @@ option(XRT_MODULE_AUX_VIVE "Build aux_vive" ON)
option_with_deps(XRT_FEATURE_COLOR_LOG "Enable logging in color on supported platforms" DEPENDS XRT_HAVE_LINUX)
option_with_deps(XRT_FEATURE_OPENXR "Build OpenXR runtime target" DEPENDS "XRT_MODULE_COMPOSITOR_MAIN OR XRT_MODULE_COMPOSITOR_NULL")
set(XRT_FEATURE_OPENXR_DEBUG_UTILS OFF) # Has never been enabled
option_with_deps(XRT_FEATURE_RENDERDOC "Enable RenderDoc API" DEPENDS "RT_LIBRARY OR WIN32")
option_with_deps(XRT_FEATURE_RENDERDOC "Enable RenderDoc API" DEPENDS "RT_LIBRARY OR WIN32 OR ANDROID")
option_with_deps(XRT_FEATURE_SERVICE "Enable separate service module for OpenXR runtime" DEPENDS XRT_MODULE_IPC XRT_FEATURE_OPENXR)
option_with_deps(XRT_FEATURE_SERVICE_SYSTEMD "Enable systemd socket activation of the service" DEPENDS XRT_HAVE_SYSTEMD XRT_FEATURE_SERVICE)
option_with_deps(XRT_FEATURE_SLAM "Enable SLAM tracking support" DEPENDS XRT_HAVE_OPENCV "XRT_HAVE_BASALT OR XRT_HAVE_KIMERA")

View file

@ -387,7 +387,7 @@ oxr_instance_create(struct oxr_logger *log,
#pragma GCC diagnostic ignored "-Wpedantic"
#endif // __GNUC_
#ifdef XRT_OS_LINUX
#if defined(XRT_OS_LINUX) && !defined(XRT_OS_ANDROID)
void *mod = dlopen("librenderdoc.so", RTLD_NOW | RTLD_NOLOAD);
if (mod) {
pRENDERDOC_GetAPI RENDERDOC_GetAPI = (pRENDERDOC_GetAPI)dlsym(mod, "RENDERDOC_GetAPI");