From 885804e58a6afa55b2cd66e4f7eba786b81ec37e Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 20 Aug 2017 21:37:45 +0200 Subject: [PATCH] Disable PremakeProject for non-Windows OSes --- build/config.lua | 3 +-- build/scripts/common.lua | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build/config.lua b/build/config.lua index b644423b3..5779dbea6 100644 --- a/build/config.lua +++ b/build/config.lua @@ -16,8 +16,7 @@ Configurations = "Debug,Release" -- "Debug,Release,ReleaseWithDebug" -- Setup additionnals install directories, separated by a semi-colon ; (library binaries will be copied there) --InstallDir = "/usr/local/lib64" --- Adds a project which will recall premake with its original arguments when built -PremakeProject = true +-- Adds a project which will recall premake with its original arguments when built (only works on Windows for now) -- Excludes client-only modules/tools/examples ServerMode = false diff --git a/build/scripts/common.lua b/build/scripts/common.lua index 220d2084b..7eac1a714 100644 --- a/build/scripts/common.lua +++ b/build/scripts/common.lua @@ -128,7 +128,7 @@ function NazaraBuild:Execute() language("C++") location(_ACTION) - if (self.Config["PremakeProject"]) then + if (self.Config["PremakeProject"] && os.is("windows")) then local commandLine = "premake5.exe " .. table.concat(_ARGV, ' ') project("_PremakeProject") kind("Utility")