Skip to content

Commit 8df0fbf

Browse files
author
Federico Fissore
committed
MacOSX: removed pre 10.7 build.xml portions and files
1 parent e4a3033 commit 8df0fbf

12 files changed

+6
-253
lines changed

build/build.xml

+6-115
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
<matches string="${os.version}" pattern="^10.[56]." />
1616
</and>
1717
</condition>
18+
<condition property="macosx-old"><equals arg1="${platform}" arg2="macosx-old" /></condition>
19+
<fail if="macosx-old" message="MacOSX older than 10.7 are not supported"/>
20+
1821
<condition property="platform" value="macosx"><os family="mac" /></condition>
1922
<condition property="platform" value="windows"><os family="windows" /></condition>
2023
<condition property="platform" value="linux32"><os family="unix" arch="i386" /></condition>
2124
<condition property="platform" value="linux64"><os family="unix" arch="amd64" /></condition>
2225

23-
<condition property="macosx"><equals arg1="${platform}" arg2="macosx-old" /></condition>
2426
<condition property="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
2527
<condition property="windows"><equals arg1="${platform}" arg2="windows" /></condition>
2628
<condition property="linux32"><equals arg1="${platform}" arg2="linux32" /></condition>
@@ -29,13 +31,11 @@
2931
<condition property="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
3032

3133
<condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosx" /></condition>
32-
<condition property="staging_folder" value="macosx"><equals arg1="${platform}" arg2="macosx-old" /></condition>
3334
<condition property="staging_folder" value="windows"><equals arg1="${platform}" arg2="windows" /></condition>
3435
<condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux32" /></condition>
3536
<condition property="staging_folder" value="linux"><equals arg1="${platform}" arg2="linux64" /></condition>
3637

3738
<condition property="staging_hardware_folder" value="Arduino.app/Contents/Java/hardware"><equals arg1="${platform}" arg2="macosx" /></condition>
38-
<condition property="staging_hardware_folder" value="Arduino.app/Contents/Resources/Java/hardware"><equals arg1="${platform}" arg2="macosx-old" /></condition>
3939
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="windows" /></condition>
4040
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux32" /></condition>
4141
<condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux64" /></condition>
@@ -247,10 +247,7 @@
247247
<!-- - - - - - - - -->
248248
<!-- Mac OS X -->
249249
<!-- - - - - - - - -->
250-
251-
<target name="macosx-clean" depends="macosx-old-clean" description="Clean Mac OS X build"/>
252-
253-
<target name="macosx-old-clean" depends="subprojects-clean" description="Clean Mac OS X build">
250+
<target name="macosx-clean" depends="subprojects-clean" description="Clean Mac OS X build">
254251
<delete dir="macosx/work" />
255252
<delete dir="macosx/working_dir" />
256253
<delete dir="macosx/working.dmg" />
@@ -271,35 +268,6 @@
271268
<fail message="wrong platform (${os.name})" />
272269
</target>
273270

274-
<target name="macosx-old-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version">
275-
<mkdir dir="macosx/work" />
276-
<mkdir dir="macosx/work/${staging_hardware_folder}" />
277-
278-
<!-- assemble the pde -->
279-
<copy todir="macosx/work/Arduino.app">
280-
<fileset dir="macosx/template.app" includes="**"/>
281-
</copy>
282-
283-
<chmod file="macosx/work/Arduino.app/Contents/MacOS/JavaApplicationStub" perm="755" />
284-
285-
<copy todir="macosx/work/Arduino.app/Contents/Resources/Java" flatten="true">
286-
<fileset refid="runtime.jars"/>
287-
</copy>
288-
289-
<copy todir="macosx/work/Arduino.app/Contents/Resources/Java">
290-
<fileset dir="shared" includes="lib/**" />
291-
<fileset file="shared/revisions.txt" />
292-
</copy>
293-
294-
<antcall target="macosx-build-common"/>
295-
296-
<replace file="macosx/work/Arduino.app/Contents/Info.plist"
297-
token="VERSION" value="${version}" />
298-
<replace file="macosx/work/Arduino.app/Contents/Info.plist"
299-
token="REVISION" value="${revision}" />
300-
301-
</target>
302-
303271
<target name="macosx-build" if="macosx" depends="revision-check, macosx-checkos, subprojects-build" description="Build Mac OS X version">
304272
<fail unless="MACOSX_BUNDLED_JVM" message="MacOSX requires MACOSX_BUNDLED_JVM property set"/>
305273
<mkdir dir="${staging_folder}/work" />
@@ -324,7 +292,7 @@
324292
shortversion="${version}"
325293
version="${revision}"
326294
signature="Pde1"
327-
icon="macosx/template.app/Contents/Resources/processing.icns"
295+
icon="macosx/processing.icns"
328296
mainclassname="processing.app.Base"
329297
copyright="Arduino LLC"
330298
applicationCategory="public.app-category.education"
@@ -365,7 +333,7 @@
365333
<option value="-splash:$APP_ROOT/Contents/Java/lib/splash.png"/>
366334

367335
<bundledocument extensions="ino,c,cpp,h"
368-
icon="macosx/template.app/Contents/Resources/pde.icns"
336+
icon="macosx/pde.icns"
369337
name="Arduino Source File"
370338
role="Editor" ispackage="false">
371339
</bundledocument>
@@ -424,18 +392,10 @@
424392
</chmod>
425393
</target>
426394

