Commit 72e15045 authored by Chen Bill's avatar Chen Bill Committed by GitHub

update premake5.lua of Lua (#740)

* use compileas

* add cppdialect to dll.lua

* remove src/onelua.c
parent 95c21ab3
...@@ -68,6 +68,7 @@ include(LUA_DIR) ...@@ -68,6 +68,7 @@ include(LUA_DIR)
project "ocgcore" project "ocgcore"
kind "SharedLib" kind "SharedLib"
cppdialect "C++14"
files { "*.cpp", "*.h" } files { "*.cpp", "*.h" }
links { "lua" } links { "lua" }
......
project "lua" project "lua"
kind "StaticLib" kind "StaticLib"
cppdialect "C++14" compileas "C++"
files { "src/*.c", "src/*.h", "src/*.hpp" } files { "src/*.c", "src/*.h" }
removefiles { "src/lua.c", "src/luac.c" } removefiles { "src/lua.c", "src/luac.c", "src/linit.c", "src/onelua.c" }
filter "action:vs*"
buildoptions { "/TP" }
filter "not action:vs*"
buildoptions { "-x c++" }
filter "configurations:Debug" filter "configurations:Debug"
defines { "LUA_USE_APICHECK" } defines { "LUA_USE_APICHECK" }
......
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