Skip to content

Commit

Permalink
Merge pull request AtomicGameEngine#1575 from JimMarlowe/JM-MONO-DETECT
Browse files Browse the repository at this point in the history
Modern and legacy Linux mono detection for AtomicGameEngine#1544
  • Loading branch information
JoshEngebretson authored Jun 20, 2017
2 parents adf1d30 + 2f1efef commit a795802
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Build/Scripts/BuildConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ function processOptions(config) {
if ( spawnSync)
config["with-atomicnet"] = spawnSync("which", ["xbuild"]).status == 1 ? false : true;
} else if (os.platform() == "linux") { // see if xbuild is available on linux
config["with-atomicnet"] = programFileExists('/usr/bin/xbuild') && programDirectoryExists('/usr/bin/mono/');
var hasXbuild = programFileExists('/usr/bin/xbuild');
var hasMonoFile = programFileExists('/usr/bin/mono');
var hasMonoDir = programDirectoryExists('/usr/bin/mono/');
config["with-atomicnet"] = hasXbuild && ( hasMonoFile || hasMonoDir );
}
}

Expand Down

0 comments on commit a795802

Please sign in to comment.