Commit f68a3c60 authored by nanahira's avatar nanahira

Update ocgapi.h, premake/dll.lua files

parent cd8598dd
Pipeline #35860 canceled with stages
in 2 minutes and 8 seconds
......@@ -12,6 +12,8 @@
#ifdef WIN32
#define DECL_DLLEXPORT __declspec(dllexport)
#elif defined(YGOPRO_VISIBILITY_DEFAULT)
#define DECL_DLLEXPORT __attribute__((visibility("default")))
#else
#define DECL_DLLEXPORT
#endif
......
......@@ -73,13 +73,14 @@ workspace "ocgcoredll"
defines { "LUA_USE_MACOSX" }
filter "system:linux"
defines { "LUA_USE_LINUX" }
buildoptions { "-fPIC" }
defines { "LUA_USE_LINUX", "YGOPRO_VISIBILITY_DEFAULT" }
pic "On"
buildoptions { "-fvisibility=hidden" }
linkoptions { "-static-libstdc++", "-static-libgcc" }
filter "system:emscripten"
defines { "LUA_USE_LONGJMP", "LUA_USE_C89" }
buildoptions { "-fPIC" }
pic "On"
filter {}
......@@ -113,11 +114,9 @@ project "sqlite3"
systemversion "latest"
defines { "SQLITE_API=__declspec(dllexport)" }
filter "system:linux or system:macosx"
pic "On"
filter "system:linux"
linkoptions { "-static-libstdc++", "-static-libgcc" }
defines { 'SQLITE_API=__attribute__((visibility("default")))' }
filter "configurations:Debug"
symbols "On"
......
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