diff --git a/src/premake5.lua b/src/premake5.lua index d915354b..ddf3e513 100644 --- a/src/premake5.lua +++ b/src/premake5.lua @@ -78,13 +78,18 @@ project "tribufu_cpp" links { - "hv.lib" + "hv.lib", } prelinkcommands { } + postbuildcommands + { + "{COPYFILE} ../vendor/libhv/lib/%{cfg.platform:gsub('-', '/')}/hv.dll %{cfg.targetdir}/hv.dll", + } + filter { "platforms:mac-*" } kind "SharedLib" system "macosx" @@ -109,6 +114,10 @@ project "tribufu_cpp" { } + postbuildcommands + { + } + filter { "platforms:linux-*" } kind "SharedLib" system "linux" @@ -132,6 +141,10 @@ project "tribufu_cpp" { } + postbuildcommands + { + } + filter { "platforms:android-*" } kind "SharedLib" system "android" @@ -155,6 +168,10 @@ project "tribufu_cpp" { } + postbuildcommands + { + } + filter { "platforms:ios-*" } kind "StaticLib" system "ios"