Commit d40e9c53 authored by nanahira's avatar nanahira

Update premake5.lua, gframe/serverapi.h, gframe/premake5.lua files

parent 6f28e7b0
Pipeline #35861 canceled with stages
in 8 minutes and 29 seconds
...@@ -148,6 +148,9 @@ end ...@@ -148,6 +148,9 @@ end
links { "irrklang" } links { "irrklang" }
end end
filter "system:linux" filter "system:linux"
if SERVER_PRO3_SUPPORT then
defines { "YGOPRO_VISIBILITY_DEFAULT" }
end
linkoptions { "-static-libstdc++", "-static-libgcc" } linkoptions { "-static-libstdc++", "-static-libgcc" }
if not SERVER_MODE then if not SERVER_MODE then
links { "GL", "X11", "Xxf86vm" } links { "GL", "X11", "Xxf86vm" }
......
...@@ -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
......
...@@ -424,6 +424,9 @@ end ...@@ -424,6 +424,9 @@ end
filter "system:linux" filter "system:linux"
buildoptions { "-U_FORTIFY_SOURCE" } buildoptions { "-U_FORTIFY_SOURCE" }
if SERVER_PRO3_SUPPORT then
buildoptions { "-fvisibility=hidden" }
end
filter "configurations:Release" filter "configurations:Release"
optimize "Speed" optimize "Speed"
......
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