Android works

This commit is contained in:
BADIM-PC\Vadim 2018-02-22 19:43:13 +03:00
parent 1520a93efc
commit 6548c97921
4 changed files with 10 additions and 2 deletions

@ -1 +1 @@
Subproject commit 709d58eef4f2e34b476d38759705d6420d06c548 Subproject commit 4c88c7efa656ace687276be7e8507be6f06b83e8

View File

@ -0,0 +1,6 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := sdlgpu
LOCAL_SRC_FILES := ../../../../3rd-party/pre-built/android/sdlgpu/$(TARGET_ARCH_ABI)/libsdlgpu.so
include $(PREBUILT_SHARED_LIBRARY)

View File

@ -17,6 +17,7 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/SDL2_net-2.0.1 \ $(LOCAL_PATH)/$(THIRD_PARTY_PATH)/SDL2_net-2.0.1 \
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/moonscript \ $(LOCAL_PATH)/$(THIRD_PARTY_PATH)/moonscript \
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/wren-0.1.0\src\include \ $(LOCAL_PATH)/$(THIRD_PARTY_PATH)/wren-0.1.0\src\include \
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/sdl-gpu/include \
$(LOCAL_PATH)/../../../../include $(LOCAL_PATH)/../../../../include
# Add your application source files here... # Add your application source files here...
@ -55,7 +56,7 @@ LOCAL_SRC_FILES := \
$(SRC_PATH)/tic80.c \ $(SRC_PATH)/tic80.c \
$(SRC_PATH)/system.c $(SRC_PATH)/system.c
LOCAL_SHARED_LIBRARIES := SDL2 lua z gif wren LOCAL_SHARED_LIBRARIES := SDL2 lua z gif wren sdlgpu
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog

View File

@ -12,6 +12,7 @@ public class TIC extends SDLActivity
protected String[] getLibraries() { protected String[] getLibraries() {
return new String[] { return new String[] {
"SDL2", "SDL2",
"sdlgpu",
"lua", "lua",
"wren", "wren",
"z", "z",