Skip to content

Instantly share code, notes, and snippets.

@rumplestilzken
Created March 1, 2022 23:39
Show Gist options
  • Save rumplestilzken/787b6525a7e2bb38dc0a5202306a4b7c to your computer and use it in GitHub Desktop.
Save rumplestilzken/787b6525a7e2bb38dc0a5202306a4b7c to your computer and use it in GitHub Desktop.
Android.mk used to compile lua as a static library, tested compiling SDL android
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := lua
LOCAL_CFLAGS := -DLUA_ANSI
LOCAL_SRC_FILES := \
$(subst $(LOCAL_PATH)/,, \
$(wildcard $(LOCAL_PATH)/*.c))
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
include $(BUILD_STATIC_LIBRARY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment