| OLD | NEW |
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!-- ====================================================================== | 2 <!-- ====================================================================== |
| 3 Sep 6, 2011 4:17:37 PM
| 3 Sep 6, 2011 4:17:37 PM
|
| 4 | 4 |
| 5 Dart Tools build common Ant Script | 5 Dart Tools build common Ant Script |
| 6 Common targets and macros for the build of Dart Tools | 6 Common targets and macros for the build of Dart Tools |
| 7 | 7 |
| 8 mrrussell | 8 mrrussell |
| 9 ====================================================================== --> | 9 ====================================================================== --> |
| 10 <project name="Dart Tools build common Ant Script" default="notStandalone"> | 10 <project name="Dart Tools build common Ant Script" default="notStandalone"> |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 <property name="build.osgi.os" value="win32" /> | 71 <property name="build.osgi.os" value="win32" /> |
| 72 <property name="build.osgi.ws" value="win32" /> | 72 <property name="build.osgi.ws" value="win32" /> |
| 73 <condition property="installSdkWindows"> | 73 <condition property="installSdkWindows"> |
| 74 <istrue value="${build.local.build}" /> | 74 <istrue value="${build.local.build}" /> |
| 75 </condition> | 75 </condition> |
| 76 <condition property="isWindows"> | 76 <condition property="isWindows"> |
| 77 <!-- TODO (mrrusell) this can be turned into a property once the | 77 <!-- TODO (mrrusell) this can be turned into a property once the |
| 78 build is only running on OS specific builds --> | 78 build is only running on OS specific builds --> |
| 79 <isset property="build.os" /> | 79 <isset property="build.os" /> |
| 80 </condition> | 80 </condition> |
| 81 <property name="unzip.tool" value="third_party/7zip/7za.exe"/> |
| 82 <property name="unzip.arg" value="x"/> |
| 81 </target> | 83 </target> |
| 82 <target name="setOSMac" if="build.os.mac"> | 84 <target name="setOSMac" if="build.os.mac"> |
| 83 <echo message="setup mac" /> | 85 <echo message="setup mac" /> |
| 84 <property name="build.eclipse.os.ws" value="macosx.cocoa" /> | 86 <property name="build.eclipse.os.ws" value="macosx.cocoa" /> |
| 85 <property name="osfamily" value="macos" /> | 87 <property name="osfamily" value="macos" /> |
| 86 <property name="build.osgi.os" value="macos" /> | 88 <property name="build.osgi.os" value="macos" /> |
| 87 <property name="build.osgi.ws" value="cocoa" /> | 89 <property name="build.osgi.ws" value="cocoa" /> |
| 88 <condition property="installSdkNotWindows"> | 90 <condition property="installSdkNotWindows"> |
| 89 <istrue value="${build.local.build}" /> | 91 <istrue value="${build.local.build}" /> |
| 90 </condition> | 92 </condition> |
| 91 <condition property="isNotWindows"> | 93 <condition property="isNotWindows"> |
| 92 <!-- TODO (mrrusell) this can be turned into a property once the | 94 <!-- TODO (mrrusell) this can be turned into a property once the |
| 93 build is only running on OS specific builds --> | 95 build is only running on OS specific builds --> |
| 94 <isset property="build.os" /> | 96 <isset property="build.os" /> |
| 95 </condition> | 97 </condition> |
| 98 <property name="unzip.tool" value="unzip"/> |
| 99 <property name="unzip.arg" value="-q"/> |
| 96 </target> | 100 </target> |
| 97 <target name="setOSLinux" if="build.os.linux"> | 101 <target name="setOSLinux" if="build.os.linux"> |
| 98 <echo message="setup linux" /> | 102 <echo message="setup linux" /> |
| 99 <property name="build.eclipse.os.ws" value="linux.gtk" /> | 103 <property name="build.eclipse.os.ws" value="linux.gtk" /> |
| 100 <property name="osfamily" value="linux" /> | 104 <property name="osfamily" value="linux" /> |
| 101 <property name="build.osgi.os" value="linux" /> | 105 <property name="build.osgi.os" value="linux" /> |
| 102 <property name="build.osgi.ws" value="gtk" /> | 106 <property name="build.osgi.ws" value="gtk" /> |
| 103 <condition property="installSdkNotWindows"> | 107 <condition property="installSdkNotWindows"> |
| 104 <istrue value="${build.local.build}" /> | 108 <istrue value="${build.local.build}" /> |
| 105 </condition> | 109 </condition> |
| 106 <condition property="isNotWindows"> | 110 <condition property="isNotWindows"> |
| 107 <!-- TODO (mrrusell) this can be turned into a property once the | 111 <!-- TODO (mrrusell) this can be turned into a property once the |
| 108 build is only running on OS specific builds --> | 112 build is only running on OS specific builds --> |
| 109 <isset property="build.os" /> | 113 <isset property="build.os" /> |
| 110 </condition> | 114 </condition> |
| 115 <property name="unzip.tool" value="unzip"/> |
| 116 <property name="unzip.arg" value="-q"/> |
| 111 </target> | 117 </target> |
| 112 | 118 |
| 113 <!-- configure and validate the data location --> | 119 <!-- configure and validate the data location --> |
| 114 <target name="configDataLocation"> | 120 <target name="configDataLocation"> |
| 115 <property name="data.location" | 121 <property name="data.location" |
| 116 location="../com.google.dart.tools.deploy.feature_releng/build
-settings" /> | 122 location="../com.google.dart.tools.deploy.feature_releng/build
-settings" /> |
| 117 <echoProperty propertyName="data.location" /> | 123 <echoProperty propertyName="data.location" /> |
| 118 <!-- | 124 <!-- |
| 119 validate that the data location is a directory | 125 validate that the data location is a directory |
| 120 --> | 126 --> |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 | 668 |
| 663 <target name="-unzipFile" if="do.unzip"> | 669 <target name="-unzipFile" if="do.unzip"> |
| 664 <unzip src="${archive.name}" dest="${output.dir}" /> | 670 <unzip src="${archive.name}" dest="${output.dir}" /> |
| 665 </target> | 671 </target> |
| 666 | 672 |
| 667 <target name="-untarFile" unless="do.unzip"> | 673 <target name="-untarFile" unless="do.unzip"> |
| 668 <untar src="${archive.name}" dest="${output.dir}" compression="gzip" /> | 674 <untar src="${archive.name}" dest="${output.dir}" compression="gzip" /> |
| 669 </target> | 675 </target> |
| 670 | 676 |
| 671 </project> | 677 </project> |
| OLD | NEW |