Skip to content

Commit dad52a2

Browse files
committed
Clean up display paths of generated build project files.
Fixes issue #639. #639
1 parent c54ef69 commit dad52a2

File tree

10 files changed

+25
-5
lines changed

10 files changed

+25
-5
lines changed

build/Tests.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ function SetupTestGeneratorProject(name, depends)
4949
kind "ConsoleApp"
5050

5151
files { name .. ".cs" }
52+
vpaths { ["*"] = "*" }
5253

5354
dependson { name .. ".Native" }
5455

@@ -93,6 +94,7 @@ function SetupTestNativeProject(name, depends)
9394
language "C++"
9495

9596
files { "**.h", "**.cpp" }
97+
vpaths { ["*"] = "*" }
9698

9799
if depends ~= nil then
98100
links { depends .. ".Native" }
@@ -125,6 +127,7 @@ function SetupTestProjectsCSharp(name, depends)
125127
path.join(gendir, name, name .. ".cs"),
126128
path.join(gendir, name, "Std.cs")
127129
}
130+
vpaths { ["*"] = "*" }
128131

129132
linktable = { "CppSharp.Runtime" }
130133

@@ -138,6 +141,8 @@ function SetupTestProjectsCSharp(name, depends)
138141
SetupManagedTestProject()
139142

140143
files { name .. ".Tests.cs" }
144+
vpaths { ["*"] = "*" }
145+
141146
links { name .. ".CSharp", "CppSharp.Generator.Tests" }
142147
dependson { name .. ".Native" }
143148

@@ -171,6 +176,7 @@ function SetupTestProjectsCLI(name, extraFiles)
171176
files { path.join(gendir, name, file .. ".h") }
172177
end
173178
end
179+
vpaths { ["*"] = "*" }
174180

175181
includedirs { path.join(testsdir, name), incdir }
176182
links { name .. ".Native" }
@@ -179,6 +185,8 @@ function SetupTestProjectsCLI(name, extraFiles)
179185
SetupManagedTestProject()
180186

181187
files { name .. ".Tests.cs" }
188+
vpaths { ["*"] = "*" }
189+
182190
links { name .. ".CLI", "CppSharp.Generator.Tests" }
183191
dependson { name .. ".Native" }
184192

src/AST/premake5.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ project "CppSharp.AST"
66
SetupManagedProject()
77

88
files { "*.cs" }
9+
vpaths { ["*"] = "*" }
10+
911
links { "System", "System.Core" }

src/CLI/premake5.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ project "CppSharp.CLI"
66
language "C#"
77

88
files { "**.cs" }
9+
vpaths { ["*"] = "*" }
10+
911
links
1012
{
1113
"System",

src/Core/premake5.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ project "CppSharp"
77
clr "Unsafe"
88

99
files { "**.cs" }
10+
vpaths { ["*"] = "*" }
11+
1012
links
1113
{
1214
"System",

src/CppParser/Bindings/CSharp/premake5.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ project "CppSharp.Parser.CSharp"
88

99
dependson { "CppSharp.CppParser" }
1010

11-
files
12-
{
13-
"**.lua"
14-
}
11+
files { "**.lua" }
12+
vpaths { ["*"] = "*" }
1513

1614
links { "CppSharp.Runtime" }
1715

src/CppParser/ParserGen/premake5.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ project "CppSharp.Parser.Gen"
66
debugdir "."
77

88
files { "ParserGen.cs", "*.lua" }
9+
vpaths { ["*"] = "*" }
10+
911
links
1012
{
1113
"CppSharp",

src/Generator.Tests/premake5.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ project "CppSharp.Generator.Tests"
44
SetupManagedProject()
55

66
files { "**.cs" }
7-
7+
vpaths { ["*"] = "*" }
8+
89
libdirs
910
{
1011
depsdir .. "/NUnit",

src/Generator/premake5.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ project "CppSharp.Generator"
77

88
files { "**.cs", "**verbs.txt" }
99
excludes { "Filter.cs" }
10+
vpaths { ["*"] = "*" }
1011

1112
links
1213
{

src/Parser/premake5.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ project "CppSharp.Parser"
77
clr "Unsafe"
88

99
files { "**.cs" }
10+
vpaths { ["*"] = "*" }
11+
1012
links
1113
{
1214
"System",

src/Runtime/premake5.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ project "CppSharp.Runtime"
66
clr "Unsafe"
77

88
files { "**.cs" }
9+
vpaths { ["*"] = "*" }
10+
911
links { "System" }
1012

1113
configuration "vs*"

0 commit comments

Comments
 (0)