Home | History | Annotate | Download | only in libgdx
      1 <!-- Call this to fetch all the natives from the build server -->
      2 <project name="fetch-natives" default="all">
      3 	<property name="domain" value="https://libgdx.badlogicgames.com/nightlies/dist"/>
      4     <property name="robovm" value="https://libgdx.badlogicgames.com/robovm/robovm/lib/"/>
      5     
      6     <target name="fetch-robovm">
      7         <mkdir dir="backends/gdx-backend-robovm/libs/"/>
      8         <get src="${robovm}/robovm-cacerts-full.jar" dest="backends/gdx-backend-robovm/libs/"/>
      9         <get src="${robovm}/robovm-cocoatouch.jar" dest="backends/gdx-backend-robovm/libs/"/>
     10         <get src="${robovm}/robovm-objc.jar" dest="backends/gdx-backend-robovm/libs/"/>
     11         <get src="${robovm}/robovm-rt.jar" dest="backends/gdx-backend-robovm/libs/"/>
     12     </target>
     13     
     14 	<target name="fetch">		
     15 		<!-- create a temporary directory for all android and ios natives, to be distributed
     16 		     across demos and tests. The xxx-natives.jar files are put into the respective 
     17 			 project's libs/ folder -->
     18 		<mkdir dir="tmp"/>
     19 		<mkdir dir="tmp/ios"/>
     20 		<mkdir dir="tmp/armeabi"/>
     21 		<mkdir dir="tmp/armeabi-v7a"/>
     22 		<mkdir dir="tmp/arm64-v8a"/>
     23         <mkdir dir="tmp/x86"/>
     24         <mkdir dir="tmp/x86_64"/>		
     25 		<mkdir dir="gdx/libs/ios32"/>
     26         <mkdir dir="gdx/libs/armeabi"/>
     27         <mkdir dir="gdx/libs/armeabi-v7a"/>
     28         <mkdir dir="gdx/libs/arm64-v8a"/>
     29         <mkdir dir="gdx/libs/x86"/>
     30         <mkdir dir="gdx/libs/x86_64"/>
     31         <mkdir dir="extensions/gdx-bullet/libs/ios32"/>
     32         <mkdir dir="extensions/gdx-bullet/libs/armeabi"/>
     33         <mkdir dir="extensions/gdx-bullet/libs/armeabi-v7a"/>
     34         <mkdir dir="extensions/gdx-bullet/libs/arm64-v8a"/>
     35         <mkdir dir="extensions/gdx-bullet/libs/x86"/>
     36         <mkdir dir="extensions/gdx-bullet/libs/x86_64"/>
     37         <mkdir dir="extensions/gdx-freetype/libs/ios32"/>
     38         <mkdir dir="extensions/gdx-freetype/libs/armeabi"/>
     39         <mkdir dir="extensions/gdx-freetype/libs/armeabi-v7a"/>
     40         <mkdir dir="extensions/gdx-freetype/libs/arm64-v8a"/>
     41         <mkdir dir="extensions/gdx-freetype/libs/x86"/>
     42         <mkdir dir="extensions/gdx-freetype/libs/x86_64"/>
     43         <mkdir dir="extensions/gdx-box2d/gdx-box2d/libs/ios32"/>
     44         <mkdir dir="extensions/gdx-box2d/gdx-box2d/libs/armeabi"/>
     45         <mkdir dir="extensions/gdx-box2d/gdx-box2d/libs/armeabi-v7a"/>
     46         <mkdir dir="extensions/gdx-box2d/gdx-box2d/libs/arm64-v8a"/>
     47         <mkdir dir="extensions/gdx-box2d/gdx-box2d/libs/x86"/>
     48         <mkdir dir="extensions/gdx-box2d/gdx-box2d/libs/x86_64"/>
     49         <mkdir dir="extensions/gdx-controllers/gdx-controllers-desktop/libs"/>
     50 
     51 		<!-- core -->		
     52 		<get src="http://search.maven.org/remotecontent?filepath=junit/junit/4.11/junit-4.11.jar" dest="gdx/libs/junit-4.11.jar"/>
     53 		<get src="http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar" dest="gdx/libs/hamcrest-core-1.3.jar"/>
     54 		<get src="${domain}/gdx-natives.jar" dest="gdx/libs"/>
     55 		<get src="${domain}/armeabi/libgdx.so" dest="tmp/armeabi"/>
     56         <get src="${domain}/armeabi/libgdx.so" dest="gdx/libs/armeabi"/>
     57 		<get src="${domain}/armeabi-v7a/libgdx.so" dest="tmp/armeabi-v7a"/>
     58         <get src="${domain}/armeabi-v7a/libgdx.so" dest="gdx/libs/armeabi-v7a"/>
     59         <get src="${domain}/arm64-v8a/libgdx.so" dest="tmp/arm64-v8a"/>
     60         <get src="${domain}/arm64-v8a/libgdx.so" dest="gdx/libs/arm64-v8a"/>
     61         <get src="${domain}/x86/libgdx.so" dest="tmp/x86"/>
     62         <get src="${domain}/x86/libgdx.so" dest="gdx/libs/x86"/>
     63         <get src="${domain}/x86_64/libgdx.so" dest="tmp/x86_64"/>
     64         <get src="${domain}/x86_64/libgdx.so" dest="gdx/libs/x86_64"/>
     65         <get src="${domain}/ios/libgdx.a" dest="gdx/libs/ios32"/>
     66         <get src="${domain}/ios/libgdx.a.tvos" dest="gdx/libs/ios32"/>
     67         <get src="${domain}/ios/libObjectAL.a" dest="gdx/libs/ios32"/>
     68         <get src="${domain}/ios/libObjectAL.a.tvos" dest="gdx/libs/ios32"/>
     69 		
     70         <!-- robovm snapshot jars for robovm backend -->
     71         <antcall target="fetch-robovm"/>
     72 		
     73 		<!-- box2d natives -->		
     74 		<get src="${domain}/extensions/gdx-box2d/gdx-box2d-natives.jar" dest="extensions/gdx-box2d/gdx-box2d/libs"/>
     75 		<get src="${domain}/extensions/gdx-box2d/armeabi/libgdx-box2d.so" dest="tmp/armeabi"/>
     76         <get src="${domain}/extensions/gdx-box2d/armeabi/libgdx-box2d.so" dest="extensions/gdx-box2d/gdx-box2d/libs/armeabi"/>
     77 		<get src="${domain}/extensions/gdx-box2d/armeabi-v7a/libgdx-box2d.so" dest="tmp/armeabi-v7a"/>
     78 		<get src="${domain}/extensions/gdx-box2d/armeabi-v7a/libgdx-box2d.so" dest="extensions/gdx-box2d/gdx-box2d/libs/armeabi-v7a"/>
     79 		<get src="${domain}/extensions/gdx-box2d/arm64-v8a/libgdx-box2d.so" dest="tmp/arm64-v8a"/>
     80 		<get src="${domain}/extensions/gdx-box2d/arm64-v8a/libgdx-box2d.so" dest="extensions/gdx-box2d/gdx-box2d/libs/arm64-v8a"/>
     81         <get src="${domain}/extensions/gdx-box2d/x86/libgdx-box2d.so" dest="tmp/x86"/>
     82         <get src="${domain}/extensions/gdx-box2d/x86/libgdx-box2d.so" dest="extensions/gdx-box2d/gdx-box2d/libs/x86"/>
     83         <get src="${domain}/extensions/gdx-box2d/x86_64/libgdx-box2d.so" dest="tmp/x86_64"/>
     84         <get src="${domain}/extensions/gdx-box2d/x86_64/libgdx-box2d.so" dest="extensions/gdx-box2d/gdx-box2d/libs/x86_64"/>
     85         <get src="${domain}/extensions/gdx-box2d/ios/libgdx-box2d.a" dest="extensions/gdx-box2d/gdx-box2d/libs/ios32"/>
     86         <get src="${domain}/extensions/gdx-box2d/ios/libgdx-box2d.a.tvos" dest="extensions/gdx-box2d/gdx-box2d/libs/ios32"/>
     87 		
     88 		<!-- bullet natives -->		
     89 		<get src="${domain}/extensions/gdx-bullet/gdx-bullet-natives.jar" dest="extensions/gdx-bullet/libs"/>
     90 		<get src="${domain}/extensions/gdx-bullet/armeabi/libgdx-bullet.so" dest="tmp/armeabi"/>
     91         <get src="${domain}/extensions/gdx-bullet/armeabi/libgdx-bullet.so" dest="extensions/gdx-bullet/libs/armeabi"/>
     92 		<get src="${domain}/extensions/gdx-bullet/armeabi-v7a/libgdx-bullet.so" dest="tmp/armeabi-v7a"/>
     93 		<get src="${domain}/extensions/gdx-bullet/armeabi-v7a/libgdx-bullet.so" dest="extensions/gdx-bullet/libs/armeabi-v7a"/>
     94 		<get src="${domain}/extensions/gdx-bullet/arm64-v8a/libgdx-bullet.so" dest="tmp/arm64-v8a"/>
     95 		<get src="${domain}/extensions/gdx-bullet/arm64-v8a/libgdx-bullet.so" dest="extensions/gdx-bullet/libs/arm64-v8a"/>
     96         <get src="${domain}/extensions/gdx-bullet/x86/libgdx-bullet.so" dest="tmp/x86"/>
     97         <get src="${domain}/extensions/gdx-bullet/x86/libgdx-bullet.so" dest="extensions/gdx-bullet/libs/x86"/>
     98         <get src="${domain}/extensions/gdx-bullet/x86_64/libgdx-bullet.so" dest="tmp/x86_64"/>
     99         <get src="${domain}/extensions/gdx-bullet/x86_64/libgdx-bullet.so" dest="extensions/gdx-bullet/libs/x86_64"/>
    100         <get src="${domain}/extensions/gdx-bullet/ios/libgdx-bullet.a" dest="extensions/gdx-bullet/libs/ios32"/>
    101         <get src="${domain}/extensions/gdx-bullet/ios/libgdx-bullet.a.tvos" dest="extensions/gdx-bullet/libs/ios32"/>
    102 		
    103 		<!-- controllers natives, desktop only -->		
    104 		<get src="${domain}/extensions/gdx-controllers/gdx-controllers-desktop-natives.jar" dest="extensions/gdx-controllers/gdx-controllers-desktop/libs"/>
    105 		
    106 		<!-- freetype natives -->		
    107 		<get src="${domain}/extensions/gdx-freetype/gdx-freetype-natives.jar" dest="extensions/gdx-freetype/libs"/>
    108 		<get src="${domain}/extensions/gdx-freetype/armeabi/libgdx-freetype.so" dest="tmp/armeabi"/>
    109 		<get src="${domain}/extensions/gdx-freetype/armeabi/libgdx-freetype.so" dest="extensions/gdx-freetype/libs/armeabi"/>
    110         <get src="${domain}/extensions/gdx-freetype/armeabi-v7a/libgdx-freetype.so" dest="tmp/armeabi-v7a"/>
    111         <get src="${domain}/extensions/gdx-freetype/armeabi-v7a/libgdx-freetype.so" dest="extensions/gdx-freetype/libs/armeabi-v7a"/>
    112         <get src="${domain}/extensions/gdx-freetype/arm64-v8a/libgdx-freetype.so" dest="tmp/arm64-v8a"/>
    113         <get src="${domain}/extensions/gdx-freetype/arm64-v8a/libgdx-freetype.so" dest="extensions/gdx-freetype/libs/arm64-v8a"/>
    114         <get src="${domain}/extensions/gdx-freetype/x86/libgdx-freetype.so" dest="tmp/x86"/>
    115         <get src="${domain}/extensions/gdx-freetype/x86/libgdx-freetype.so" dest="extensions/gdx-freetype/libs/x86"/>
    116         <get src="${domain}/extensions/gdx-freetype/x86_64/libgdx-freetype.so" dest="tmp/x86_64"/>
    117         <get src="${domain}/extensions/gdx-freetype/x86_64/libgdx-freetype.so" dest="extensions/gdx-freetype/libs/x86_64"/>
    118         <get src="${domain}/extensions/gdx-freetype/ios/libgdx-freetype.a" dest="extensions/gdx-freetype/libs/ios32"/>
    119         <get src="${domain}/extensions/gdx-freetype/ios/libgdx-freetype.a.tvos" dest="extensions/gdx-freetype/libs/ios32"/>
    120 
    121 		<!-- jglfw -->
    122 		<mkdir dir="backends/gdx-backend-jglfw/libs"/>
    123 		<get src="http://libgdx.badlogicgames.com/jglfw/nightlies/dist/jglfw-natives.jar" dest="backends/gdx-backend-jglfw/libs/gdx-backend-jglfw-natives.jar"/>
    124 		<get src="http://libgdx.badlogicgames.com/jglfw/nightlies/dist/jglfw.jar" dest="backends/gdx-backend-jglfw/libs/"/>
    125 	</target>
    126 	
    127 	<target name="copy">
    128 		<!-- copy all extension natives to android tests -->
    129 		<copy todir="tests/gdx-tests-android/libs/armeabi">
    130 			<fileset dir="tmp/armeabi"/>			
    131 		</copy>
    132 		<copy todir="tests/gdx-tests-android/libs/armeabi-v7a">
    133 			<fileset dir="tmp/armeabi-v7a"/>			
    134 		</copy>
    135 		<copy todir="tests/gdx-tests-android/libs/arm64-v8a">
    136 			<fileset dir="tmp/arm64-v8a"/>			
    137 		</copy>
    138         <copy todir="tests/gdx-tests-android/libs/x86">
    139 			<fileset dir="tmp/x86"/>
    140 		</copy>
    141 		<copy todir="tests/gdx-tests-android/libs/x86_64">
    142 			<fileset dir="tmp/x86_64"/>
    143 		</copy>
    144 	</target>
    145 	
    146 	<target name="all" depends="fetch,copy"/>
    147 </project>
    148