Browse Source

Fixed examples build functions.

pull/86/head
triton 12 years ago
parent
commit
1593cb882d
  1. 17
      build/Tests.lua
  2. 10
      examples/SDL/premake4.lua

17
build/Tests.lua

@ -1,8 +1,18 @@ @@ -1,8 +1,18 @@
-- Tests/examples helpers
function SetupExampleProject()
SetupNativeProjects()
location (path.join(builddir, "deps"))
kind "ConsoleApp"
language "C#"
debugdir "."
files { "**.cs", "./*.lua" }
links { "CppSharp.AST", "CppSharp.Generator" }
SetupParser()
location (path.join(builddir, "projects"))
configuration "vs*"
location "."
end
function SetupTestProject(name, file, lib)
@ -41,8 +51,9 @@ function SetupTestGeneratorProject(name) @@ -41,8 +51,9 @@ function SetupTestGeneratorProject(name)
{
"CppSharp.AST",
"CppSharp.Generator",
"CppSharp.Parser",
}
SetupParser()
end
function SetupTestGeneratorBuildEvent(name)

10
examples/SDL/premake4.lua

@ -1,13 +1,5 @@ @@ -1,13 +1,5 @@
project "SDL"
kind "ConsoleApp"
language "C#"
location "."
debugdir "."
files { "**.cs", "./*.lua" }
links { "CppSharp.AST", "CppSharp.Generator" }
SetupExampleProject()
if config.ExampleTests then

Loading…
Cancel
Save