mirror of
https://github.com/edo9300/ygopro-core
synced 2026-08-25 16:23:07 -04:00
No longer patch luaconf.h, but rather force include a customization header in every translation unit and only build the actual used libraries, instead of building everything
35 lines
685 B
Lua
35 lines
685 B
Lua
newoption {
|
|
trigger = "lua-apicheck",
|
|
description = "build lua with apicheck support"
|
|
}
|
|
project "lua"
|
|
kind "StaticLib"
|
|
pic "On"
|
|
files { "src/*.c" }
|
|
removefiles {
|
|
"src/lbitlib.c",
|
|
"src/lcorolib.c",
|
|
"src/ldblib.c",
|
|
"src/linit.c",
|
|
"src/loadlib.c",
|
|
"src/loslib.c",
|
|
"src/ltests.c",
|
|
"src/lua.c",
|
|
"src/luac.c",
|
|
"src/lutf8lib.c",
|
|
"src/onelua.c"
|
|
}
|
|
|
|
includedirs { "./" }
|
|
forceincludes { "luaconf-customize.h" }
|
|
if _OPTIONS["lua-apicheck"] then
|
|
defines "LUA_EPRO_APICHECK"
|
|
end
|
|
|
|
filter "configurations:Release"
|
|
optimize "Speed"
|
|
filter "configurations:Debug"
|
|
optimize "Off"
|
|
|
|
filter { "files:**.c" }
|
|
compileas "C++"
|