diff options
-rw-r--r-- | build.xml | 60 |
1 files changed, 55 insertions, 5 deletions
@@ -50,11 +50,17 @@ <target name="init"> <!-- Set global properties for this build --> - <property name="src" location="src"/> - <property name="build" location="build"/> - <property name="dist" location="dist"/> - <property name="output.jar" location="dist/j3d-examples.jar"/> - <property name="output.zip" location="dist/j3d-examples-1_5_0-src.zip"/> + <property name="src" location="src"/> + <property name="build" location="build"/> + <property name="dist" location="dist"/> + <property name="output.jar" location="dist/j3d-examples.jar"/> + <property name="output.zip" location="dist/j3d-examples-1_5_0-src.zip"/> + <property name="j3ddir" location="../j3d-core/build/default/debug"/> + <property name="vecmathdir" location="../vecmath/build/debug"/> + <property name="j3dcore.jar" location="${j3ddir}/lib/ext/j3dcore.jar"/> + <property name="j3dutils.jar" location="${j3ddir}/lib/ext/j3dutils.jar"/> + <property name="vecmath.jar" location="${vecmathdir}/lib/ext/vecmath.jar"/> + <property name="native.dir" location="${j3ddir}/native"/> </target> <target name="compile" depends="init"> @@ -120,6 +126,9 @@ <target name="init-run" depends="init,jar"> <path id="run.classpath"> <pathelement location="${output.jar}"/> + <pathelement location="${j3dcore.jar}"/> + <pathelement location="${j3dutils.jar}"/> + <pathelement location="${vecmath.jar}"/> </path> </target> @@ -136,6 +145,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.appearance.AppearanceMixed"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -143,6 +153,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.appearance.AppearanceTest"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -150,6 +161,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.applet3d.Applet3D"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -157,6 +169,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.background.BackgroundGeometry"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -164,6 +177,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.configured_universe.ConfigObjLoad"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -171,6 +185,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.depth_func.DepthFuncTest"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -178,6 +193,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.distort_glyph.DistortGlyphTest"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -185,6 +201,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.dot3.Dot3Demo"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -192,6 +209,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.glsl_shader.EnvironmentMappingGLSL"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -199,6 +217,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.four_by_four.FourByFour"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -206,6 +225,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.fps_counter.FPSCounterDemo"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -213,6 +233,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.gears.GearBox"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -220,6 +241,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.gears.GearTest"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -227,6 +249,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.hello_universe.HelloUniverse"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -234,6 +257,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.geometry_by_ref.ImageComponentByReferenceTest"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -241,6 +265,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.geometry_by_ref.InterleavedNIOBuffer"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -248,6 +273,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.geometry_by_ref.InterleavedTest"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -255,6 +281,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.lod.LOD"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -262,6 +289,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.morphing.Morphing"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -269,6 +297,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.texture.MultiTextureTest"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -276,6 +305,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.objload.ObjLoad"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -283,6 +313,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.cg_shader.ObjLoadCg"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> <sysproperty key="j3d.shadingLanguage" value="Cg"/> </java> </target> @@ -291,6 +322,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.glsl_shader.ObjLoadGLSL"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -298,6 +330,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.oriented_shape3d.OrientedPtTest"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -305,6 +338,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.oriented_shape3d.OrientedTest"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -312,6 +346,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.print_canvas3d.PrintCanvas3D"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -319,6 +354,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.glsl_shader.PhongShadingGLSL"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -326,6 +362,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.pure_immediate.PureImmediate"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -333,6 +370,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.pure_immediate.PureImmediateStereo"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -340,6 +378,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.morphing.Pyramid2Cube"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -347,6 +386,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.package_info.QueryProperties"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -354,6 +394,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.glsl_shader.SamplerTestGLSL"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -361,6 +402,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.glsl_shader.ShaderTestGLSL"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -368,6 +410,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.sphere_motion.SphereMotion"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -375,6 +418,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.glsl_shader.SphereGLSL"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -382,6 +426,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.cg_shader.SphereCg"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> <sysproperty key="j3d.shadingLanguage" value="Cg"/> </java> </target> @@ -390,6 +435,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.texture_by_ref.TextureByReference"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -397,6 +443,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.texture.TextureImage"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -404,6 +451,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.collision.TickTockCollision"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -411,6 +459,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.glsl_shader.VertexAttrTestGLSL"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> </java> </target> @@ -418,6 +467,7 @@ <java fork="true" classname="org.jdesktop.j3d.examples.cg_shader.VertexAttrTestCg"> <classpath refid="run.classpath"/> + <sysproperty key="java.library.path" value="${native.dir}"/> <sysproperty key="j3d.shadingLanguage" value="Cg"/> </java> </target> |