Disable PremakeProject for non-Windows OSes
This commit is contained in:
parent
f363420ebe
commit
885804e58a
|
|
@ -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)
|
-- Setup additionnals install directories, separated by a semi-colon ; (library binaries will be copied there)
|
||||||
--InstallDir = "/usr/local/lib64"
|
--InstallDir = "/usr/local/lib64"
|
||||||
|
|
||||||
-- Adds a project which will recall premake with its original arguments when built
|
-- Adds a project which will recall premake with its original arguments when built (only works on Windows for now)
|
||||||
PremakeProject = true
|
|
||||||
|
|
||||||
-- Excludes client-only modules/tools/examples
|
-- Excludes client-only modules/tools/examples
|
||||||
ServerMode = false
|
ServerMode = false
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ function NazaraBuild:Execute()
|
||||||
language("C++")
|
language("C++")
|
||||||
location(_ACTION)
|
location(_ACTION)
|
||||||
|
|
||||||
if (self.Config["PremakeProject"]) then
|
if (self.Config["PremakeProject"] && os.is("windows")) then
|
||||||
local commandLine = "premake5.exe " .. table.concat(_ARGV, ' ')
|
local commandLine = "premake5.exe " .. table.concat(_ARGV, ' ')
|
||||||
project("_PremakeProject")
|
project("_PremakeProject")
|
||||||
kind("Utility")
|
kind("Utility")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue