From 1593cb882da4b59b13a3f7afb11938ebdff8d258 Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 25 Oct 2013 02:10:04 +0100 Subject: [PATCH] Fixed examples build functions. --- build/Tests.lua | 17 ++++++++++++++--- examples/SDL/premake4.lua | 10 +--------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/build/Tests.lua b/build/Tests.lua index 7093f9a5..a3538dcd 100644 --- a/build/Tests.lua +++ b/build/Tests.lua @@ -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) { "CppSharp.AST", "CppSharp.Generator", - "CppSharp.Parser", } + + SetupParser() end function SetupTestGeneratorBuildEvent(name) diff --git a/examples/SDL/premake4.lua b/examples/SDL/premake4.lua index ebe37687..bd3985c9 100644 --- a/examples/SDL/premake4.lua +++ b/examples/SDL/premake4.lua @@ -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