Skip to content

Commit 3303774

Browse files
author
Federico Fissore
committed
build.xml and mac. Change in platform names: macosx now macosxnew, oldmacosx now macosx
1 parent ce91178 commit 3303774

File tree

2 files changed

+21
-25
lines changed

2 files changed

+21
-25
lines changed

build/build.xml

+20-24
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<!--echo message="os.version = ${os.version}" /-->
66

77
<!-- Sets properties for macosx/windows/linux depending on current system -->
8-
<condition property="platform" value="macosx"><os family="mac" /></condition>
9-
<condition property="platform" value="oldmacosx">
8+
<condition property="platform" value="macosxnew"><os family="mac" /></condition>
9+
<condition property="platform" value="macosx">
1010
<and>
1111
<os family="mac" />
1212
<matches string="${os.version}" pattern="^10.[56]." />
@@ -17,22 +17,22 @@
1717
<condition property="platform" value="linux64"><os family="unix" arch="amd64" /></condition>
1818

1919
<condition property="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
20-
<condition property="macosx"><equals arg1="${platform}" arg2="oldmacosx" /></condition>
21-
<condition property="oldmacosx"><equals arg1="${platform}" arg2="oldmacosx" /></condition>
20+
<condition property="macosx"><equals arg1="${platform}" arg2="macosxnew" /></condition>
21+
<condition property="macosxnew"><equals arg1="${platform}" arg2="macosxnew" /></condition>
2222
<condition property="windows"><equals arg1="${platform}" arg2="windows" /></condition>
2323
<condition property="linux32"><equals arg1="${platform}" arg2="linux32" /></condition>
2424
<condition property="linux64"><equals arg1="${platform}" arg2="linux64" /></condition>
2525
<condition property="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
2626
<condition property="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
2727

28+
<condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosxnew" /></condition>
2829
<condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
29-
<condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="oldmacosx" /></condition>
3030
<condition property="staging_folder" value="windows"><equals arg1="${platform}" arg2="windows" /></condition>
3131
<condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
3232
<condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
3333

34-
<condition property="staging_hardware_folder" value="Arduino.app/Contents/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition>
35-
<condition property="staging_hardware_folder" value="Arduino.app/Contents/Resources/Java/hardware"><equals arg1="${platform}" arg2="oldmacosx" /></condition>
34+
<condition property="staging_hardware_folder" value="Arduino.app/Contents/Java/hardware"><equals arg1="${platform}" arg2="macosxnew" /></condition>
35+
<condition property="staging_hardware_folder" value="Arduino.app/Contents/Resources/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition>
3636
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="windows" /></condition>
3737
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux32" /></condition>
3838
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux64" /></condition>
@@ -190,7 +190,7 @@
190190
<!-- Mac OS X -->
191191
<!-- - - - - - - - -->
192192

193-
<target name="oldmacosx-clean" depends="macosx-clean" description="Clean Mac OS X build"/>
193+
<target name="macosxnew-clean" depends="macosx-clean" description="Clean Mac OS X build"/>
194194

195195
<target name="macosx-clean" depends="subprojects-clean" description="Clean Mac OS X build">
196196
<delete dir="macosx/work" />
@@ -213,7 +213,7 @@
213213
<fail message="wrong platform (${os.name})" />
214214
</target>
215215

216-
<target name="oldmacosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version">
216+
<target name="macosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version">
217217
<mkdir dir="macosx/work" />
218218

219219
<!-- assemble the pde -->
@@ -241,7 +241,7 @@
241241

242242
</target>
243243

244-
<target name="macosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version">
244+
<target name="macosxnew-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version">
245245
<antcall target="unzip">
246246
<param name="archive_file" value="${staging_folder}/appbundler-1.0ea.jar.zip" />
247247
<param name="archive_url" value="http://arduino.cc/download.php?f=/appbundler-1.0ea.jar.zip" />
@@ -369,19 +369,19 @@
369369

370370
</target>
371371

372-
<target name="oldmacosx-run" depends="oldmacosx-build" description="Run Mac OS X version">
372+
<target name="macosx-run" depends="macosx-build" description="Run Mac OS X version">
373373
<antcall target="macosx-run-common"/>
374374
</target>
375375

376-
<target name="macosx-run" depends="macosx-build" description="Run Mac OS X version">
376+
<target name="macosxnew-run" depends="macosxnew-build" description="Run Mac OS X version">
377377
<antcall target="macosx-run-common"/>
378378
</target>
379379

380-
<target name="oldmacosx-debug" depends="oldmacosx-build" description="Run Mac OS X version">
380+
<target name="macosx-debug" depends="macosx-build" description="Run Mac OS X version">
381381
<antcall target="macosx-debug-common"/>
382382
</target>
383383

384-
<target name="macosx-debug" depends="macosx-build" description="Run Mac OS X version">
384+
<target name="macosxnew-debug" depends="macosxnew-build" description="Run Mac OS X version">
385385
<antcall target="macosx-debug-common"/>
386386
</target>
387387

@@ -452,28 +452,24 @@
452452
<!-- - - - - - - - - - - - - - - - - - - -->
453453
<!-- Build distribution file for MacOSX. -->
454454
<!-- - - - - - - - - - - - - - - - - - - -->
455-
<target name="oldmacosx-dist" if="macosx" depends="oldmacosx-build" description="Create a downloadable .zip for the Mac OS X version">
456-
<antcall target="macosx-dist-common">
457-
<param name="custom_platform" value="macosx"/>
458-
</antcall>
455+
<target name="macosx-dist" if="macosx" depends="macosx-build" description="Create a downloadable .zip for the Mac OS X version">
456+
<antcall target="macosx-dist-common"/>
459457
</target>
460458

461-
<target name="macosx-dist" if="macosx" depends="macosx-build" description="Create a downloadable .zip for the Mac OS X version">
462-
<antcall target="macosx-dist-common">
463-
<param name="custom_platform" value="macosx-new"/>
464-
</antcall>
459+
<target name="macosxnew-dist" if="macosx" depends="macosxnew-build" description="Create a downloadable .zip for the Mac OS X version">
460+
<antcall target="macosx-dist-common"/>
465461
</target>
466462

467463
<target name="macosx-dist-common">
468464
<exec executable="zip" dir="macosx/work">
469-
<arg line="-q -r ../arduino-${version}-${custom_platform}.zip ." />
465+
<arg line="-q -r ../arduino-${version}-${platform}.zip ." />
470466
</exec>
471467

472468
<echo>
473469
=======================================================
474470
Arduino for Mac OS X was built. Grab the image from
475471

476-
macosx/arduino-${version}-${custom_platform}.zip
472+
macosx/arduino-${version}-${platform}.zip
477473
=======================================================
478474
</echo>
479475
</target>

build/build_pull_request.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ mv windows/arduino-*$VERSION*.zip ../
2727
ant -Djava.net.preferIPv4Stack=true -Dplatform=macosx -Dversion="${VERSION}" clean dist
2828
mv macosx/arduino-*$VERSION*.zip ../
2929

30-
ant -Djava.net.preferIPv4Stack=true -Dplatform=oldmacosx -Dversion="${VERSION}" clean dist
30+
ant -Djava.net.preferIPv4Stack=true -Dplatform=macosxnew -Dversion="${VERSION}" clean dist
3131
mv macosx/arduino-*$VERSION*.zip ../
3232

0 commit comments

Comments
 (0)