|
8 | 8 | <format property="BUILD_DATE" pattern="yyyy/MM/dd hh:mm"/> |
9 | 9 | </tstamp> |
10 | 10 |
|
11 | | - <!-- Main url for boards and libraries repository --> |
12 | | - <property name="library_index_url" value="http://downloads.arduino.cc/libraries/library_index.json" /> |
13 | | - |
14 | 11 | <!-- Sets properties for macosx/windows/linux depending on current system --> |
15 | 12 | <condition property="platform" value="macosx-old"> |
16 | 13 | <and> |
|
259 | 256 | <!-- - - - - - - - - --> |
260 | 257 | <!-- Revision check --> |
261 | 258 | <!-- - - - - - - - - --> |
262 | | - <target name="revision-check" depends="package-library-index-json-bundle"> |
| 259 | + <target name="revision-check"> |
263 | 260 |
|
264 | 261 | <!-- figure out the AVR core version number in platform.txt --> |
265 | 262 | <loadfile srcfile="../hardware/arduino/avr/platform.txt" property="revision.avr.platform"> |
|
273 | 270 | </loadfile> |
274 | 271 |
|
275 | 272 | <!-- figure out the latest AVR core version number in package_index.json --> |
276 | | - <loadfile srcfile="${staging_folder}/work/${staging_hardware_folder}/package_index_bundled.json" property="revision.avr.index"> |
| 273 | + <loadfile srcfile="../hardware/package_index_bundled.json" property="revision.avr.index"> |
277 | 274 | <filterchain> |
278 | 275 | <tokenfilter> |
279 | 276 | <linetokenizer /> |
|
439 | 436 |
|
440 | 437 | <antcall target="macosx-build-avr-toolchain" /> |
441 | 438 |
|
442 | | - <antcall target="package-library-index-json-bundle"/> |
443 | | - |
444 | 439 | <antcall target="assemble"> |
445 | 440 | <param name="target.path" value="${staging_folder}/work/${staging_hardware_folder}/.." /> |
446 | 441 | </antcall> |
|
720 | 715 | <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-armhf-pc-linux-gnu-glibc2.13.tar.bz2"/> |
721 | 716 | <param name="avrdude_version" value="6.0.1-arduino5"/> |
722 | 717 | </antcall> |
723 | | - |
724 | | - <antcall target="package-library-index-json-bundle"/> |
725 | 718 | </target> |
726 | 719 |
|
727 | 720 | <target name="linux32-build" depends="linux-libastyle-x86" description="Build linux (32-bit) version"> |
|
752 | 745 | <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-i686-pc-linux-gnu.tar.bz2"/> |
753 | 746 | <param name="avrdude_version" value="6.0.1-arduino5"/> |
754 | 747 | </antcall> |
755 | | - |
756 | | - <antcall target="package-library-index-json-bundle"/> |
757 | 748 | </target> |
758 | 749 |
|
759 | 750 | <target name="linux64-build" depends="linux-libastyle-x86" description="Build linux (64-bit) version"> |
|
784 | 775 | <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-x86_64-pc-linux-gnu.tar.bz2"/> |
785 | 776 | <param name="avrdude_version" value="6.0.1-arduino5"/> |
786 | 777 | </antcall> |
787 | | - |
788 | | - <antcall target="package-library-index-json-bundle"/> |
789 | 778 | </target> |
790 | 779 |
|
791 | 780 | <target name="linux-jvm-noop"/> |
|
1072 | 1061 | <param name="avrdude_archive_file" value="avrdude-6.0.1-arduino5-i686-mingw32.zip"/> |
1073 | 1062 | <param name="avrdude_version" value="6.0.1-arduino5"/> |
1074 | 1063 | </antcall> |
1075 | | - |
1076 | | - <antcall target="package-library-index-json-bundle"/> |
1077 | 1064 | </target> |
1078 | 1065 |
|
1079 | 1066 | <target name="windows-run" depends="build,start"/> |
|
1164 | 1151 |
|
1165 | 1152 | <echo append="true" file="${staging_folder}/work/${staging_hardware_folder}/tools/avr/builtin_tools_versions.txt" message="arduino.avrdude=${avrdude_version}${line.separator}"/> |
1166 | 1153 | <echo append="true" file="${staging_folder}/work/${staging_hardware_folder}/tools/avr/builtin_tools_versions.txt" message="arduino.avr-gcc=${gcc_version}${line.separator}"/> |
1167 | | - </target> |
1168 | | - |
1169 | | - <target name="package-library-index-json-bundle"> |
1170 | | - <mkdir dir="${staging_folder}/work/${staging_hardware_folder}"/> |
1171 | | - <copy file="../hardware/package_index_bundled.json" tofile="${staging_folder}/work/${staging_hardware_folder}/package_index_bundled.json"/> |
1172 | | - |
1173 | | - <mkdir dir="${staging_folder}/work/${staging_hardware_folder}/../dist/"/> |
1174 | | - <get src="${library_index_url}.gz" |
1175 | | - dest="${staging_folder}/work/${staging_hardware_folder}/../dist/library_index.json.gz" |
1176 | | - verbose="true" skipexisting="false" /> |
1177 | | - <gunzip src ="${staging_folder}/work/${staging_hardware_folder}/../dist/library_index.json.gz" |
1178 | | - dest="${staging_folder}/work/${staging_hardware_folder}/../dist/"/> |
1179 | | - <delete file="${staging_folder}/work/${staging_hardware_folder}/../dist/library_index.json.gz"/> |
1180 | 1154 |
|
1181 | 1155 | <delete dir="${staging_folder}/work/${staging_hardware_folder}/tmp"/> |
1182 | 1156 | </target> |
|
0 commit comments