From f290ec014f49bd3981f8b024db178d8c085011c7 Mon Sep 17 00:00:00 2001 From: DamianEdwards Date: Wed, 2 Jul 2014 14:38:52 -0700 Subject: [PATCH] Change native-compile to no-op if no native projects found - #93 --- build/_k-standard-goals.shade | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/build/_k-standard-goals.shade b/build/_k-standard-goals.shade index 494eed99a4..88c744ceed 100644 --- a/build/_k-standard-goals.shade +++ b/build/_k-standard-goals.shade @@ -46,18 +46,21 @@ default Configuration='Release' var nativeProjects ='${Files.Include(Path.Combine(BASE_DIR, "src", "**", "*.vcxproj"))}' @{ - if(!File.Exists(msbuild)) + if (nativeProjects.Any()) { - Log.Warn("msbuild version 12 not found. Please ensure you have the VS 2013 C++ SDK installed."); - Environment.Exit(1); - } - else - { - foreach (var project in nativeProjects) - { - Exec(msbuild, project + " /p:Configuration=" + Configuration + ";Platform=Win32"); - Exec(msbuild, project + " /p:Configuration=" + Configuration + ";Platform=x64"); - } + if (!File.Exists(msbuild)) + { + Log.Warn("msbuild version 12 not found. Please ensure you have the VS 2013 C++ SDK installed."); + Environment.Exit(1); + } + else + { + foreach (var project in nativeProjects) + { + Exec(msbuild, project + " /p:Configuration=" + Configuration + ";Platform=Win32"); + Exec(msbuild, project + " /p:Configuration=" + Configuration + ";Platform=x64"); + } + } } }