|
26 | 26 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="windows" /></condition>
|
27 | 27 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux32" /></condition>
|
28 | 28 | <condition property="staging_hardware_folder" value="hardware"><equals arg1="${platform}" arg2="linux64" /></condition>
|
| 29 | + <!-- Define these to false skip installing the toolchains and native |
| 30 | + libraries. E.g., run ant -Dinstall_toolchains=false --> |
| 31 | + <property name="install_toolchains" value="true" /> |
| 32 | + <property name="install_native_libs" value="true" /> |
29 | 33 |
|
30 | 34 | <condition property="arch-bits" value="32">
|
31 | 35 | <equals arg1="${platform}" arg2="linux32"/>
|
|
227 | 231 | </antcall>
|
228 | 232 | </target>
|
229 | 233 |
|
230 |
| - <target name="macosx-toolchains"> |
| 234 | + <target name="macosx-toolchains" if="${install_toolchains}"> |
231 | 235 | <exec executable="unzip">
|
232 | 236 | <arg value="-q" />
|
233 | 237 | <arg value="-n" />
|
|
260 | 264 | </delete>
|
261 | 265 | </target>
|
262 | 266 |
|
263 |
| - <target name="macosx-native-libs"> |
| 267 | + <target name="macosx-native-libs" if="${install_native_libs}"> |
264 | 268 | <get src="http://downloads.arduino.cc/libastylej-2.03.zip" dest="macosx" usetimestamp="true" />
|
265 | 269 | <unzip src="macosx/libastylej-2.03.zip" dest="macosx" overwrite="true"/>
|
266 | 270 | <copy file="macosx/libastylej/libastylej.jnilib" todir="macosx/work/Arduino.app/Contents/Resources/Java/lib/" />
|
|
463 | 467 | <chmod perm="755" file="linux/work/arduino" />
|
464 | 468 | </target>
|
465 | 469 |
|
466 |
| - <target name="linux-native-libs"> |
| 470 | + <target name="linux-native-libs" if="${install_native_libs}"> |
467 | 471 | <get src="http://downloads.arduino.cc/libastylej-2.03.zip" dest="linux" usetimestamp="true" />
|
468 | 472 | <unzip src="linux/libastylej-2.03.zip" dest="linux" overwrite="true"/>
|
469 | 473 | <copy file="linux/libastylej/libastylej${arch-bits}.so" tofile="linux/work/lib/libastylej.so" />
|
|
476 | 480 | <target name="linux64-build" depends="linux-build, linux64-toolchains, linux-native-libs"
|
477 | 481 | description="Build linux (64-bit) version" />
|
478 | 482 |
|
479 |
| - <target name="linux-toolchains"> |
| 483 | + <target name="linux-toolchains" if="${install_toolchains}"> |
480 | 484 | <mkdir dir="linux/work/hardware/tools" />
|
481 | 485 | <copy file="linux/dist/tools/adk2install" todir="linux/work/hardware/tools" />
|
482 | 486 | <copy file="linux/dist/tools/adk2tool" todir="linux/work/hardware/tools" />
|
|
490 | 494 | <chmod perm="755" file="linux/work/hardware/tools/adk2install" />
|
491 | 495 | </target>
|
492 | 496 |
|
493 |
| - <target name="linux32-toolchains" depends="linux-toolchains"> |
| 497 | + <target name="linux32-toolchains" depends="linux-toolchains" if="${install_toolchains}"> |
494 | 498 | <!-- Unzip ARM tools -->
|
495 | 499 | <antcall target="unzip-arm-toolchain">
|
496 | 500 | <param name="dist_file" value="gcc-arm-none-eabi-4.4.1-2010q1-188-linux32.tar.gz" />
|
|
505 | 509 | </exec>
|
506 | 510 | </target>
|
507 | 511 |
|
508 |
| - <target name="linux64-toolchains" depends="linux-toolchains"> |
| 512 | + <target name="linux64-toolchains" depends="linux-toolchains" if="${install_toolchains}"> |
509 | 513 | <!-- Unzip ARM tools -->
|
510 | 514 | <antcall target="unzip-arm-toolchain">
|
511 | 515 | <param name="dist_file" value="gcc-arm-none-eabi-4.4.1-2010q1-188-linux32.tar.gz" />
|
|
689 | 693 | </chmod>
|
690 | 694 | </target>
|
691 | 695 |
|
692 |
| - <target name="windows-native-libs"> |
| 696 | + <target name="windows-native-libs" if="${install_native_libs}"> |
693 | 697 | <get src="http://downloads.arduino.cc/libastylej-2.03.zip" dest="windows" usetimestamp="true" />
|
694 | 698 | <unzip src="windows/libastylej-2.03.zip" dest="windows" overwrite="true"/>
|
695 | 699 | <copy file="windows/libastylej/AStylej.dll" todir="windows/work/lib" />
|
696 | 700 | </target>
|
697 | 701 |
|
698 |
| - <target name="windows-toolchains"> |
| 702 | + <target name="windows-toolchains" if="${install_toolchains}"> |
699 | 703 | <!-- Unzip AVR tools -->
|
700 | 704 | <get src="http://downloads.arduino.cc/WinAVR-20081205-arduino-2.zip" dest="windows" usetimestamp="true" skipexisting="true" verbose="true" />
|
701 | 705 | <unzip dest="windows/work/hardware" src="windows/WinAVR-20081205-arduino-2.zip" overwrite="false"/>
|
|
0 commit comments