Files
yugioh-legacy-engine/core/premake5.lua
T
donnyandClaude Fable 5.1 26f9baf9b4 core: import the rules core (ygopro-core 973672dc + fork patches)
The vendored ocgcore from the Unity repo (Tools/YGOLegacy/ocgcore at dev
HEAD). Upstream is nanahira/ygopro-core at 973672dc9ce7cb49f47173277ab1ad0e318b7593;
the seven files that differ from it carry the fork's core patches, already
applied: 0001 face-down Token setcode, 0004 effect damage step outside a
chain, 0008 Sandbox god mode, 0015 tag first seat holds the hand, 0022
attack preview, 0024 attack preview legality. Generated build/ output is
left out.

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

39 lines
836 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/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