Răsfoiți Sursa

Add comments and fail for unsupported OS.

Ken Whatmough 12 ani în urmă
părinte
comite
9c08bc6046
1 a modificat fișierele cu 18 adăugiri și 0 ștergeri
  1. 18 0
      build.xml

+ 18 - 0
build.xml

@@ -1,4 +1,22 @@
+<!--
+  - Overall Android native build script (for convenience)
+  -
+  - If new GamePlay samples are added please keep this list
+  - in sync.
+ -->
 <project name="GamePlay-Android" default="all" basedir=".">
+
+  <fail message="OS not supported (must be Windows, MacOS X, or Linux)">
+    <condition>
+      <not>
+        <or>
+          <os family="unix"/> <!-- includes MacOS X -->
+          <os family="windows"/>
+        </or>
+      </not>
+    </condition>
+  </fail>
+
   <macrodef name="build-native">
     <attribute name="location"/>
     <sequential>