Răsfoiți Sursa

- make FreeForm project for android code
- change build process to move back class files after creating separate jar files

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8654 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

nor..67 14 ani în urmă
părinte
comite
72a4282dc0
2 a modificat fișierele cu 77 adăugiri și 2 ștergeri
  1. 5 2
      engine/build.xml
  2. 72 0
      engine/src/android/nbproject/project.xml

+ 5 - 2
engine/build.xml

@@ -24,7 +24,7 @@
     
     
     <!-- compiles the android jar for jME3 -->
     <!-- compiles the android jar for jME3 -->
     <target name="-compile-android" description="builds the jMonkeyEngine3 distribution for android">
     <target name="-compile-android" description="builds the jMonkeyEngine3 distribution for android">
-        <echo message="Compiling Android jMonkeyEngin3.jar"/>
+        <echo message="Compiling Android jMonkeyEngine3.jar"/>
         <path id="android-classpath">
         <path id="android-classpath">
             <pathelement path="lib/android/android.jar"/>
             <pathelement path="lib/android/android.jar"/>
             <pathelement path="build/classes"/>
             <pathelement path="build/classes"/>
@@ -37,7 +37,7 @@
                 srcdir="src/android"
                 srcdir="src/android"
                 destdir="build/android"
                 destdir="build/android"
                 classpathref="android-classpath"
                 classpathref="android-classpath"
-                excludes="**/OGLESRenderer.java,**/TestsActivity.java,**/AboutActivity.java"/>
+                excludes="**/OGLESRenderer.java,**/TestsActivity.java,**/AboutActivity.java,nbproject/**"/>
     </target>
     </target>
     
     
     <!--this target creates the separate jar files for jme3 and modifies the classpath to include them-->
     <!--this target creates the separate jar files for jme3 and modifies the classpath to include them-->
@@ -48,11 +48,14 @@
         <move file="build/classes/jme3test" todir="build/testclasses/" failonerror="false"/>
         <move file="build/classes/jme3test" todir="build/testclasses/" failonerror="false"/>
         <move file="build/classes/jme3game" todir="build/testclasses/" failonerror="false"/>
         <move file="build/classes/jme3game" todir="build/testclasses/" failonerror="false"/>
         <jar jarfile="build/jME3-test.jar" basedir="build/testclasses/" compress="true"/>
         <jar jarfile="build/jME3-test.jar" basedir="build/testclasses/" compress="true"/>
+        <move file="build/testclasses/jme3test" todir="build/classes/" failonerror="false"/>
+        <move file="build/testclasses/jme3game" todir="build/classes/" failonerror="false"/>
 
 
         <!--separate jbullet physics classes-->
         <!--separate jbullet physics classes-->
         <mkdir dir="build/jbullet/com/jme3/"/>
         <mkdir dir="build/jbullet/com/jme3/"/>
         <move file="build/classes/com/jme3/bullet" todir="build/jbullet/com/jme3/" failonerror="false"/>
         <move file="build/classes/com/jme3/bullet" todir="build/jbullet/com/jme3/" failonerror="false"/>
         <jar jarfile="build/jME3-jbullet.jar" basedir="build/jbullet/" compress="true"/>
         <jar jarfile="build/jME3-jbullet.jar" basedir="build/jbullet/" compress="true"/>
+        <move file="build/jbullet/com/jme3/bullet" todir="build/classes/com/jme3/" failonerror="false"/>
 
 
         <!--separate assets-->
         <!--separate assets-->
         <jar jarfile="build/jME3-testdata.jar" basedir="src/test-data" compress="true"/>
         <jar jarfile="build/jME3-testdata.jar" basedir="src/test-data" compress="true"/>

+ 72 - 0
engine/src/android/nbproject/project.xml

@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+    <type>org.netbeans.modules.ant.freeform</type>
+    <configuration>
+        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
+            <name>jMonkeyEngine3 - Android</name>
+        </general-data>
+        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/2">
+            <!-- Do not use Project Properties customizer when editing this file manually. -->
+            <name>jMonkeyEngine3 - Android</name>
+            <properties>
+                <property name="ant.script">../../build.xml</property>
+            </properties>
+            <folders>
+                <source-folder>
+                    <label>Source Packages</label>
+                    <type>java</type>
+                    <location>.</location>
+                    <encoding>MacRoman</encoding>
+                </source-folder>
+            </folders>
+            <ide-actions>
+                <action name="build">
+                    <script>${ant.script}</script>
+                    <target>jar</target>
+                </action>
+                <action name="clean">
+                    <script>${ant.script}</script>
+                    <target>clean</target>
+                </action>
+                <action name="javadoc">
+                    <script>${ant.script}</script>
+                    <target>javadoc</target>
+                </action>
+                <action name="run">
+                    <script>${ant.script}</script>
+                    <target>run</target>
+                </action>
+                <action name="rebuild">
+                    <script>${ant.script}</script>
+                    <target>clean</target>
+                    <target>jar</target>
+                </action>
+            </ide-actions>
+            <view>
+                <items>
+                    <source-folder style="packages">
+                        <label>Source Packages</label>
+                        <location>.</location>
+                    </source-folder>
+                    <source-file>
+                        <location>${ant.script}</location>
+                    </source-file>
+                </items>
+                <context-menu>
+                    <ide-action name="build"/>
+                    <ide-action name="rebuild"/>
+                    <ide-action name="clean"/>
+                    <ide-action name="javadoc"/>
+                    <ide-action name="run"/>
+                </context-menu>
+            </view>
+        </general-data>
+        <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/1">
+            <compilation-unit>
+                <package-root>.</package-root>
+                <classpath mode="compile">../../lib/android/android.jar:../../dist/jMonkeyEngine3.jar</classpath>
+                <source-level>1.5</source-level>
+            </compilation-unit>
+        </java-data>
+    </configuration>
+</project>