Last active
August 29, 2015 14:13
-
-
Save xinxu/858bddefb9ca9a8f1f89 to your computer and use it in GitHub Desktop.
Android.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := cocos2dlua_shared | |
LOCAL_MODULE_FILENAME := libcocos2dlua | |
define walk | |
$(wildcard $(1)) $(foreach e, $(wildcard $(1)/*), $(call walk, $(e))) | |
endef | |
ALLFILES = $(call walk, $(LOCAL_PATH)/../../Classes) | |
FILE_LIST := hellocpp/main.cpp | |
FILE_LIST += $(filter %.cpp, $(ALLFILES)) | |
FILE_LIST += $(filter %.c, $(ALLFILES)) | |
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%) | |
FILE_INCLUDES := $(shell find $(LOCAL_PATH)/../../Classes -type d) | |
LOCAL_C_INCLUDES := $(FILE_INCLUDES) | |
LOCAL_STATIC_LIBRARIES := cocos2d_lua_static | |
include $(BUILD_SHARED_LIBRARY) | |
$(call import-module,scripting/lua-bindings/proj.android) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment