Add vanilla Lua submodule;

This needs testing on other platforms.
This commit is contained in:
bjorn 2021-03-22 20:12:48 -06:00
parent 49f02c65d8
commit 121e0fde4c
3 changed files with 11 additions and 2 deletions

2
.gitmodules vendored
View File

@ -3,7 +3,7 @@
url = https://github.com/glfw/glfw
[submodule "deps/lua"]
path = deps/lua
url = https://github.com/LuaDist/lua
url = https://github.com/lua/lua
[submodule "deps/msdfgen"]
path = deps/msdfgen
url = https://github.com/bjornbytes/msdfgen

View File

@ -110,7 +110,15 @@ else()
include_directories(${LUA_INCLUDE_DIRS})
set(LOVR_LUA ${LUA_LIBRARIES})
else()
message(FATAL_ERROR "Vanillua does not work on this commit")
set(LUA_SRC
lapi.c lauxlib.c lbaselib.c lcode.c ldblib.c ldebug.c ldo.c ldump.c lfunc.c lgc.c linit.c
liolib.c llex.c lmathlib.c lmem.c loadlib.c lobject.c lopcodes.c loslib.c lparser.c lstate.c
lstring.c lstrlib.c ltable.c ltablib.c ltm.c lundump.c lvm.c lzio.c
)
list(TRANSFORM LUA_SRC PREPEND deps/lua/)
add_library(lua SHARED ${LUA_SRC})
include_directories(deps/lua)
set(LOVR_LUA lua)
endif()
endif()

1
deps/lua vendored Submodule

@ -0,0 +1 @@
Subproject commit 69ea087dff1daba25a2000dfb8f1883c17545b7a