From fe34164ee2a90c161c16b00db03f0fa1caac1fbb Mon Sep 17 00:00:00 2001 From: Pyry Kontio Date: Fri, 19 Dec 2014 18:44:03 +0200 Subject: [PATCH] Implemented dependent native project generation to premake script. --- build/Tests.lua | 6 +++++- tests/NamespacesDerived/premake4.lua | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build/Tests.lua b/build/Tests.lua index 7f976f3d..46d01900 100644 --- a/build/Tests.lua +++ b/build/Tests.lua @@ -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) flags { common_flags } files { "**.h", "**.cpp" } + + if depends ~= nil then + links { depends } + end end function LinkNUnit() diff --git a/tests/NamespacesDerived/premake4.lua b/tests/NamespacesDerived/premake4.lua index de66eb52..4715ed5e 100644 --- a/tests/NamespacesDerived/premake4.lua +++ b/tests/NamespacesDerived/premake4.lua @@ -1,2 +1,4 @@ group "Tests/Namespaces" - SetupTestCSharp("NamespacesDerived") \ No newline at end of file + SetupTestGeneratorProject("NamespacesDerived") + SetupTestNativeProject("NamespacesDerived", "NamespacesBase.Native") + SetupTestProjectsCSharp("NamespacesDerived") \ No newline at end of file