diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d38a1ac0db..c4e7c10155 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -151,6 +151,18 @@ jobs: cxx: clang++ args: cd android && ./ab.sh -j2 APP_ABI=x86_64 UNITTEST=1 HEADLESS=1 id: android-x86_64 + - os: ubuntu-latest + extra: android + cc: clang + cxx: clang++ + args: cd android && ./ab.sh -j2 APP_ABI=arm64-v8a OPENXR=1 OPENXR_PLATFORM_QUEST=1 + id: android-vr-quest + - os: ubuntu-latest + extra: android + cc: clang + cxx: clang++ + args: cd android && ./ab.sh -j2 APP_ABI=arm64-v8a OPENXR=1 OPENXR_PLATFORM_PICO=1 + id: android-vr-pico - os: ubuntu-latest extra: android cc: clang diff --git a/android/jni/Android.mk b/android/jni/Android.mk index 2fc73c6168..cc507e101d 100644 --- a/android/jni/Android.mk +++ b/android/jni/Android.mk @@ -739,6 +739,18 @@ ifeq ($(HEADLESS),1) include $(BUILD_EXECUTABLE) endif +ifeq ($(OPENXR),1) + LOCAL_CFLAGS += -DOPENXR +endif + +ifeq ($(OPENXR_PLATFORM_QUEST),1) + LOCAL_CFLAGS += -DOPENXR_PLATFORM_QUEST +endif + +ifeq ($(OPENXR_PLATFORM_PICO),1) + LOCAL_CFLAGS += -DOPENXR_PLATFORM_PICO +endif + ifeq ($(UNITTEST),1) include $(CLEAR_VARS) include $(LOCAL_PATH)/Locals.mk