Skip to content

Commit b444a13

Browse files
committed
添加 QuickJS 模块并修复编译问题
1 parent 1a9469c commit b444a13

17 files changed

Lines changed: 68868 additions & 0 deletions
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
LOCAL_PATH := $(call my-dir)
2+
3+
include $(CLEAR_VARS)
4+
5+
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../lua
6+
7+
LOCAL_MODULE := quickjs
8+
9+
LOCAL_SRC_FILES := \
10+
lua_quickjs.c \
11+
quickjs.c \
12+
libregexp.c \
13+
libunicode.c \
14+
cutils.c \
15+
dtoa.c
16+
17+
# --- 编译器标志 ---
18+
# -DCONFIG_BIGNUM=0 用于禁用 BigInt/BigFloat 支持,以减小最终 .so 文件的大小
19+
#LOCAL_CFLAGS := -D_GNU_SOURCE -DCONFIG_BIGNUM=0
20+
21+
LOCAL_STATIC_LIBRARIES := luajava
22+
include $(BUILD_SHARED_LIBRARY)

0 commit comments

Comments
 (0)