2019-05-30 05:57:57 +00:00
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
#--------------------------------------------------------
|
|
|
|
# libquakequest.so
|
|
|
|
#--------------------------------------------------------
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2022-12-22 22:22:52 +00:00
|
|
|
# Uncomment for the correct headset - slight changes required in OpenXR implementation
|
|
|
|
#OPENXR_HMD = -DMETA_QUEST
|
|
|
|
OPENXR_HMD = -DPICO_XR
|
|
|
|
|
|
|
|
LOCAL_CFLAGS := $(OPENXR_HMD)
|
2019-05-30 05:57:57 +00:00
|
|
|
LOCAL_MODULE := quakequest
|
2021-12-19 20:32:37 +00:00
|
|
|
LOCAL_LDLIBS := -llog -landroid -lGLESv3 -lEGL -lOpenSLES # include default libraries
|
2019-05-30 05:57:57 +00:00
|
|
|
|
2021-03-11 17:37:57 +00:00
|
|
|
LOCAL_C_INCLUDES := ../QuakeQuestSrc/ \
|
2022-12-22 22:22:52 +00:00
|
|
|
../darkplaces/ \
|
|
|
|
$(SUPPORT_LIBS)/liboggvorbis/include \
|
2022-12-23 10:39:26 +00:00
|
|
|
$(TOP_DIR)/../../../../../3rdParty/khronos/openxr/OpenXR-SDK/include \
|
|
|
|
$(TOP_DIR)/../../../../../OpenXR/Include
|
2022-12-22 22:22:52 +00:00
|
|
|
|
2019-05-30 05:57:57 +00:00
|
|
|
|
2022-12-22 22:22:52 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := openxr_loader libvorbis libogg libvorbis-jni
|
2019-05-30 05:57:57 +00:00
|
|
|
|
2021-02-02 22:53:37 +00:00
|
|
|
SRC_SND_COMMON := \
|
2021-12-19 20:32:37 +00:00
|
|
|
darkplaces/snd_opensl.c \
|
2021-02-02 22:53:37 +00:00
|
|
|
darkplaces/snd_main.c \
|
|
|
|
darkplaces/snd_mem.c \
|
|
|
|
darkplaces/snd_mix.c \
|
|
|
|
darkplaces/snd_ogg.c \
|
2021-12-19 20:32:37 +00:00
|
|
|
darkplaces/snd_modplug.c \
|
2021-02-02 22:53:37 +00:00
|
|
|
darkplaces/snd_wav.c \
|
2019-05-30 05:57:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
###### Common objects and flags #####
|
|
|
|
|
|
|
|
# Common objects
|
2021-02-02 22:53:37 +00:00
|
|
|
SRC_COMMON := \
|
|
|
|
darkplaces/cd_null.c \
|
|
|
|
darkplaces/bih.c \
|
|
|
|
darkplaces/cap_avi.c \
|
|
|
|
darkplaces/cap_ogg.c \
|
|
|
|
darkplaces/cd_shared.c \
|
|
|
|
darkplaces/crypto.c \
|
|
|
|
darkplaces/cl_collision.c \
|
|
|
|
darkplaces/cl_demo.c \
|
|
|
|
darkplaces/cl_dyntexture.c \
|
|
|
|
darkplaces/cl_input.c \
|
|
|
|
darkplaces/cl_main.c \
|
|
|
|
darkplaces/cl_parse.c \
|
|
|
|
darkplaces/cl_particles.c \
|
|
|
|
darkplaces/cl_screen.c \
|
|
|
|
darkplaces/cl_video.c \
|
|
|
|
darkplaces/clvm_cmds.c \
|
|
|
|
darkplaces/cmd.c \
|
|
|
|
darkplaces/collision.c \
|
|
|
|
darkplaces/common.c \
|
|
|
|
darkplaces/console.c \
|
|
|
|
darkplaces/csprogs.c \
|
|
|
|
darkplaces/curves.c \
|
|
|
|
darkplaces/cvar.c \
|
|
|
|
darkplaces/dpsoftrast.c \
|
|
|
|
darkplaces/dpvsimpledecode.c \
|
|
|
|
darkplaces/filematch.c \
|
|
|
|
darkplaces/fractalnoise.c \
|
|
|
|
darkplaces/fs.c \
|
|
|
|
darkplaces/ft2.c \
|
|
|
|
darkplaces/utf8lib.c \
|
|
|
|
darkplaces/gl_backend.c \
|
|
|
|
darkplaces/gl_draw.c \
|
|
|
|
darkplaces/gl_rmain.c \
|
|
|
|
darkplaces/gl_rsurf.c \
|
|
|
|
darkplaces/gl_textures.c \
|
|
|
|
darkplaces/hmac.c \
|
|
|
|
darkplaces/host.c \
|
|
|
|
darkplaces/host_cmd.c \
|
|
|
|
darkplaces/image.c \
|
|
|
|
darkplaces/image_png.c \
|
|
|
|
darkplaces/jpeg.c \
|
|
|
|
darkplaces/keys.c \
|
|
|
|
darkplaces/lhnet.c \
|
|
|
|
darkplaces/libcurl.c \
|
|
|
|
darkplaces/mathlib.c \
|
|
|
|
darkplaces/matrixlib.c \
|
|
|
|
darkplaces/mdfour.c \
|
|
|
|
darkplaces/menu.c \
|
|
|
|
darkplaces/meshqueue.c \
|
|
|
|
darkplaces/mod_skeletal_animatevertices_sse.c \
|
|
|
|
darkplaces/mod_skeletal_animatevertices_generic.c \
|
|
|
|
darkplaces/model_alias.c \
|
|
|
|
darkplaces/model_brush.c \
|
|
|
|
darkplaces/model_shared.c \
|
|
|
|
darkplaces/model_sprite.c \
|
|
|
|
darkplaces/mvm_cmds.c \
|
|
|
|
darkplaces/netconn.c \
|
|
|
|
darkplaces/palette.c \
|
|
|
|
darkplaces/polygon.c \
|
|
|
|
darkplaces/portals.c \
|
|
|
|
darkplaces/protocol.c \
|
|
|
|
darkplaces/prvm_cmds.c \
|
|
|
|
darkplaces/prvm_edict.c \
|
|
|
|
darkplaces/prvm_exec.c \
|
|
|
|
darkplaces/r_explosion.c \
|
|
|
|
darkplaces/r_lerpanim.c \
|
|
|
|
darkplaces/r_lightning.c \
|
|
|
|
darkplaces/r_lasersight.c \
|
|
|
|
darkplaces/r_modules.c \
|
|
|
|
darkplaces/r_shadow.c \
|
|
|
|
darkplaces/r_sky.c \
|
|
|
|
darkplaces/r_sprites.c \
|
|
|
|
darkplaces/sbar.c \
|
|
|
|
darkplaces/snprintf.c \
|
|
|
|
darkplaces/sv_demo.c \
|
|
|
|
darkplaces/sv_main.c \
|
|
|
|
darkplaces/sv_move.c \
|
|
|
|
darkplaces/sv_phys.c \
|
|
|
|
darkplaces/sv_user.c \
|
|
|
|
darkplaces/svbsp.c \
|
|
|
|
darkplaces/svvm_cmds.c \
|
|
|
|
darkplaces/sys_shared.c \
|
|
|
|
darkplaces/vid_shared.c \
|
|
|
|
darkplaces/view.c \
|
|
|
|
darkplaces/wad.c \
|
|
|
|
darkplaces/world.c \
|
|
|
|
darkplaces/zone.c
|
2019-05-30 05:57:57 +00:00
|
|
|
|
2021-02-02 22:53:37 +00:00
|
|
|
SRC_QUEST := \
|
|
|
|
QuakeQuestSrc/argtable3.c \
|
2022-12-22 22:25:43 +00:00
|
|
|
QuakeQuestSrc/QuakeQuest_OpenXR.c \
|
2022-12-22 22:22:52 +00:00
|
|
|
QuakeQuestSrc/OpenXrInput_MetaQuest.c \
|
|
|
|
QuakeQuestSrc/OpenXrInput_PicoXR.c \
|
|
|
|
QuakeQuestSrc/TBXR_Common.c \
|
2019-05-30 05:57:57 +00:00
|
|
|
|
2021-02-02 22:53:37 +00:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
$(SRC_QUEST) \
|
|
|
|
darkplaces/builddate.c \
|
|
|
|
darkplaces/sys_linux.c \
|
|
|
|
darkplaces/vid_android.c \
|
|
|
|
darkplaces/thread_pthread.c \
|
|
|
|
$(SRC_SND_COMMON) \
|
|
|
|
$(SRC_COMMON)
|
2019-05-30 05:57:57 +00:00
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2021-03-11 17:37:57 +00:00
|
|
|
include $(SUPPORT_LIBS)/liboggvorbis/Android.mk
|
2019-05-30 05:57:57 +00:00
|
|
|
|
2022-12-22 22:22:52 +00:00
|
|
|
$(call import-module,OpenXR/Projects/AndroidPrebuilt/jni)
|