Moved NativeInit() to separate sdl_main shared library so libapplication.so won't contain any java-specific code,

added SDL_image, libpng and libjpeg.
This commit is contained in:
pelya
2010-05-11 12:50:50 +03:00
parent f25dcd7164
commit 500d845cc6
418 changed files with 192309 additions and 55 deletions

View File

@@ -0,0 +1,21 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := sdl_main
ifndef SDL_JAVA_PACKAGE_PATH
$(error Please define SDL_JAVA_PACKAGE_PATH to the path of your Java package with dots replaced with underscores, for example "com_example_SanAngeles")
endif
LOCAL_CFLAGS := -I$(LOCAL_PATH)/../sdl/include \
-DSDL_JAVA_PACKAGE_PATH=$(SDL_JAVA_PACKAGE_PATH) \
-DSDL_CURDIR_PATH=\"$(SDL_CURDIR_PATH)\"
LOCAL_CPP_EXTENSION := .cpp
LOCAL_SRC_FILES := sdl_main.c
LOCAL_SHARED_LIBRARIES := sdl application
include $(BUILD_SHARED_LIBRARY)