Skip to content

Instantly share code, notes, and snippets.

@crimsonwoods
Last active February 14, 2017 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crimsonwoods/e1785da30950509ddc33869fdac7bc87 to your computer and use it in GitHub Desktop.
Save crimsonwoods/e1785da30950509ddc33869fdac7bc87 to your computer and use it in GitHub Desktop.
Sample makefile for building a shared library using mruby for Android.
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)
@texrg
Copy link

texrg commented Feb 14, 2017

how creating libmruby.a for 4 architectures of android?
LOCAL_SRC_FILES is a list of source *.c files not .a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment