summaryrefslogtreecommitdiff
path: root/core/src/lua-cjson
diff options
context:
space:
mode:
authorruki <[email protected]>2021-06-30 22:40:57 +0800
committerruki <[email protected]>2021-06-30 22:40:57 +0800
commit88ab7bebc40bc91bbfd91b565be2236ebd8c5e72 (patch)
treea7fb4c94856f5381a8fb1fb4142e48162879c28d /core/src/lua-cjson
parent46fd1844fc7a5456c4cd56bc2c251ed635d037ca (diff)
use system lua-cjson
Diffstat (limited to 'core/src/lua-cjson')
-rw-r--r--core/src/lua-cjson/makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/src/lua-cjson/makefile b/core/src/lua-cjson/makefile
index 8a95507ba..9e96851ae 100644
--- a/core/src/lua-cjson/makefile
+++ b/core/src/lua-cjson/makefile
@@ -25,11 +25,9 @@ lua-cjson_CFLAGS += -DNDEBUG -DUSE_INTERNAL_FPCONV
lua-cjson_INC_DIRS += \
../luajit/luajit/src
-# use given lua-cjson library?
-ifdef LUA_CJSON_LIBS
-lua-cjson_C_FILES :=
-lua-cjson_INC_DIRS :=
-endif
+# use given system library?
+lua-cjson_C_FILES := $(if $(findstring cjson,$(base_LIBNAMES)),,$(lua-cjson_C_FILES))
+lua-cjson_INC_FILES := $(if $(findstring cjson,$(base_LIBNAMES)),,$(lua-cjson_INC_FILES))
# suffix
include $(PRO_DIR)/suffix.mak