Browse Source

Implemented dependent native project generation to premake script.

pull/395/head
Pyry Kontio 11 years ago committed by Joao Matos
parent
commit
fe34164ee2
  1. 6
      build/Tests.lua
  2. 4
      tests/NamespacesDerived/premake4.lua

6
build/Tests.lua

@ -68,7 +68,7 @@ function SetupTestGeneratorBuildEvent(name) @@ -68,7 +68,7 @@ function SetupTestGeneratorBuildEvent(name)
end
end
function SetupTestNativeProject(name)
function SetupTestNativeProject(name, depends)
if string.starts(action, "vs") and not os.is_windows() then
return
end
@ -82,6 +82,10 @@ function SetupTestNativeProject(name) @@ -82,6 +82,10 @@ function SetupTestNativeProject(name)
flags { common_flags }
files { "**.h", "**.cpp" }
if depends ~= nil then
links { depends }
end
end
function LinkNUnit()

4
tests/NamespacesDerived/premake4.lua

@ -1,2 +1,4 @@ @@ -1,2 +1,4 @@
group "Tests/Namespaces"
SetupTestCSharp("NamespacesDerived")
SetupTestGeneratorProject("NamespacesDerived")
SetupTestNativeProject("NamespacesDerived", "NamespacesBase.Native")
SetupTestProjectsCSharp("NamespacesDerived")
Loading…
Cancel
Save