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