Skip to content

Commit 14739ba

Browse files
author
Mohit Sethi
committed
[BuildConfig] Use BinDir.Mono for copying files
1 parent d44f3c4 commit 14739ba

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

Arc-Editor/premake5.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ project "Arc-Editor"
8484
symbols "on"
8585
postbuildcommands
8686
{
87-
'{COPY} "../Arc/vendor/mono/bin/Debug/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
87+
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
8888
}
8989

9090
filter "configurations:Release"
@@ -93,7 +93,7 @@ project "Arc-Editor"
9393
optimize "speed"
9494
postbuildcommands
9595
{
96-
'{COPY} "../Arc/vendor/mono/bin/Release/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
96+
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
9797
}
9898

9999
filter "configurations:Dist"
@@ -103,5 +103,5 @@ project "Arc-Editor"
103103
symbols "off"
104104
postbuildcommands
105105
{
106-
'{COPY} "../Arc/vendor/mono/bin/Release/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
106+
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
107107
}

Arc/premake5.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ project "Arc"
102102
symbols "on"
103103
postbuildcommands
104104
{
105-
'{COPY} "../Arc/vendor/mono/bin/Debug/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
105+
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
106106
}
107107

108108
filter "configurations:Release"
@@ -111,7 +111,7 @@ project "Arc"
111111
optimize "speed"
112112
postbuildcommands
113113
{
114-
'{COPY} "../Arc/vendor/mono/bin/Release/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
114+
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
115115
}
116116

117117
filter "configurations:Dist"
@@ -121,5 +121,5 @@ project "Arc"
121121
symbols "off"
122122
postbuildcommands
123123
{
124-
'{COPY} "../Arc/vendor/mono/bin/Release/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
124+
'{COPY} "%{BinDir.Mono}/mono-2.0-sgen.dll" "%{cfg.targetdir}"',
125125
}

premake5.lua

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,16 @@ filter "configurations:Release"
5252
LibDir["Mono"] = "%{wks.location}/Arc/vendor/mono/lib/Release"
5353
filter "configurations:Dist"
5454
LibDir["Mono"] = "%{wks.location}/Arc/vendor/mono/lib/Release"
55-
55+
56+
-- Bin directories relavtive to root folder (solution directory)
57+
BinDir = {}
58+
filter "configurations:Debug"
59+
BinDir["Mono"] = "%{wks.location}/Arc/vendor/mono/bin/Debug"
60+
filter "configurations:Release"
61+
BinDir["Mono"] = "%{wks.location}/Arc/vendor/mono/bin/Release"
62+
filter "configurations:Dist"
63+
BinDir["Mono"] = "%{wks.location}/Arc/vendor/mono/bin/Release"
64+
5665
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}";
5766

5867
-- Include directories relavtive to root folder (solution directory)

0 commit comments

Comments
 (0)