Browse Source

Updated build scripts for test projects to call the generator as a pre-build event.

pull/40/merge
triton 12 years ago
parent
commit
b856fada62
  1. 4
      build/Helpers.lua
  2. 7
      build/Tests.lua

4
build/Helpers.lua

@ -19,6 +19,10 @@ gcc_buildflags = { "-std=gnu++11" } @@ -19,6 +19,10 @@ gcc_buildflags = { "-std=gnu++11" }
msvc_cpp_defines = { }
function SafePath(path)
return "\"" .. path .. "\""
end
function SetupNativeProject()
location (path.join(builddir, "projects"))

7
build/Tests.lua

@ -55,6 +55,11 @@ function LinkNUnit() @@ -55,6 +55,11 @@ function LinkNUnit()
}
end
function SetupTestGen(name)
local exePath = SafePath("$(TargetDir)" .. name .. ".Gen.exe")
prebuildcommands { exePath }
end
function SetupTestProjects(name, file, lib)
project(name .. ".CSharp")
@ -64,6 +69,7 @@ function SetupTestProjects(name, file, lib) @@ -64,6 +69,7 @@ function SetupTestProjects(name, file, lib)
flags { "Unsafe" }
dependson { name .. ".Gen" }
SetupTestGen(name)
files
{
@ -77,6 +83,7 @@ function SetupTestProjects(name, file, lib) @@ -77,6 +83,7 @@ function SetupTestProjects(name, file, lib)
flags { "Managed" }
dependson { name .. ".Gen" }
SetupTestGen(name)
files
{

Loading…
Cancel
Save