diff --git a/SDK/include/NDK/Prerequesites.hpp b/SDK/include/NDK/Prerequesites.hpp index f3532c70d..ec40a17d8 100644 --- a/SDK/include/NDK/Prerequesites.hpp +++ b/SDK/include/NDK/Prerequesites.hpp @@ -33,7 +33,7 @@ // Importation/Exportation of the API #if defined(NAZARA_PLATFORM_WINDOWS) - #if !defined(NDK_STATIC) + #if !defined(NAZARA_STATIC) #ifdef NDK_BUILD #define NDK_API NAZARA_EXPORT #else @@ -43,7 +43,7 @@ #define NDK_API #endif #elif defined(NAZARA_PLATFORM_LINUX) - #if !defined(NDK_STATIC) && defined(NAZARA_COMPILER_GCC) + #if !defined(NAZARA_STATIC) && defined(NAZARA_COMPILER_GCC) #define NDK_API NAZARA_EXPORT #else #define NDK_API diff --git a/build/scripts/common.lua b/build/scripts/common.lua index cf6fa6560..e6f231960 100644 --- a/build/scripts/common.lua +++ b/build/scripts/common.lua @@ -228,6 +228,7 @@ function NazaraBuild:Execute() targetdir("../lib/xcode/x64") configuration("*Static") + defines("NAZARA_STATIC") kind("StaticLib") configuration("*Dynamic") @@ -357,6 +358,9 @@ function NazaraBuild:Execute() targetdir("../plugins/" .. toolTable.Name .. "/lib/xcode/x64") end + configuration("*Static") + defines("NAZARA_STATIC") + if (toolTable.Kind == "library" or toolTable.Kind == "plugin") then configuration("*Static") kind("StaticLib") @@ -705,7 +709,7 @@ function NazaraBuild:MakeInstallCommands(infoTable) end if (os.is("windows")) then - configuration({}) + configuration("*Dynamic") for k,v in pairs(self.InstallDir) do local destPath = path.translate(path.isabsolute(k) and k or "../../" .. k)