Files
yugioh-legacy-engine/core/premake5.lua
T
donnyandClaude Fable 5.1 8945edc9e2 build: the server workspace builds the core from ../core
There is one copy of the core in this repo. The server's premake includes
../core instead of its old ocgcore submodule, gframe takes its headers
from there, and the core's premake takes the Lua include dir the server
workspace resolves (LUA_INCLUDE_DIR) instead of assuming a sibling lua/.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-14 20:59:29 -07:00

39 lines
855 B
Lua

project "ocgcore"
if OCGCORE_DYNAMIC then
kind "SharedLib"
links { LUA_LIB_NAME }
libdirs { LUA_LIB_DIR }
else
kind "StaticLib"
end
files { "*.cpp", "*.h" }
if BUILD_LUA then
includedirs { LUA_INCLUDE_DIR or "../lua/src" }
else
includedirs { LUA_INCLUDE_DIR }
end
filter "not action:vs*"
cppdialect "C++14"
filter "system:bsd"
defines { "LUA_USE_POSIX" }
filter "system:macosx"
defines { "LUA_USE_MACOSX" }
filter "system:android"
defines { "LUA_USE_POSIX" }
if OCGCORE_DYNAMIC then
pic "On"
end
filter "system:linux"
defines { "LUA_USE_LINUX" }
if OCGCORE_DYNAMIC then
pic "On"
-- linkoptions { "-static-libstdc++", "-static-libgcc" }
end