1 ######################################################################### 2 # Quake game 3 # This makefile builds both an activity and a shared library. 4 ######################################################################### 5 6 TOP_LOCAL_PATH:= $(call my-dir) 7 8 # Build Quake activity 9 10 LOCAL_PATH:= $(call my-dir) 11 include $(CLEAR_VARS) 12 13 LOCAL_MODULE_TAGS := optional 14 15 LOCAL_SRC_FILES := $(call all-subdir-java-files) 16 17 LOCAL_PACKAGE_NAME := Quake 18 19 LOCAL_JNI_SHARED_LIBRARIES := libquake 20 21 include $(BUILD_PACKAGE) 22 23 ######################################################################### 24 # Build Quake Shared Library 25 ######################################################################### 26 27 LOCAL_PATH:= $(LOCAL_PATH)/quake/src/WinQuake 28 29 include $(CLEAR_VARS) 30 31 # Optional tag would mean it doesn't get installed by default 32 LOCAL_MODULE_TAGS := optional 33 34 LOCAL_CFLAGS := -Werror 35 36 LOCAL_SRC_FILES:= \ 37 cd_null.cpp \ 38 cl_demo.cpp \ 39 cl_input.cpp \ 40 cl_main.cpp \ 41 cl_parse.cpp \ 42 cl_tent.cpp \ 43 chase.cpp \ 44 cmd.cpp \ 45 common.cpp \ 46 console.cpp \ 47 crc.cpp \ 48 cvar.cpp \ 49 gl_draw.cpp \ 50 gl_mesh.cpp \ 51 gl_model.cpp \ 52 gl_refrag.cpp \ 53 gl_rlight.cpp \ 54 gl_rmain.cpp \ 55 gl_rmisc.cpp \ 56 gl_rsurf.cpp \ 57 gl_screen.cpp \ 58 gl_vidandroid.cpp \ 59 gl_warp.cpp \ 60 host.cpp \ 61 host_cmd.cpp \ 62 keys.cpp \ 63 main.cpp \ 64 masterMain.cpp \ 65 mathlib.cpp \ 66 menu.cpp \ 67 net_bsd.cpp \ 68 net_dgrm.cpp \ 69 net_loop.cpp \ 70 net_main.cpp \ 71 net_vcr.cpp \ 72 net_udp.cpp \ 73 nonintel.cpp \ 74 pr_cmds.cpp \ 75 pr_edict.cpp \ 76 pr_exec.cpp \ 77 r_part.cpp \ 78 sbar.cpp \ 79 snd_dma.cpp \ 80 snd_mem.cpp \ 81 snd_mix.cpp \ 82 snd_android.cpp \ 83 sv_main.cpp \ 84 sv_phys.cpp \ 85 sv_move.cpp \ 86 sv_user.cpp \ 87 sys_android.cpp \ 88 view.cpp \ 89 wad.cpp \ 90 world.cpp \ 91 zone.cpp 92 93 LOCAL_C_INCLUDES:= \ 94 system/media/wilhelm/include 95 96 LOCAL_SHARED_LIBRARIES := \ 97 libutils \ 98 libEGL \ 99 libGLESv1_CM \ 100 libOpenSLES 101 102 LOCAL_MODULE := libquake 103 104 LOCAL_ARM_MODE := arm 105 106 include $(BUILD_SHARED_LIBRARY) 107