Skip to content

Commit

Permalink
add support for using an already compiled LuaJIT
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and Frenzie committed Aug 7, 2024
1 parent 98640d7 commit 269ad5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jni/luajit/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := luajit
ifeq (,$(and $(LUAJIT_INC),$(LUAJIT_LIB)))
LOCAL_SRC_FILES := build/$(TARGET_ARCH_ABI)/lib/libluajit.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/build/$(TARGET_ARCH_ABI)/include/luajit-2.1
else
LOCAL_SRC_FILES := $(LUAJIT_LIB)
LOCAL_EXPORT_C_INCLUDES := $(LUAJIT_INC)
endif

include $(PREBUILT_SHARED_LIBRARY)

0 comments on commit 269ad5d

Please sign in to comment.