Merge pull request #16436 from hrydgard/basic-vr-ci

Add basic CI support for build-testing the Android-based VR build.
This commit is contained in:
Henrik Rydgård 2022-11-25 18:29:21 +01:00 committed by GitHub
commit b7a594ed94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -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

View File

@ -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