The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

inc/xrt: Add Android config header to store package name.

+29
+11
CMakeLists.txt
··· 178 178 # All drivers must be listed in here to be included in the generated header! 179 179 list(APPEND AVAILABLE_DRIVERS ARDUINO DUMMY HDK HYDRA NS OHMD PSMV PSVR RS V4L2 VIVE DAYDREAM REMOTE SURVIVE) 180 180 181 + 182 + # Package name needs to be known by the native code itself. 183 + # Can be overridden from outside/command line 184 + if(ANDROID AND NOT XRT_ANDROID_PACKAGE) 185 + if(XRT_FEATURE_SERVICE) 186 + set(XRT_ANDROID_PACKAGE "org.freedesktop.monado.openxr_runtime.out_of_process") 187 + else() 188 + set(XRT_ANDROID_PACKAGE "org.freedesktop.monado.openxr_runtime.in_process") 189 + endif() 190 + endif() 191 + 181 192 ### 182 193 # Flags 183 194 ###
+6
src/xrt/include/xrt/CMakeLists.txt
··· 30 30 ${CMAKE_CURRENT_BINARY_DIR}/xrt_config_vulkan.h 31 31 @ONLY 32 32 ) 33 + 34 + configure_file( 35 + ${CMAKE_CURRENT_SOURCE_DIR}/xrt_config_android.h.cmake_in 36 + ${CMAKE_CURRENT_BINARY_DIR}/xrt_config_android.h 37 + @ONLY 38 + )
+12
src/xrt/include/xrt/xrt_config_android.h.cmake_in
··· 1 + // Copyright 2020, Collabora, Ltd. 2 + // SPDX-License-Identifier: BSL-1.0 3 + /*! 4 + * @file 5 + * @brief Android defines. 6 + * @author Ryan Pavlik <ryan.pavlik@collabora.com> 7 + * @ingroup xrt_iface 8 + */ 9 + 10 + #pragma once 11 + 12 + #cmakedefine XRT_ANDROID_PACKAGE "@XRT_ANDROID_PACKAGE@"