summaryrefslogtreecommitdiff
path: root/core/src/demo
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-18 00:53:16 +0800
committerruki <[email protected]>2021-09-18 00:53:16 +0800
commiteb826246511e2afca394302aecccdf18d02a297f (patch)
tree93cf7403e809670a594225774a4a39f82b5de0c7 /core/src/demo
parent56393682b43020adcff47de00fe7a011ba5f1584 (diff)
fix compile for lua
Diffstat (limited to 'core/src/demo')
-rw-r--r--core/src/demo/makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/demo/makefile b/core/src/demo/makefile
index 1a2142db5..93525ddaf 100644
--- a/core/src/demo/makefile
+++ b/core/src/demo/makefile
@@ -20,10 +20,20 @@ demo_INC_DIRS += ../ ../tbox/tbox/src ../tbox/inc/$(PLAT)
demo_LIB_DIRS += ../tbox
# luajit
+ifeq ($(BACKEND),luajit)
luajit_LIBS := $(if $(findstring luajit,$(base_LIBNAMES)),,luajit$(DTYPE))
demo_LIBS += $(luajit_LIBS)
demo_INC_DIRS += ../luajit/luajit/src
demo_LIB_DIRS += ../luajit
+endif
+
+# lua
+ifeq ($(BACKEND),lua)
+lua_LIBS := $(if $(findstring lua,$(base_LIBNAMES)),,lua$(DTYPE))
+demo_LIBS += $(lua_LIBS)
+demo_INC_DIRS += ../lua/lua
+demo_LIB_DIRS += ../lua
+endif
# sv
sv_DTYPE := $(if $(findstring sv,$(base_LIBNAMES)),,$(DTYPE))