The open source OpenXR runtime
at main 43 lines 1.2 kB view raw
1# Copyright 2019-2025, Collabora, Ltd. 2# SPDX-License-Identifier: BSL-1.0 3 4add_library( 5 android_app_glue STATIC 6 ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c 7 ) 8target_include_directories(android_app_glue PUBLIC ${ANDROID_NDK}/sources/android/native_app_glue) 9# disable these warnings in external code 10target_compile_options(android_app_glue PRIVATE -Wno-format-pedantic -Wno-strict-prototypes) 11 12add_library( 13 aux_android STATIC 14 android_ahardwarebuffer_allocator.c 15 android_ahardwarebuffer_allocator.h 16 android_content.cpp 17 android_content.h 18 android_custom_surface.cpp 19 android_custom_surface.h 20 android_globals.cpp 21 android_globals.h 22 android_instance_base.c 23 android_instance_base.h 24 android_lifecycle_callbacks.cpp 25 android_lifecycle_callbacks.h 26 android_load_class.cpp 27 android_load_class.hpp 28 android_looper.cpp 29 android_looper.h 30 org.freedesktop.monado.auxiliary.cpp 31 org.freedesktop.monado.auxiliary.hpp 32 org.freedesktop.monado.auxiliary.impl.hpp 33 ) 34target_link_libraries( 35 aux_android 36 PUBLIC aux_util xrt-interfaces 37 PRIVATE 38 ${ANDROID_LIBRARY} 39 ${ANDROID_LOG_LIBRARY} 40 xrt-external-jni-wrap 41 xrt-external-jnipp 42 android_app_glue 43 )