This commit is contained in:
SirLynix
2022-12-06 20:10:10 +01:00
committed by Jérôme Leclercq
parent b379518479
commit 292ca60592
34 changed files with 1995 additions and 60 deletions

View File

@@ -939,6 +939,15 @@ namespace
};
}
#ifdef NAZARA_PLUGINS_STATIC
namespace Nz
{
std::unique_ptr<AssimpPlugin> PluginProvider<AssimpPlugin>::Instantiate()
{
return std::make_unique<AssimpPluginImpl>();
}
}
#else
extern "C"
{
NAZARA_EXPORT Nz::PluginInterface* PluginLoad()
@@ -954,3 +963,4 @@ extern "C"
return plugin.release();
}
}
#endif

View File

@@ -4,7 +4,6 @@ if has_config("assimp") then
add_requires("assimp v5.2.3")
target("PluginAssimp")
set_kind("shared")
set_group("Plugins")
add_rpathdirs("$ORIGIN")

View File

@@ -4,7 +4,6 @@ if has_config("ffmpeg") then
add_requires("ffmpeg", { configs = { shared = true } })
target("PluginFFmpeg")
set_kind("shared")
set_group("Plugins")
add_rpathdirs("$ORIGIN")

7
plugins/xmake.lua Normal file
View File

@@ -0,0 +1,7 @@
if has_config("embed_plugins") then
set_kind("static")
else
set_kind("shared")
end
includes("*/xmake.lua")