|
1 | 1 | <?xml version="1.0"?>
|
2 | 2 | <project name="Arduino" default="build">
|
| 3 | + <!--echo message="os.name = ${os.name}" /--> |
| 4 | + <!--echo message="os.arch = ${os.arch}" /--> |
| 5 | + <!--echo message="os.version = ${os.version}" /--> |
3 | 6 |
|
4 | 7 | <!-- Sets properties for macosx/windows/linux depending on current system -->
|
5 | 8 | <condition property="macosx"><os family="mac" /></condition>
|
6 | 9 | <condition property="windows"><os family="windows" /></condition>
|
7 | 10 | <condition property="linux"><os family="unix" /></condition>
|
| 11 | + <condition property="linux64"><os family="unix" arch="amd64" /></condition> |
8 | 12 |
|
9 | 13 | <condition property="platform"
|
10 | 14 | value="macosx"><os family="mac" /></condition>
|
11 | 15 | <condition property="platform"
|
12 | 16 | value="windows"><os family="windows" /></condition>
|
13 | 17 | <condition property="platform"
|
14 |
| - value="linux"><os family="unix" /></condition> |
| 18 | + value="linux"><os family="unix" arch="i386" /></condition> |
| 19 | + <condition property="platform" |
| 20 | + value="linux64"><os family="unix" arch="amd64" /></condition> |
15 | 21 |
|
16 | 22 | <!-- Libraries required for running arduino -->
|
17 | 23 | <fileset dir=".." id="runtime.jars">
|
|
317 | 323 | <copy todir="linux/work" file="linux/dist/arduino" />
|
318 | 324 | <chmod perm="755" file="linux/work/arduino" />
|
319 | 325 | </target>
|
| 326 | + |
| 327 | + <target name="linux64-build" depends="linux-build" description="Build linux (64-bit) version"> |
| 328 | + <copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" /> |
| 329 | + <copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" /> |
| 330 | + </target> |
320 | 331 |
|
321 | 332 | <target name="linux-run" depends="linux-build"
|
322 |
| - description="Run Linux version"> |
| 333 | + description="Run Linux (32-bit) version"> |
323 | 334 | <exec executable="./linux/work/arduino" spawn="false"/>
|
324 | 335 | </target>
|
325 | 336 |
|
326 |
| - <target name="linux-dist" depends="linux-build" |
| 337 | + <target name="linux64-run" depends="linux64-build" |
| 338 | + description="Run Linux (64-bit) version"> |
| 339 | + <exec executable="./linux/work/arduino" spawn="false"/> |
| 340 | + </target> |
| 341 | + |
| 342 | + <target name="linux-dist" depends="build" |
327 | 343 | description="Build .tar.gz of linux version">
|
328 | 344 |
|
329 | 345 | <!--get src="http://dev.processing.org/build/jre-tools-6u18-linux-i586.tgz"
|
|
358 | 374 | =======================================================
|
359 | 375 | </echo>
|
360 | 376 | </target>
|
| 377 | + |
361 | 378 |
|
| 379 | + <target name="linux64-dist" depends="linux-dist" |
| 380 | + description="Build .tar.gz of linux version" /> |
362 | 381 |
|
363 | 382 | <!-- - - - - - - - -->
|
364 | 383 | <!-- Windows -->
|
|
0 commit comments