This commit is contained in:
Edouard Dupin 2011-12-19 16:45:38 +01:00
parent e43c14f261
commit e5bafc52e8
4 changed files with 38 additions and 1 deletions

2
Application.mk Normal file
View File

@ -0,0 +1,2 @@
APP_BUILD_SCRIPT=$PROJECT/Sources/Android.mk

View File

@ -4,8 +4,14 @@
###############################################################################
PROJECT_PATH=$(shell pwd)
ifeq ($(PLATFORM), Linux)
#PROJECT_NDK?=$(PROJECT_PATH)/../ewol/
PROJECT_NDK?=$(PROJECT_PATH)/../android/ldk/
else ifeq ($(PLATFORM), Android)
PROJECT_NDK?=$(PROJECT_PATH)/../android/ndk-r7/
PROJECT_SDK?=$(PROJECT_PATH)/../android/sdk-r15/
endif
PROJECT_MODULE?=$(PROJECT_PATH)/../

View File

@ -16,4 +16,10 @@ include $(BUILD_SHARED_LIBRARY)
NDK_MODULE_PATH := $(LOCAL_PATH)/../../
$(call import-module,ewol/jni)
######################################################### ==> Remove the /jni ....
$(call import-module,ewol/Sources)

23
jni/Linux.mk Normal file
View File

@ -0,0 +1,23 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := ewoldrawerpackage
LOCAL_STATIC_LIBRARIES := ewol
LOCAL_SRC_FILES := ewolAndroidAbstraction.cpp \
Main.cpp
LOCAL_LDLIBS := -llog -landroid
#LOCAL_STATIC_JAVA_LIBRARIES := ewol
#LOCAL_JAVA_RESOURCE_DIRS := $(LOCAL_PATH)/../ewol
include $(BUILD_SHARED_LIBRARY)
NDK_MODULE_PATH := $(LOCAL_PATH)/../../
######################################################### ==> Remove the /jni ....
$(call import-module,ewol/Sources)