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

10
examples/SDL/premake4.lua

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

Loading…
Cancel
Save