Commit e80d151a authored by DailyShana's avatar DailyShana

remove lua source

parent 3b4eca94
......@@ -3,6 +3,10 @@ project (ocgcore)
set (AUTO_FILES_RESULT)
AutoFiles("." "src" "\\.(cpp|c|h)$")
include_directories ( ../lua )
if (MSVC)
include_directories ( ../lua )
else ()
include_directories ( ${LUA_INCLUDE_DIR} )
endif ()
add_library (ocgcore STATIC ${AUTO_FILES_RESULT})
......@@ -26,7 +26,7 @@ interpreter::interpreter(duel* pd): coroutines(256) {
lua_setglobal(lua_state, "io");
lua_pushnil(lua_state);
lua_setglobal(lua_state, "os");
luaL_getsubtable(lua_state, LUA_REGISTRYINDEX, LUA_LOADED_TABLE);
luaL_getsubtable(lua_state, LUA_REGISTRYINDEX, "_LOADED");
lua_pushnil(lua_state);
lua_setfield(lua_state, -2, "io");
lua_pushnil(lua_state);
......
......@@ -2,6 +2,9 @@ project "ocgcore"
kind "StaticLib"
files { "**.cc", "**.cpp", "**.c", "**.h" }
includedirs { "../lua" }
configuration "windows"
includedirs { "../lua" }
configuration "not vs*"
buildoptions { "-std=c++14" }
configuration "not windows"
includedirs { "/usr/include/lua5.3" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment