Last active
February 14, 2017 15:33
-
-
Save crimsonwoods/e1785da30950509ddc33869fdac7bc87 to your computer and use it in GitHub Desktop.
Sample makefile for building a shared library using mruby for Android.
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 := mruby | |
LOCAL_SRC_FILES := /path/to/your/prebuilt/$(TARGET_ARCH_ABI)/libmruby.a | |
include $(PREBUILT_STATIC_LIBRARY) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := sample | |
LOCAL_SRC_FILES := sample.c | |
LOCAL_C_INCLUDES := /path/to/your/mruby/include | |
LOCAL_STATIC_LIBRARIES := mruby | |
include $(BUILD_SHARED_LIBRARY) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how creating libmruby.a for 4 architectures of android?
LOCAL_SRC_FILES is a list of source *.c files not .a