Skip to content

Commit

Permalink
[BuildConfig] Use BinDir.Mono for copying files
Browse files Browse the repository at this point in the history
  • Loading branch information
GloriousPtr committed Mar 10, 2023
1 parent d44f3c4 commit 14739ba
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Arc-Editor/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ project "Arc-Editor"
symbols "on"
postbuildcommands
{
'{COPY} "../Arc/vendor/mono/bin/Debug/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
}

filter "configurations:Release"
Expand All @@ -93,7 +93,7 @@ project "Arc-Editor"
optimize "speed"
postbuildcommands
{
'{COPY} "../Arc/vendor/mono/bin/Release/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
}

filter "configurations:Dist"
Expand All @@ -103,5 +103,5 @@ project "Arc-Editor"
symbols "off"
postbuildcommands
{
'{COPY} "../Arc/vendor/mono/bin/Release/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
}
6 changes: 3 additions & 3 deletions Arc/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ project "Arc"
symbols "on"
postbuildcommands
{
'{COPY} "../Arc/vendor/mono/bin/Debug/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
}

filter "configurations:Release"
Expand All @@ -111,7 +111,7 @@ project "Arc"
optimize "speed"
postbuildcommands
{
'{COPY} "../Arc/vendor/mono/bin/Release/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
}

filter "configurations:Dist"
Expand All @@ -121,5 +121,5 @@ project "Arc"
symbols "off"
postbuildcommands
{
'{COPY} "../Arc/vendor/mono/bin/Release/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
}
11 changes: 10 additions & 1 deletion premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@ filter "configurations:Release"
LibDir["Mono"] = "%{wks.location}/Arc/vendor/mono/lib/Release"
filter "configurations:Dist"
LibDir["Mono"] = "%{wks.location}/Arc/vendor/mono/lib/Release"


-- Bin directories relavtive to root folder (solution directory)
BinDir = {}
filter "configurations:Debug"
BinDir["Mono"] = "%{wks.location}/Arc/vendor/mono/bin/Debug"
filter "configurations:Release"
BinDir["Mono"] = "%{wks.location}/Arc/vendor/mono/bin/Release"
filter "configurations:Dist"
BinDir["Mono"] = "%{wks.location}/Arc/vendor/mono/bin/Release"

outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}";

-- Include directories relavtive to root folder (solution directory)
Expand Down

0 comments on commit 14739ba

Please sign in to comment.