Browse Source

Clean up display paths of generated build project files.

Fixes issue #639. https://github.com/mono/CppSharp/issues/639
pull/754/head
Joao Matos 9 years ago
parent
commit
dad52a2d5b
  1. 8
      build/Tests.lua
  2. 2
      src/AST/premake5.lua
  3. 2
      src/CLI/premake5.lua
  4. 2
      src/Core/premake5.lua
  5. 6
      src/CppParser/Bindings/CSharp/premake5.lua
  6. 2
      src/CppParser/ParserGen/premake5.lua
  7. 3
      src/Generator.Tests/premake5.lua
  8. 1
      src/Generator/premake5.lua
  9. 2
      src/Parser/premake5.lua
  10. 2
      src/Runtime/premake5.lua

8
build/Tests.lua

@ -49,6 +49,7 @@ function SetupTestGeneratorProject(name, depends) @@ -49,6 +49,7 @@ function SetupTestGeneratorProject(name, depends)
kind "ConsoleApp"
files { name .. ".cs" }
vpaths { ["*"] = "*" }
dependson { name .. ".Native" }
@ -93,6 +94,7 @@ function SetupTestNativeProject(name, depends) @@ -93,6 +94,7 @@ function SetupTestNativeProject(name, depends)
language "C++"
files { "**.h", "**.cpp" }
vpaths { ["*"] = "*" }
if depends ~= nil then
links { depends .. ".Native" }
@ -125,6 +127,7 @@ function SetupTestProjectsCSharp(name, depends) @@ -125,6 +127,7 @@ function SetupTestProjectsCSharp(name, depends)
path.join(gendir, name, name .. ".cs"),
path.join(gendir, name, "Std.cs")
}
vpaths { ["*"] = "*" }
linktable = { "CppSharp.Runtime" }
@ -138,6 +141,8 @@ function SetupTestProjectsCSharp(name, depends) @@ -138,6 +141,8 @@ function SetupTestProjectsCSharp(name, depends)
SetupManagedTestProject()
files { name .. ".Tests.cs" }
vpaths { ["*"] = "*" }
links { name .. ".CSharp", "CppSharp.Generator.Tests" }
dependson { name .. ".Native" }
@ -171,6 +176,7 @@ function SetupTestProjectsCLI(name, extraFiles) @@ -171,6 +176,7 @@ function SetupTestProjectsCLI(name, extraFiles)
files { path.join(gendir, name, file .. ".h") }
end
end
vpaths { ["*"] = "*" }
includedirs { path.join(testsdir, name), incdir }
links { name .. ".Native" }
@ -179,6 +185,8 @@ function SetupTestProjectsCLI(name, extraFiles) @@ -179,6 +185,8 @@ function SetupTestProjectsCLI(name, extraFiles)
SetupManagedTestProject()
files { name .. ".Tests.cs" }
vpaths { ["*"] = "*" }
links { name .. ".CLI", "CppSharp.Generator.Tests" }
dependson { name .. ".Native" }

2
src/AST/premake5.lua

@ -6,4 +6,6 @@ project "CppSharp.AST" @@ -6,4 +6,6 @@ project "CppSharp.AST"
SetupManagedProject()
files { "*.cs" }
vpaths { ["*"] = "*" }
links { "System", "System.Core" }

2
src/CLI/premake5.lua

@ -6,6 +6,8 @@ project "CppSharp.CLI" @@ -6,6 +6,8 @@ project "CppSharp.CLI"
language "C#"
files { "**.cs" }
vpaths { ["*"] = "*" }
links
{
"System",

2
src/Core/premake5.lua

@ -7,6 +7,8 @@ project "CppSharp" @@ -7,6 +7,8 @@ project "CppSharp"
clr "Unsafe"
files { "**.cs" }
vpaths { ["*"] = "*" }
links
{
"System",

6
src/CppParser/Bindings/CSharp/premake5.lua

@ -8,10 +8,8 @@ project "CppSharp.Parser.CSharp" @@ -8,10 +8,8 @@ project "CppSharp.Parser.CSharp"
dependson { "CppSharp.CppParser" }
files
{
"**.lua"
}
files { "**.lua" }
vpaths { ["*"] = "*" }
links { "CppSharp.Runtime" }

2
src/CppParser/ParserGen/premake5.lua

@ -6,6 +6,8 @@ project "CppSharp.Parser.Gen" @@ -6,6 +6,8 @@ project "CppSharp.Parser.Gen"
debugdir "."
files { "ParserGen.cs", "*.lua" }
vpaths { ["*"] = "*" }
links
{
"CppSharp",

3
src/Generator.Tests/premake5.lua

@ -4,7 +4,8 @@ project "CppSharp.Generator.Tests" @@ -4,7 +4,8 @@ project "CppSharp.Generator.Tests"
SetupManagedProject()
files { "**.cs" }
vpaths { ["*"] = "*" }
libdirs
{
depsdir .. "/NUnit",

1
src/Generator/premake5.lua

@ -7,6 +7,7 @@ project "CppSharp.Generator" @@ -7,6 +7,7 @@ project "CppSharp.Generator"
files { "**.cs", "**verbs.txt" }
excludes { "Filter.cs" }
vpaths { ["*"] = "*" }
links
{

2
src/Parser/premake5.lua

@ -7,6 +7,8 @@ project "CppSharp.Parser" @@ -7,6 +7,8 @@ project "CppSharp.Parser"
clr "Unsafe"
files { "**.cs" }
vpaths { ["*"] = "*" }
links
{
"System",

2
src/Runtime/premake5.lua

@ -6,6 +6,8 @@ project "CppSharp.Runtime" @@ -6,6 +6,8 @@ project "CppSharp.Runtime"
clr "Unsafe"
files { "**.cs" }
vpaths { ["*"] = "*" }
links { "System" }
configuration "vs*"

Loading…
Cancel
Save