changeset 3655:1d31e3a0617e

gradle - fixing cross builds to artifacts
author David Hill
date Wed, 22 May 2013 17:56:22 -0400
parents 99ae05926cc3
children 7a51619418ec
files build.gradle
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Wed May 22 12:25:18 2013 -0400
+++ b/build.gradle	Wed May 22 17:56:22 2013 -0400
@@ -330,7 +330,8 @@
 // Check whether the COMPILE_TARGETS property has been specified (if so, it was done by
 // the user and not by this script). If it has not been defined then default
 // to building the normal desktop build for this machine
-defineProperty("COMPILE_TARGETS", IS_MAC ? "mac" : IS_WINDOWS ? "win" : IS_LINUX ? "linux" : "")
+project.ext.set("defaultHostTarget", IS_MAC ? "mac" : IS_WINDOWS ? "win" : IS_LINUX ? "linux" : "");
+defineProperty("COMPILE_TARGETS", "$defaultHostTarget")
 
 // Now we need to define the native compilation tasks. The set of parameters to
 // native compiliation depends on the target platform (and also to some extent what platform