427-
<target name="macosx-old-run" depends="macosx-old-build" description="Run Mac OS X version">
428-
<antcall target="macosx-run-common"/>
429-
</target>
430-
431395
<target name="macosx-run" depends="build" description="Run Mac OS X version">
432396
<antcall target="macosx-run-common"/>
433397
</target>
434398

435-
<target name="macosx-old-debug" depends="macosx-old-build" description="Run Mac OS X version">
436-
<antcall target="macosx-debug-common"/>
437-
</target>
438-
439399
<target name="macosx-debug" depends="build" description="Run Mac OS X version">
440400
<antcall target="macosx-debug-common"/>
441401
</target>
@@ -507,10 +467,6 @@
507467
<!-- - - - - - - - - - - - - - - - - - - -->
508468
<!-- Build distribution file for MacOSX. -->
509469
<!-- - - - - - - - - - - - - - - - - - - -->
510-
<target name="macosx-old-dist" if="macosx" depends="macosx-old-build" description="Create a downloadable .zip for the Mac OS X version">
511-
<antcall target="macosx-dist-common"/>
512-
</target>
513-
514470
<target name="macosx-dist" if="macosx" depends="build" description="Create a downloadable .zip for the Mac OS X version">
515471
<antcall target="macosx-dist-common"/>
516472
</target>
@@ -529,71 +485,6 @@
529485
</echo>
530486
</target>
531487

532-
<!--<target name="macosx-dist-old" if="macosx" depends="macosx-build" description="Create a .dmg of the Mac OS X version">-->
533-
<!--&lt;!&ndash; now build the dmg &ndash;&gt;-->
534-
<!--<gunzip src="macosx/template.dmg.gz" dest="macosx/working.dmg" />-->
535-
536-
<!--<mkdir dir="macosx/working_dir" />-->
537-
<!--<exec executable="hdiutil">-->
538-
<!--<arg line="attach macosx/working.dmg -noautoopen -mountpoint macosx/working_dir" />-->
539-
<!--&lt;!&ndash;<arg line="attach macosx/working.dmg -noautoopen -quiet -mountpoint macosx/working_dir" />&ndash;&gt;-->
540-
<!--</exec>-->
541-
542-
<!--<copy todir="macosx/working_dir">-->
543-
<!--<fileset dir="macosx/work" />-->
544-
<!--</copy>-->
545-
546-
<!--&lt;!&ndash; The ant copy command does not preserve permissions. &ndash;&gt;-->
547-
<!--<chmod file="macosx/working_dir/Arduino.app/Contents/MacOS/JavaApplicationStub" perm="+x" />-->
548-
<!--<chmod perm="+x">-->
549-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin" includes="**/*" />-->
550-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/bin" includes="**/*" />-->
551-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-3/bin" includes="**/*" />-->
552-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-4/bin" includes="**/*" />-->
553-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/3.4.6/" includes="**/cc1*" />-->
554-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/4.3.2/" includes="**/cc1*" />-->
555-
<!--</chmod>-->
556-
557-
<!--&lt;!&ndash; Pause briefly for the OS to catch up with the DMG changes. -->
558-
<!--This prevents "hdiutil: couldn't eject "disk3" - Resource busy"-->
559-
<!--errors when ejecting the disk in the next step.-->
560-
<!--You may need to set this value higher for your system. &ndash;&gt;-->
561-
<!--<sleep seconds="3" />-->
562-
563-
<!--<exec executable="hdiutil">-->
564-
<!--&lt;!&ndash;<arg line="detach macosx/working_dir -quiet -force" />&ndash;&gt;-->
565-
<!--<arg line="detach macosx/working_dir" />-->
566-
<!--</exec>-->
567-
568-
<!--<delete file="macosx/arduino-*.dmg" />-->
569-
<!--<exec executable="hdiutil">-->
570-
<!--<arg line="convert macosx/working.dmg -quiet -format UDZO -imagekey zlib-level=9 -o macosx/arduino-${version}.dmg" />-->
571-
<!--</exec>-->
572-
573-
<!--&lt;!&ndash; Clean up the interim files. &ndash;&gt;-->
574-
<!--<delete file="macosx/working.dmg" />-->
575-
<!--<delete dir="macosx/working_dir" />-->
576-
577-
<!--<echo>-->
578-
<!--=======================================================-->
579-
<!--Arduino for Mac OS X was built. Grab the image from-->
580-
581-
<!--macosx/arduino-${version}.dmg-->
582-
<!--=======================================================-->
583-
<!--</echo>-->
584-
<!--</target>-->
585-
586-
<!--<target name="macosx-dist-old-fix-perms" unless="light_bundle">-->
587-
<!--<chmod perm="+x">-->
588-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin" includes="**/*" />-->
589-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/bin" includes="**/*" />-->
590-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-3/bin" includes="**/*" />-->
591-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr-4/bin" includes="**/*" />-->
592-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/3.4.6/" includes="**/cc1*" />-->
593-
<!--<fileset dir="macosx/working_dir/Arduino.app/Contents/Resources/Java/hardware/tools/avr/libexec/gcc/avr/4.3.2/" includes="**/cc1*" />-->
594-
<!--</chmod>-->
595-
<!--</target>-->
596-
597488
<!-- - - - - - - - -->
598489
<!-- Linux -->
599490
<!-- - - - - - - - -->

build/macosx/template.app/Contents/Info.plist

-137
This file was deleted.
Binary file not shown.

build/macosx/template.app/Contents/PkgInfo

-1
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.

build/macosx/template.app/Contents/Resources/Java/quaqua.LICENSE.BSD.LGPL-2.1.txt

Whitespace-only changes.
Binary file not shown.

build/macosx/template.dmg.gz

-5.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)