From 269ad5dcb1a7cee1f5bb970b23a6b10264d86548 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Wed, 7 Aug 2024 21:40:55 +0200 Subject: [PATCH] add support for using an already compiled LuaJIT --- jni/luajit/Android.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jni/luajit/Android.mk b/jni/luajit/Android.mk index ac916b9cb..6084f8c9d 100644 --- a/jni/luajit/Android.mk +++ b/jni/luajit/Android.mk @@ -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)