diff options
-rw-r--r-- | obsolete.make-nb/Makefile | 29 | ||||
-rw-r--r-- | obsolete.make-nb/build.xml | 719 | ||||
-rw-r--r-- | obsolete.make-nb/crosscompiler.xml | 101 | ||||
-rw-r--r-- | obsolete.make-nb/manifest_template.mf | 21 | ||||
-rw-r--r-- | obsolete.make-nb/nbproject/.gitignore | 1 | ||||
-rw-r--r-- | obsolete.make-nb/nbproject/build-impl.xml | 842 | ||||
-rw-r--r-- | obsolete.make-nb/nbproject/genfiles.properties | 8 | ||||
-rw-r--r-- | obsolete.make-nb/nbproject/project.properties | 122 | ||||
-rw-r--r-- | obsolete.make-nb/nbproject/project.xml | 23 |
9 files changed, 0 insertions, 1866 deletions
diff --git a/obsolete.make-nb/Makefile b/obsolete.make-nb/Makefile deleted file mode 100644 index 45bc54f1..00000000 --- a/obsolete.make-nb/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -BITS=32 - -ifeq ($(BITS),32) - CC=gcc32 - NS=win-x86 -else - BITS=64 - CC=gcc64 - NS=win-x64 -endif - -CFLAGS=-m$(BITS) -shared -c -fno-rtti -fPIC -I/usr/lib/jvm/java-6-sun/include -I../common/platform-libs/jre-include/win32 -Iresources/includes -LFLAGS=-m$(BITS) -shared -fno-rtti -fPIC -L../common/platform-libs/OpenCL/win/_x64 -lOpenCL - -SRC=gensrc/native/CLImpl_JNI.c -OBJ=build/obj/jocl/$(NS)/CLImpl_JNI.o -BIN=build/natives/jocl/$(NS)/jocl.dll - -all: $(BIN) - -$(BIN): $(OBJ) - $(CC) $(LFLAGS) $(OBJ) -o $(BIN) - -$(OBJ): $(SRC) - $(CC) $(CFLAGS) $(SRC) -o $(OBJ) - -clean: - rm -f $(BIN) $(OBJ) - diff --git a/obsolete.make-nb/build.xml b/obsolete.make-nb/build.xml deleted file mode 100644 index 6a68b086..00000000 --- a/obsolete.make-nb/build.xml +++ /dev/null @@ -1,719 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- JOCL's main build file--> -<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir="." default="default" name="JOCL"> - - <description>Builds, tests, and runs the project JOCL.</description> - - <property file="${user.home}/jocl.properties"/> - - <import file="nbproject/build-impl.xml"/> - - <property name="rootrel.build" value="build"/> - <property name="gluegen.root" value="../gluegen" /> - <property name="jogl.root" value="../jogl" /> - - <property name="etc.build.dir" value="${basedir}/etc/build" /> - <property name="headers.dest" value="${basedir}/resources/includes/CL" /> - - <property name="jocl.build.number" value="manual" /> - <property name="jocl.build.branch" value="master" /> - <property name="jocl.build.commit" value="manual" /> - - <!-- Pull in GlueGen cpptasks build file --> - <import file="${gluegen.root}/make/gluegen-cpptasks.xml" /> - <import file="${gluegen.root}/make/jogamp-env.xml" /> - <import file="${gluegen.root}/make/jogamp-archivetasks.xml" /> - <import file="${gluegen.root}/make/jogamp-androidtasks.xml" /> - - <condition property="build.archiveon" value="true"> - <isset property="c.dont.compile"/> - </condition> - - <target name="-pre-init" depends="jogamp.env.init,gluegen.cpptasks.detect.os"> - <property name="jocl.build.id" value="${version.timestamp}" /> - <property name="jocl.version" value="${jogamp.version.base}-b${jocl.build.number}-${version.timestamp}" /> - <property name="jocl.version.plus" value="${jogamp.version.base}-${jocl.build.branch}-b${jocl.build.number}-${jocl.build.commit}-${version.timestamp}" /> - <property name="archive.zip.name" value="jocl-${jocl.version}-${os.and.arch}"/> - - <property name="javac.debug" value="${javacdebug}"/> - <property name="javac.source" value="${target.sourcelevel}"/> - <property name="javac.target" value="${target.targetlevel}"/> - <property name="javac.compilerargs" value="-bootclasspath '${target.rt.jar}' -Xlint -g:${javacdebuglevel}"/> - </target> - - <!-- overwrites default target - watch out when build-impl.xml changes --> - <target depends="-pre-init,-init-private,-init-libraries,-init-user" name="-init-project"> - <property file="nbproject/configs/${config}.properties"/> - <property file="nbproject/project.properties"/> - - <property name="build.dir.abs" location="${build.dir}"/> <!-- absolute path --> - - <copy file="${basedir}/manifest_template.mf" tofile="${build.dir.abs}/manifest.mf"> - <filterset> - <filter token="SPEC_VERSION" value="${jogamp.version.base}"/> - <filter token="VERSION" value="${jogamp.version}"/> - <filter token="BUILD_VERSION" value="${jocl.version}"/> - <filter token="SCM_BRANCH" value="${jocl.build.branch}"/> - <filter token="SCM_COMMIT" value="${jocl.build.commit}"/> - <filter token="JAR_CODEBASE_TAG" value="${jogamp.jar.codebase}"/> - </filterset> - </copy> - </target> - - <!-- -post-init is after all properties are imported --> - <target name="-post-init" depends="jogamp.env.init,gluegen.cpptasks.detect.os"> - </target> - - <target name="-pre-compile" depends="detect-jdk,prepare-jdk5-build,prepare-jdk7-build,generate-binding"/> - - <target name="detect-jdk"> - <condition property="enable.jdk7.features"> - <or> - <equals arg1="1.7" arg2="${javac.source}"/> - <equals arg1="1.8" arg2="${javac.source}"/> - </or> - </condition> - </target> - - <target name="prepare-jdk5-build" if="${enable.jdk7.features}"> - - <echo message="JDK7 features enabled"/> - - <copy file="${basedir}/src/com/jogamp/common/AutoCloseable.jtemplate" - tofile="${basedir}/gensrc/java/com/jogamp/common/AutoCloseable.java" overwrite="true"> - <filterchain> - <replaceregex pattern="/\*extends java.lang.AutoCloseable\*/" replace="extends java.lang.AutoCloseable"/> - </filterchain> - </copy> - - </target> - - <target name="prepare-jdk7-build" unless="${enable.jdk7.features}"> - - <echo message="JDK7 features dissabled"/> - - <copy file="${basedir}/src/com/jogamp/common/AutoCloseable.jtemplate" - tofile="${basedir}/gensrc/java/com/jogamp/common/AutoCloseable.java" overwrite="true"> - </copy> - - </target> - - <target name="generate-binding" depends="prepare-build,preprocess-headers" unless="dont-generate"> - - <path id="gluegen.classpath"> - <pathelement location="${file.reference.gluegen.jar}" /> - <pathelement location="${antlr.jar}" /> - </path> - - <taskdef name="gluegen" classname="com.jogamp.gluegen.ant.GlueGenTask" classpathref="gluegen.classpath" /> - - <!--OpenCL Impl including OpenGL interoperability--> - <dirset id="jocl.include.path" dir="${basedir}"> - <include name="resources/includes"/> - <include name="resources/stubs_includes/jvm"/> - <include name="resources/stubs_includes/gl"/> - <include name="resources/stubs_includes/common"/> - </dirset> - - <echo message=" - - - generate JOCL binding files - - - "/> - - <echo message="generate CL interfaces..."/> - - <echo message="context..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-context-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="program..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-program-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="kernel..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-kernel-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="queue..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-queue-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="device..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-device-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="memobj..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-mem-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="image..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-image-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="buffer..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-buffer-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="sampler..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-sampler-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="event..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-event-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="platform..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-platform-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="CL..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - dumpCPP="false" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="CLGL..."/> - <gluegen src="resources/opencl.h" - config="resources/clgl-if.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.JavaEmitter" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - - <echo message="GLImpl..."/> - <gluegen src="resources/opencl.h" - config="resources/cl-impl.cfg" - includeRefid="jocl.include.path" - emitter="com.jogamp.gluegen.procaddress.ProcAddressEmitter" - debug="false"> - <classpath refid="gluegen.classpath" /> - </gluegen> - <echo message=" - - - JOCL binding files generated - - - "/> - - </target> - - <target name="prepare-build" depends="gluegen.properties.load.user"> - - <property name="headers.orig" value="${basedir}/resources/includes/CL_orig" /> - - <!--compile build utilities--> - <mkdir dir="${etc.build.dir}"/> - - <javac destdir="${etc.build.dir}" - classpath="${ant.core.lib}" - fork="yes" - includeAntRuntime="false" - memoryMaximumSize="${javac.memorymax}" - source="${target.sourcelevel}" - target="${target.targetlevel}" - bootclasspath="${target.rt.jar}" - debug="${javacdebug}" debuglevel="${javacdebuglevel}"> - <src path="${basedir}/etc/src"/> - </javac> - - <taskdef name="update-headers" classname="com.jogamp.ant.HeaderFileDownloader" classpath="${etc.build.dir}"/> - <taskdef name="uncomment-function-params" classname="com.jogamp.ant.FunctionParamUncommenter" classpath="${etc.build.dir}"/> - - </target> - - <target name="-post-compile" depends="c.compile.default" /> - - <target name="-pre-jar"> - </target> - - <target name="-post-jar" depends="jar.natives,android.package,tag.build,create-all-jnlps,build-archive"/> - - <target name="create-all-jnlps"> - <!-- for local testing --> - <property name="jocl.jnlp.codebase" value="http://localhost/deployment/test"/> - <property name="gluegen.jnlp.codebase" value="http://localhost/deployment/test"/> - - <copy file="jnlp-files/jocl.jnlp" tofile="${build.dir}/jocl.jnlp"> - <filterchain> - <replacestring from="JOCL_CODEBASE_TAG" to="${jocl.jnlp.codebase}"/> - <replacestring from="GLUEGEN_CODEBASE_TAG" to="${gluegen.jnlp.codebase}"/> - </filterchain> - </copy> - </target> - - <target name="build-archive" if="build.archiveon"> - <!-- don't know how to get rid of the NetBeans readme file --> - <delete file="${build.dir}/jar/README.TXT"/> - <!-- what is this ? --> - <delete file="${build.dir}/build-jar.properties" /> - - <!-- source zip --> - <zip destfile="${build.dir}/jocl-java-src.zip" level="0"> - <fileset dir="${src.dir}"/> - <fileset dir="${src.java.dir}"/> - <!-- fileset dir="${build.generated.sources.dir}"/--> - </zip> - - <!-- zip distribution --> - <mkdir dir="${build.dir}/${archive.zip.name}"/> - - <copy todir="${build.dir}/${archive.zip.name}" > - <fileset dir="." includes="www/**"/> - <fileset dir="${build.dir}" includes="jar/**"/> - <fileset dir="." includes="jnlp-files/**"/> - <fileset dir="${build.dir}" includes="artifact.properties,jocl-java-src.zip,README,LICENSE"/> - </copy> - - <!-- native files, TODO: remove when no longer needed --> - <copy todir="${build.dir}/${archive.zip.name}/lib" failonerror="false"> - <fileset dir="${basedir}/${rootrel.build}/natives/jocl" excludes="*.xml"/> - </copy> - - <!-- 7z it --> - <archive.7z basedir="${build.dir}" destfile="${build.dir}/${archive.zip.name}.7z" includes="${archive.zip.name}/**"/> - - <delete dir="${build.dir}/${archive.zip.name}"/> - </target> - - <target name="tag.build"> - <copy file="${jogl.root}/${rootrel.build}/artifact.properties" todir="${build.dir}" overwrite="true" failonerror="false"/> - <echo file="${build.dir}/artifact.properties" message="jocl.build.version=${jogamp.version}${line.separator}" append="true" /> - <echo file="${build.dir}/artifact.properties" message="jocl.build.number=${jocl.build.number}${line.separator}" append="true" /> - <echo file="${build.dir}/artifact.properties" message="jocl.build.id=${jocl.build.id}${line.separator}" append="true" /> - <echo file="${build.dir}/artifact.properties" message="jocl.build.branch=${jocl.build.branch}${line.separator}" append="true" /> - <echo file="${build.dir}/artifact.properties" message="jocl.build.commit=${jocl.build.commit}${line.separator}" append="true" /> - </target> - - <target name="jar.natives" unless="c.dont.compile"> - <jar basedir="${natives.jocl.dir}/${namespace}" excludes="*.xml" - destfile="${build.dir}/jar/jocl-natives-${os.and.arch}.jar" - manifest="${build.dir.abs}/manifest.mf" /> - </target> - - <target name="android.package" if="isAndroid"> - <aapt.signed - jarsrcdir="${src.java}" - jarbuilddir="${build.dir}/jar" - jarbasename="jocl" - nativebuilddir="${natives.jocl.dir}/${namespace}" - nativebasename="" - android.abi="${android.abi}" - androidmanifest.path="resources/android/AndroidManifest-jocl.xml" - androidresources.path="resources/android/res-jocl" - jarmanifest.path="${build.dir.abs}/manifest.mf" - version.code="${jogamp.version.int}" - version.name="${jogamp.version}" /> - </target> - - <target name="c.compile.default" depends="gluegen.cpptasks.detect.os, gluegen.cpptasks.detect.compiler, jocl.c.compile, c.rename.lib.mingw" /> - - <target name="jocl.c.compile" depends="c.setup.build" unless="c.dont.compile"> - - <echo message=" - - - compiling JOCL natives - - - "/> - <echo message="${compiler.cfg.id}"/> - <echo message="${linker.cfg.id}"/> - - <mkdir dir="${obj.jocl.dir}/${namespace}" /> - <mkdir dir="${natives.jocl.dir}/${namespace}" /> - - <cc outtype="shared" - objdir="${obj.jocl.dir}/${namespace}" - outfile="${natives.jocl.dir}/${namespace}/${output.lib.name}" - optimize="${c.compiler.optimise}" - debug="${c.compiler.debug}" - multithreaded="true" - exceptions="false" - rtti="false"> - - <fileset dir="gensrc/native" includes="*.c"/> - - <compiler extends="${compiler.cfg.id}" > - - <includepath path="${java.includes.dir}"/> - <includepath path="${java.includes.dir.platform}"/> - - <!-- TODO should we use our own or jogl's GL headers? --> - <includepath path="${basedir}/resources/includes"/> - <!-- - <includepath path="${jogl.root}/make/stub_includes/opengl/GL3"/> - <includepath path="${jogl.root}/make/stub_includes/opengl"/> - --> - - </compiler> - - <linker extends="${linker.cfg.id}"/> - - </cc> - - <echo message=" - - - JOCL natives compiled - - - "/> - - <antcall target="gluegen.cpptasks.striplibs" inheritRefs="true"> - <param name="libdir" value="${natives.jocl.dir}/${namespace}"/> - </antcall> - - </target> - - <!-- official OpenCL headers expect a different layout on mac... - since we want to use the same headers for all platforms we move them a bit around --> - <target name="mac.includepath.hack" if="isOSX"> - <delete dir="${basedir}/resources/includes/OpenCL" quiet="true"/> - <copydir src="${basedir}/resources/includes/CL" dest="${basedir}/resources/includes/OpenCL"/> - </target> - - <target name="c.setup.build" depends="gluegen.cpptasks.configure.compiler, gluegen.cpptasks.declare.compiler, c.configure.default, jocl.configure.compiler, jocl.configure.linker, mac.includepath.hack"> - - <property name="obj.dir" value="${build.dir}/obj"/> - <property name="natives.dir" value="${build.dir}/natives"/> - - <property name="output.lib.name" value="jocl"/> - <property name="obj.jocl.dir" value="${obj.dir}/${output.lib.name}"/> - <property name="natives.jocl.dir" value="${build.dir}/natives/${output.lib.name}"/> - - <property name="c.compiler.optimise" value="none"/> - <property name="c.compiler.debug" value="false"/> - <property name="namespace" value=""/> - - </target> - - <!-- compiler configuration --> - <target name="jocl.configure.compiler"> - <!-- a hackish way on Solaris10 w/ gcc in 'sfw' - to make mmintrin.h, pmmintrin.h and xmmintrin.h visible --> - - <compiler id="compiler.cfg.solaris.jocl.x86" extends="compiler.cfg.solaris"> - <compilerarg value="-I/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/install-tools/include" /> - </compiler> - - <compiler id="compiler.cfg.solaris.jocl.sparc" extends="compiler.cfg.solaris"> - <!-- dunno .. need to fix, if we ever compile on Solaris/sparcv9 --> - <compilerarg value="-I/usr/sfw/lib/gcc/sparc-pc-solaris2.10/3.4.3/install-tools/include" /> - </compiler> - - <compiler id="compiler.cfg.solaris.jocl.sparcv9" extends="compiler.cfg.solaris.sparcv9"> - <!-- dunno .. need to fix, if we ever compile on Solaris/sparcv9 --> - <compilerarg value="-I/usr/sfw/lib/gcc/sparc-pc-solaris2.10/3.4.3/install-tools/include" /> - </compiler> - - <compiler id="compiler.cfg.solaris.jocl.amd64" extends="compiler.cfg.solaris.amd64"> - <compilerarg value="-I/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/install-tools/include" /> - </compiler> - - </target> - - <!-- linker configuration --> - <target name="jocl.configure.linker"> - - <linker id="linker.cfg.linux.jocl" extends="linker.cfg.linux"> - <syslibset dir="/usr/lib" libs="OpenCL" if="static.binding" unless="opencl.lib32.dir"/> - <syslibset dir="${opencl.lib32.dir}" libs="OpenCL" if="opencl.lib32.dir"/> - </linker> - - <linker id="linker.cfg.linux.x86.jocl" extends="linker.cfg.linux.x86"> - <syslibset dir="/usr/lib" libs="OpenCL" if="static.binding" unless="opencl.lib32.dir"/> - <syslibset dir="${opencl.lib32.dir}" libs="OpenCL" if="opencl.lib32.dir"/> - </linker> - - <linker id="linker.cfg.linux.amd64.jocl" extends="linker.cfg.linux.amd64" > - <syslibset dir="/usr/lib" libs="OpenCL" if="static.binding" unless="opencl.lib64.dir"/> - <syslibset dir="${opencl.lib64.dir}" libs="OpenCL" if="opencl.lib64.dir"/> - </linker> - - <linker id="linker.cfg.linux.armv6.jocl" extends="linker.cfg.linux.armv6"> - <syslibset dir="/usr/lib" libs="OpenCL" if="static.binding" unless="opencl.libarmv6.dir"/> - <syslibset dir="${opencl.libarmv6.dir}" libs="OpenCL" if="opencl.libarmv6.dir"/> - </linker> - - <linker id="linker.cfg.win32.mingw.jocl" extends="linker.cfg.win32.mingw"> - <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names --> - <syslibset dir="${opencl.lib32.dir}" libs="OpenCL" if="static.binding"/> - </linker> - - <linker id="linker.cfg.win64.mingw.jocl" extends="linker.cfg.win64.mingw"> - <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names --> - <syslibset dir="${opencl.lib64.dir}" libs="OpenCL" if="static.binding"/> - </linker> - - <linker id="linker.cfg.macosx.jocl" extends="linker.cfg.macosx"> - <linkerarg value="-framework OpenCL" if="static.binding"/> - </linker> - - </target> - - <!-- configure for current platform --> - <target name="c.configure.default" depends="c.configure.os" /> - <target name="c.configure.os" depends="c.configure.win, c.configure.linux, c.configure.macosx, c.configure.solaris" /> - <target name="c.configure.win" depends="c.configure.win.mingw32, c.configure.win.mingw64" if="isWindows" /> - <target name="c.configure.linux" depends="c.configure.linux.x86, c.configure.linux.amd64, c.configure.linux.armv6" if="isLinux" /> - <target name="c.configure.solaris" depends="c.configure.solaris.x86, c.configure.solaris.sparc, c.configure.solaris.sparcv9, c.configure.solaris.amd64" if="isSolaris" /> - - <target name="c.configure.win.mingw32" if="isMingW32"> - <echo message="Win.Ming32W" /> - <property name="compiler.cfg.id" value="${compiler.cfg.id.base}" /> - <property name="linker.cfg.id" value="linker.cfg.win32.mingw.jocl" /> - </target> - <target name="c.configure.win.mingw64" if="isMingW64"> - <echo message="Win.Ming64W" /> - <property name="compiler.cfg.id" value="${compiler.cfg.id.base}" /> - <property name="linker.cfg.id" value="linker.cfg.win64.mingw.jocl" /> - </target> - <target name="c.configure.linux.x86" if="isLinuxX86"> - <echo message="Linux.x86" /> - <property name="compiler.cfg.id" value="${compiler.cfg.id.base}" /> - <property name="linker.cfg.id" value="linker.cfg.linux.x86.jocl" /> - </target> - <target name="c.configure.linux.amd64" if="isLinuxAMD64"> - <echo message="Linux.AMD64" /> - <property name="compiler.cfg.id" value="${compiler.cfg.id.base}" /> - <property name="linker.cfg.id" value="linker.cfg.linux.amd64.jocl" /> - </target> - <target name="c.configure.linux.armv6" if="isLinuxARMv6"> - <echo message="Linux.ARMv6" /> - <property name="compiler.cfg.id" value="${compiler.cfg.id.base}" /> - <property name="linker.cfg.id" value="linker.cfg.linux.armv6.jocl" /> - </target> - - <target name="c.configure.solaris.x86" if="isSolarisX86"> - <echo message="SolarisX86" /> - <property name="compiler.cfg.id" value="compiler.cfg.solaris.jocl.x86" /> - <property name="linker.cfg.id" value="linker.cfg.solaris" /> - </target> - - <target name="c.configure.solaris.sparc" if="isSolarisSparc"> - <echo message="SolarisSparc" /> - <property name="compiler.cfg.id" value="compiler.cfg.solaris.jocl.sparc" /> - <property name="linker.cfg.id" value="linker.cfg.solaris" /> - </target> - - <target name="c.configure.solaris.sparcv9" if="isSolarisSparcv9"> - <echo message="SolarisSparcv9" /> - <property name="compiler.cfg.id" value="compiler.cfg.solaris.jocl.sparcv9" /> - <property name="linker.cfg.id" value="linker.cfg.solaris.sparcv9" /> - </target> - - <target name="c.configure.solaris.amd64" if="isSolarisAMD64"> - <echo message="SolarisAMD64" /> - <property name="compiler.cfg.id" value="compiler.cfg.solaris.jocl.amd64" /> - <property name="linker.cfg.id" value="linker.cfg.solaris.amd64" /> - </target> - - <target name="c.configure.macosx" if="isOSX"> - <echo message="MacOS" /> - <property name="compiler.cfg.id" value="${compiler.cfg.id.base}" /> - <property name="linker.cfg.id" value="linker.cfg.macosx.jocl" /> - </target> - - <target name="-post-clean"> - <delete dir="gensrc"/> - <delete dir="${etc.build.dir}"/> - <delete dir="${headers.dest}"/> - </target> - - <target name="update-headers" depends="prepare-build"> - - <property name="registry.url" value="http://www.khronos.org/registry/cl/api/1.1/"/> - - <!-- download new headers from OpenCL registry if necessary --> - <update-headers header="${headers.orig}/cl.h" url="${registry.url}cl.h"/> - <update-headers header="${headers.orig}/cl_gl.h" url="${registry.url}cl_gl.h"/> - <update-headers header="${headers.orig}/cl_gl_ext.h" url="${registry.url}cl_gl_ext.h"/> - <update-headers header="${headers.orig}/cl_ext.h" url="${registry.url}cl_ext.h"/> - <update-headers header="${headers.orig}/cl_platform.h" url="${registry.url}cl_platform.h"/> - - </target> - - <target name="preprocess-headers" depends="prepare-build"> - - <mkdir dir="${headers.dest}"/> - - <!--uncomment function names in c headers and copy modified files into include path--> - <uncomment-function-params src="${headers.orig}/cl.h" dest="${headers.dest}/cl.h"/> - <uncomment-function-params src="${headers.orig}/cl_gl.h" dest="${headers.dest}/cl_gl.h"/> - - <!--nothing to uncomment in this headers--> - <copy file="${headers.orig}/cl_platform.h" toDir="${headers.dest}" overwrite="true"/> - <copy file="${headers.orig}/cl_ext.h" toDir="${headers.dest}" overwrite="true"/> - <copy file="${headers.orig}/cl_gl_ext.h" toDir="${headers.dest}" overwrite="true"/> - <copy file="${headers.orig}/cl_vendor_ext.h" toDir="${headers.dest}" overwrite="true"/> - - </target> - - <!--cut and paste from gluegen --> - <target name="c.rename.lib.mingw" if="isMingW"> - <!-- FIXME: this is a hack; the cpptask should have an option to change the - suffix or at least understand the override from .so to .dll --> - <move file="${natives.jocl.dir}/${namespace}/libjocl.so" tofile="${natives.jocl.dir}/${namespace}/jocl.dll" /> - </target> - - <target name="-javadoc-build" depends="init,build-javadoc,archive-javadoc"/> - - <target name="build-javadoc"> - - <mkdir dir="${dist.javadoc.dir}"/> - - <!-- copy gluegen and jogl doc next to the jocl doc for relative linking --> - <copy todir="${build.dir}/javadoc" failonerror="false"> - <fileset dir="${gluegen.root}/build/javadoc"/> - <fileset dir="${jogl.root}/build/javadoc"/> - </copy> - - <copy file="${basedir}/src/com/jogamp/opencl/llb/package.html" - todir="${basedir}/gensrc/java/com/jogamp/opencl/llb" overwrite="true"/> - - <copy file="${basedir}/src/com/jogamp/opencl/llb/gl/package.html" - todir="${basedir}/gensrc/java/com/jogamp/opencl/llb/gl" overwrite="true"/> - - <javadoc author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" - docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" - noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" - private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" - use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" - windowtitle="${javadoc.windowtitle}" overview="${basedir}/src/overview.html" - stylesheetfile="${gluegen.root}/make/doc/javadoc/stylesheet.css"> - - <arg line="${javadoc.additionalparam} -J-Dnativetaglet.mapping=${basedir}/resources/native-taglet.properties"/> - <taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.root}/${rootrel.build}/gluegen.jar"/> - - <!-- relative linking between docs --> - <link href="../../gluegen/javadoc"/> - <link href="../../jogl/javadoc"/> - - <link href="http://download.oracle.com/javase/6/docs/api"/> - - <classpath> - <pathelement path="${javac.classpath}"/> - </classpath> - - <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> - <filename name="**/*.java"/> - </fileset> - <fileset dir="${src.java.dir}" excludes="${excludes}" includes="${includes}"> - <filename name="**/*.java"/> - </fileset> - <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> - <include name="**/*.java"/> - </fileset> - - </javadoc> - <copy todir="${dist.javadoc.dir}/resources" overwrite="true"> - <fileset dir="${gluegen.root}/make/doc/javadoc/resources" includes="*" /> - </copy> - - </target> - - <target name="archive-javadoc" if="build.archiveon"> - <archive.7z basedir="${build.dir}/javadoc" destfile="${build.dir}/jocl-javadoc.7z" includes="jocl/*"/> - </target> - - <target name="test-file"> - <property name="javac.includes" value="${test.file}"/> - <property name="test.includes" value="${test.file}"/> - <antcall target="test-single" inheritall="true"/> - </target> - - <!-- overwrites default target - watch out when build-impl.xml changes --> - <target name="-pre-test-run" depends="init" if="have.tests" > - <mkdir dir="${build.test.results.dir}"/> - </target> - - <target name="junit.run.local" unless="isCrosscompilation"> - <j2seproject3:junit testincludes="**/*Test.java"/> - </target> - - <target name="junit.run.remote.ssh" if="isCrosscompilation" unless="isAndroid"> - <copy todir="${build.test.results.dir}" file="${gluegen.root}/make/lib/TEST-com.jogamp.junit.DisabledTest.xml"/> - </target> - - <target name="junit.run.tests" depends="junit.run.local, junit.run.remote.ssh"/> - - <target name="junit.run.if.enabled" unless="junit.is.disabled"> - <antcall target="junit.run.tests" inheritRefs="true" inheritAll="true"/> - </target> - - <target name="junit.run.if.disabled" if="junit.is.disabled"> - <copy todir="${build.test.results.dir}" file="${gluegen.root}/make/lib/TEST-com.jogamp.junit.DisabledTest.xml"/> - </target> - - <!-- overwrites default target - watch out when build-impl.xml changes --> - <target name="-do-test-run" depends="init,compile-test,-pre-test-run,junit.run.if.enabled,junit.run.if.disabled" if="have.tests" > - </target> - - <!-- overwrites default target - watch out when build-impl.xml changes --> - <target name="-post-test-run" depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests"> - <archive.7z destfile="${build.dir}/${archive.zip.name}-test-results-${build.node.name}.7z" - basedir="." - includes="${build.test.results.dir}/**" /> - <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> - </target> - - <target name="jar-test" depends="jar,test"/> - - <target name="clean-jar-test"> - <antcall target="clean" inheritRefs="true" inheritAll="true"/> - <antcall target="jar-test" inheritRefs="true" inheritAll="true"/> - </target> - -</project> diff --git a/obsolete.make-nb/crosscompiler.xml b/obsolete.make-nb/crosscompiler.xml deleted file mode 100644 index 36eec26e..00000000 --- a/obsolete.make-nb/crosscompiler.xml +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Document : crosscompiler.xml - Created on : November 18, 2009, 3:38 PM - Author : Michael Bien - Description: - crosscompiler configuration and ant task for crosscompiling for - linux32/64 and win32/64 on linux64 as host system. ---> -<project name="jocl-crosscompiler" basedir="." default="jocl.cross-compile"> - - <import file="build.xml"/> - - <!-- TODO remove hardcoded path --> - <property name="java.includes.dir.windows" value="/home/buildadmin/project/common/platform-libs/jre-include/win32"/> - <property name="opencl.platform.dir" value="/home/buildadmin/project/common/platform-libs/OpenCL"/> - - <!-- crosscompiles to other platforms, requirement: linux64 host os --> - <target name="jocl.cross-compile" depends="init"> - - <echo message=" - - - cross-compiling JOCL natives - - - "/> - - <antcall target="jocl.c.compile" inheritall="false"> - <param name="namespace" value="linux-amd64"/> - <param name="build.dir" value="${build.dir}"/> - <param name="isLinuxAMD64" value="true"/> - <param name="isLinux" value="true"/> - <param name="isUnix" value="true"/> - <param name="isX11" value="true"/> - - <!-- overwrite --> - <param name="linker.cfg.id" value="linker.cfg.linux64.amd64.jocl"/> - </antcall> - - <antcall target="jocl.c.compile" inheritall="false"> - <param name="namespace" value="linux-x86"/> - <param name="build.dir" value="${build.dir}"/> - <param name="isLinuxX86" value="true"/> - <param name="isLinux" value="true"/> - <param name="isUnix" value="true"/> - <param name="isX11" value="true"/> - - <!-- overwrite --> - <param name="linker.cfg.id" value="linker.cfg.linux64.x86.jocl"/> - </antcall> - - <!-- use mingw crosscompiler to compile for win32 and win64 --> - <antcall target="jocl.c.compile" inheritall="false"> - <param name="namespace" value="win-x86"/> - <param name="build.dir" value="${build.dir}"/> - <param name="isLinuxX86" value="true"/> - <param name="isLinux" value="true"/> - <param name="isUnix" value="true"/> - <param name="isX11" value="true"/> - - <!-- overwrite --> - <param name="java.includes.dir.platform" value="${java.includes.dir.windows}"/> - <param name="compiler.cfg.id" value="compiler.cfg.linux64.mingw32"/> - <param name="linker.cfg.id" value="linker.cfg.linux64.mingw32.jocl"/> - </antcall> - - <antcall target="jocl.c.compile" inheritall="false"> - <param name="namespace" value="win-amd64"/> - <param name="build.dir" value="${build.dir}"/> - <param name="isLinuxAMD64" value="true"/> - <param name="isLinux" value="true"/> - <param name="isUnix" value="true"/> - <param name="isX11" value="true"/> - - <!-- overwrite --> - <param name="java.includes.dir.platform" value="${java.includes.dir.windows}"/> - <param name="compiler.cfg.id" value="compiler.cfg.linux64.mingw64"/> - <param name="linker.cfg.id" value="linker.cfg.linux64.mingw64.jocl"/> - </antcall> - - <echo message=" - - - JOCL natives cross-compiled - - - "/> - - </target> - - - <target name="jocl.configure.linker"> - - <linker id="linker.cfg.linux64.x86.jocl" extends="linker.cfg.linux"> - <syslibset dir="${opencl.platform.dir}/linux/x86" libs="OpenCL"/> - </linker> - - <linker id="linker.cfg.linux64.amd64.jocl" extends="linker.cfg.linux.amd64" > - <syslibset dir="${opencl.platform.dir}/linux/amd64" libs="OpenCL"/> - </linker> - - <linker id="linker.cfg.linux64.mingw32.jocl" extends="linker.cfg.linux64.mingw32"> - <syslibset dir="${opencl.platform.dir}/win/win32" libs="OpenCL"/> - </linker> - - <linker id="linker.cfg.linux64.mingw64.jocl" extends="linker.cfg.linux64.mingw64"> - <syslibset dir="${opencl.platform.dir}/win/x64" libs="OpenCL"/> - </linker> - - </target> - -</project>
\ No newline at end of file diff --git a/obsolete.make-nb/manifest_template.mf b/obsolete.make-nb/manifest_template.mf deleted file mode 100644 index 93fed681..00000000 --- a/obsolete.make-nb/manifest_template.mf +++ /dev/null @@ -1,21 +0,0 @@ -Manifest-Version: 1.0 -Application-Name: Java Bindings for OpenCL -Implementation-Title: Java Bindings for OpenCL -Specification-Title: Java Bindings for OpenCL -Implementation-URL: http://jocl.jogamp.org/ -Implementation-Version: @VERSION@ -Implementation-Build: @BUILD_VERSION@ -Specification-Version: @SPEC_VERSION@ -Implementation-Branch: @SCM_BRANCH@ -Implementation-Commit: @SCM_COMMIT@ -Implementation-Vendor: JogAmp Community -Implementation-Vendor-Id: com.jogamp -Specification-Vendor: JogAmp Community -Extension-Name: com.jogamp.opencl -Trusted-Library: true -Permissions: all-permissions -Name: com/jogamp/opencl/llb/impl/ -Sealed: true -Application-Library-Allowable-Codebase: * -@JAR_CODEBASE_TAG@ - diff --git a/obsolete.make-nb/nbproject/.gitignore b/obsolete.make-nb/nbproject/.gitignore deleted file mode 100644 index 3e18ebf0..00000000 --- a/obsolete.make-nb/nbproject/.gitignore +++ /dev/null @@ -1 +0,0 @@ -private diff --git a/obsolete.make-nb/nbproject/build-impl.xml b/obsolete.make-nb/nbproject/build-impl.xml deleted file mode 100644 index 5b21395a..00000000 --- a/obsolete.make-nb/nbproject/build-impl.xml +++ /dev/null @@ -1,842 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -*** GENERATED FROM project.xml - DO NOT EDIT *** -*** EDIT ../build.xml INSTEAD *** - -For the purpose of easier reading the script -is divided into following sections: - - - initialization - - compilation - - jar - - execution - - debugging - - javadoc - - junit compilation - - junit execution - - junit debugging - - applet - - cleanup - - --> -<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="JOCL-impl"> - <fail message="Please build using Ant 1.7.1 or higher."> - <condition> - <not> - <antversion atleast="1.7.1"/> - </not> - </condition> - </fail> - <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> - <!-- - ====================== - INITIALIZATION SECTION - ====================== - --> - <target name="-pre-init"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target depends="-pre-init" name="-init-private"> - <property file="nbproject/private/config.properties"/> - <property file="nbproject/private/configs/${config}.properties"/> - <property file="nbproject/private/private.properties"/> - </target> - <target name="-pre-init-libraries"> - <property location="./lib/nblibraries.properties" name="libraries.path"/> - <dirname file="${libraries.path}" property="libraries.dir.nativedirsep"/> - <pathconvert dirsep="/" property="libraries.dir"> - <path path="${libraries.dir.nativedirsep}"/> - </pathconvert> - <basename file="${libraries.path}" property="libraries.basename" suffix=".properties"/> - <available file="${libraries.dir}/${libraries.basename}-private.properties" property="private.properties.available"/> - </target> - <target depends="-pre-init-libraries" if="private.properties.available" name="-init-private-libraries"> - <loadproperties encoding="ISO-8859-1" srcfile="${libraries.dir}/${libraries.basename}-private.properties"> - <filterchain> - <replacestring from="$${base}" to="${libraries.dir}"/> - <escapeunicode/> - </filterchain> - </loadproperties> - </target> - <target depends="-pre-init,-init-private,-init-private-libraries" name="-init-libraries"> - <loadproperties encoding="ISO-8859-1" srcfile="${libraries.path}"> - <filterchain> - <replacestring from="$${base}" to="${libraries.dir}"/> - <escapeunicode/> - </filterchain> - </loadproperties> - </target> - <target depends="-pre-init,-init-private,-init-libraries" name="-init-user"> - <property file="${user.properties.file}"/> - <!-- The two properties below are usually overridden --> - <!-- by the active platform. Just a fallback. --> - <property name="default.javac.source" value="1.4"/> - <property name="default.javac.target" value="1.4"/> - </target> - <target depends="-pre-init,-init-private,-init-libraries,-init-user" name="-init-project"> - <property file="nbproject/configs/${config}.properties"/> - <property file="nbproject/project.properties"/> - </target> - <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init"> - <available file="${manifest.file}" property="manifest.available"/> - <condition property="main.class.available"> - <and> - <isset property="main.class"/> - <not> - <equals arg1="${main.class}" arg2="" trim="true"/> - </not> - </and> - </condition> - <condition property="manifest.available+main.class"> - <and> - <isset property="manifest.available"/> - <isset property="main.class.available"/> - </and> - </condition> - <condition property="do.mkdist"> - <and> - <isset property="libs.CopyLibs.classpath"/> - <not> - <istrue value="${mkdist.disabled}"/> - </not> - </and> - </condition> - <condition property="manifest.available+main.class+mkdist.available"> - <and> - <istrue value="${manifest.available+main.class}"/> - <isset property="do.mkdist"/> - </and> - </condition> - <condition property="manifest.available+mkdist.available"> - <and> - <istrue value="${manifest.available}"/> - <isset property="do.mkdist"/> - </and> - </condition> - <condition property="manifest.available-mkdist.available"> - <or> - <istrue value="${manifest.available}"/> - <isset property="do.mkdist"/> - </or> - </condition> - <condition property="manifest.available+main.class-mkdist.available"> - <or> - <istrue value="${manifest.available+main.class}"/> - <isset property="do.mkdist"/> - </or> - </condition> - <condition property="have.tests"> - <or> - <available file="${test.src.dir}"/> - </or> - </condition> - <condition property="have.sources"> - <or> - <available file="${src.dir}"/> - <available file="${src.java.dir}"/> - <available file="${src.native.dir}"/> - </or> - </condition> - <condition property="netbeans.home+have.tests"> - <and> - <isset property="netbeans.home"/> - <isset property="have.tests"/> - </and> - </condition> - <condition property="no.javadoc.preview"> - <and> - <isset property="javadoc.preview"/> - <isfalse value="${javadoc.preview}"/> - </and> - </condition> - <property name="run.jvmargs" value=""/> - <property name="javac.compilerargs" value=""/> - <property name="work.dir" value="${basedir}"/> - <condition property="no.deps"> - <and> - <istrue value="${no.dependencies}"/> - </and> - </condition> - <property name="javac.debug" value="true"/> - <property name="javadoc.preview" value="true"/> - <property name="application.args" value=""/> - <property name="source.encoding" value="${file.encoding}"/> - <property name="runtime.encoding" value="${source.encoding}"/> - <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> - <and> - <isset property="javadoc.encoding"/> - <not> - <equals arg1="${javadoc.encoding}" arg2=""/> - </not> - </and> - </condition> - <property name="javadoc.encoding.used" value="${source.encoding}"/> - <property name="includes" value="**"/> - <property name="excludes" value=""/> - <property name="do.depend" value="false"/> - <condition property="do.depend.true"> - <istrue value="${do.depend}"/> - </condition> - <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> - <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> - <length length="0" string="${endorsed.classpath}" when="greater"/> - </condition> - <property name="javac.fork" value="false"/> - </target> - <target name="-post-init"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init" name="-init-check"> - <fail unless="src.dir">Must set src.dir</fail> - <fail unless="src.java.dir">Must set src.java.dir</fail> - <fail unless="src.native.dir">Must set src.native.dir</fail> - <fail unless="test.src.dir">Must set test.src.dir</fail> - <fail unless="build.dir">Must set build.dir</fail> - <fail unless="dist.dir">Must set dist.dir</fail> - <fail unless="build.classes.dir">Must set build.classes.dir</fail> - <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> - <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> - <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> - <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> - <fail unless="dist.jar">Must set dist.jar</fail> - </target> - <target name="-init-macrodef-property"> - <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> - <attribute name="name"/> - <attribute name="value"/> - <sequential> - <property name="@{name}" value="${@{value}}"/> - </sequential> - </macrodef> - </target> - <target name="-init-macrodef-javac"> - <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> - <attribute default="${src.dir}:${src.java.dir}:${src.native.dir}" name="srcdir"/> - <attribute default="${build.classes.dir}" name="destdir"/> - <attribute default="${javac.classpath}" name="classpath"/> - <attribute default="${includes}" name="includes"/> - <attribute default="${excludes}" name="excludes"/> - <attribute default="${javac.debug}" name="debug"/> - <attribute default="${empty.dir}" name="sourcepath"/> - <attribute default="${empty.dir}" name="gensrcdir"/> - <element name="customize" optional="true"/> - <sequential> - <property location="${build.dir}/empty" name="empty.dir"/> - <mkdir dir="${empty.dir}"/> - <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"> - <src> - <dirset dir="@{gensrcdir}" erroronmissingdir="false"> - <include name="*"/> - </dirset> - </src> - <classpath> - <path path="@{classpath}"/> - </classpath> - <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> - <compilerarg line="${javac.compilerargs}"/> - <customize/> - </javac> - </sequential> - </macrodef> - <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> - <attribute default="${src.dir}:${src.java.dir}:${src.native.dir}" name="srcdir"/> - <attribute default="${build.classes.dir}" name="destdir"/> - <attribute default="${javac.classpath}" name="classpath"/> - <sequential> - <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> - <classpath> - <path path="@{classpath}"/> - </classpath> - </depend> - </sequential> - </macrodef> - <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> - <attribute default="${build.classes.dir}" name="destdir"/> - <sequential> - <fail unless="javac.includes">Must set javac.includes</fail> - <pathconvert pathsep="," property="javac.includes.binary"> - <path> - <filelist dir="@{destdir}" files="${javac.includes}"/> - </path> - <globmapper from="*.java" to="*.class"/> - </pathconvert> - <delete> - <files includes="${javac.includes.binary}"/> - </delete> - </sequential> - </macrodef> - </target> - <target name="-init-macrodef-junit"> - <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> - <attribute default="${includes}" name="includes"/> - <attribute default="${excludes}" name="excludes"/> - <attribute default="**" name="testincludes"/> - <sequential> - <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}"> - <batchtest todir="${build.test.results.dir}"> - <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> - <filename name="@{testincludes}"/> - </fileset> - </batchtest> - <classpath> - <path path="${run.test.classpath}"/> - </classpath> - <syspropertyset> - <propertyref prefix="test-sys-prop."/> - <mapper from="test-sys-prop.*" to="*" type="glob"/> - </syspropertyset> - <formatter type="brief" usefile="false"/> - <formatter type="xml"/> - <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> - <jvmarg line="${run.jvmargs}"/> - </junit> - </sequential> - </macrodef> - </target> - <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> - <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> - <attribute default="${main.class}" name="name"/> - <attribute default="${debug.classpath}" name="classpath"/> - <attribute default="" name="stopclassname"/> - <sequential> - <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}"> - <classpath> - <path path="@{classpath}"/> - </classpath> - </nbjpdastart> - </sequential> - </macrodef> - <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> - <attribute default="${build.classes.dir}" name="dir"/> - <sequential> - <nbjpdareload> - <fileset dir="@{dir}" includes="${fix.classes}"> - <include name="${fix.includes}*.class"/> - </fileset> - </nbjpdareload> - </sequential> - </macrodef> - </target> - <target name="-init-debug-args"> - <property name="version-output" value="java version "${ant.java.version}"/> - <condition property="have-jdk-older-than-1.4"> - <or> - <contains string="${version-output}" substring="java version "1.0"/> - <contains string="${version-output}" substring="java version "1.1"/> - <contains string="${version-output}" substring="java version "1.2"/> - <contains string="${version-output}" substring="java version "1.3"/> - </or> - </condition> - <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> - <istrue value="${have-jdk-older-than-1.4}"/> - </condition> - <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem"> - <os family="windows"/> - </condition> - <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}"> - <isset property="debug.transport"/> - </condition> - </target> - <target depends="-init-debug-args" name="-init-macrodef-debug"> - <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> - <attribute default="${main.class}" name="classname"/> - <attribute default="${debug.classpath}" name="classpath"/> - <element name="customize" optional="true"/> - <sequential> - <java classname="@{classname}" dir="${work.dir}" fork="true"> - <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> - <jvmarg line="${debug-args-line}"/> - <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> - <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> - <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> - <jvmarg line="${run.jvmargs}"/> - <classpath> - <path path="@{classpath}"/> - </classpath> - <syspropertyset> - <propertyref prefix="run-sys-prop."/> - <mapper from="run-sys-prop.*" to="*" type="glob"/> - </syspropertyset> - <customize/> - </java> - </sequential> - </macrodef> - </target> - <target name="-init-macrodef-java"> - <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> - <attribute default="${main.class}" name="classname"/> - <attribute default="${run.classpath}" name="classpath"/> - <element name="customize" optional="true"/> - <sequential> - <java classname="@{classname}" dir="${work.dir}" fork="true"> - <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> - <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> - <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> - <jvmarg line="${run.jvmargs}"/> - <classpath> - <path path="@{classpath}"/> - </classpath> - <syspropertyset> - <propertyref prefix="run-sys-prop."/> - <mapper from="run-sys-prop.*" to="*" type="glob"/> - </syspropertyset> - <customize/> - </java> - </sequential> - </macrodef> - </target> - <target name="-init-presetdef-jar"> - <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> - <jar compress="${jar.compress}" jarfile="${dist.jar}"> - <j2seproject1:fileset dir="${build.classes.dir}"/> - </jar> - </presetdef> - </target> - <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/> - <!-- - =================== - COMPILATION SECTION - =================== - --> - <target name="-deps-jar-init" unless="built-jar.properties"> - <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/> - <delete file="${built-jar.properties}" quiet="true"/> - </target> - <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> - <echo level="warn" message="Cycle detected: JOCL was already built"/> - </target> - <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> - <mkdir dir="${build.dir}"/> - <touch file="${built-jar.properties}" verbose="false"/> - <property file="${built-jar.properties}" prefix="already.built.jar."/> - <antcall target="-warn-already-built-jar"/> - <propertyfile file="${built-jar.properties}"> - <entry key="${basedir}" value=""/> - </propertyfile> - </target> - <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> - <target depends="init" name="-check-automatic-build"> - <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> - </target> - <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> - <antcall target="clean"/> - </target> - <target depends="init,deps-jar" name="-pre-pre-compile"> - <mkdir dir="${build.classes.dir}"/> - </target> - <target name="-pre-compile"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target if="do.depend.true" name="-compile-depend"> - <pathconvert property="build.generated.subdirs"> - <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false"> - <include name="*"/> - </dirset> - </pathconvert> - <j2seproject3:depend srcdir="${src.dir}:${src.java.dir}:${src.native.dir}:${build.generated.subdirs}"/> - </target> - <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile"> - <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> - <copy todir="${build.classes.dir}"> - <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> - <fileset dir="${src.java.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> - <fileset dir="${src.native.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> - </copy> - </target> - <target name="-post-compile"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> - <target name="-pre-compile-single"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> - <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> - <j2seproject3:force-recompile/> - <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}:${src.java.dir}:${src.native.dir}"/> - </target> - <target name="-post-compile-single"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> - <!-- - ==================== - JAR BUILDING SECTION - ==================== - --> - <target depends="init" name="-pre-pre-jar"> - <dirname file="${dist.jar}" property="dist.jar.dir"/> - <mkdir dir="${dist.jar.dir}"/> - </target> - <target name="-pre-jar"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available"> - <j2seproject1:jar/> - </target> - <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available"> - <j2seproject1:jar manifest="${manifest.file}"/> - </target> - <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available"> - <j2seproject1:jar manifest="${manifest.file}"> - <j2seproject1:manifest> - <j2seproject1:attribute name="Main-Class" value="${main.class}"/> - </j2seproject1:manifest> - </j2seproject1:jar> - <echo>To run this application from the command line without Ant, try:</echo> - <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> - <property location="${dist.jar}" name="dist.jar.resolved"/> - <pathconvert property="run.classpath.with.dist.jar"> - <path path="${run.classpath}"/> - <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> - </pathconvert> - <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> - </target> - <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries"> - <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> - <pathconvert property="run.classpath.without.build.classes.dir"> - <path path="${run.classpath}"/> - <map from="${build.classes.dir.resolved}" to=""/> - </pathconvert> - <pathconvert pathsep=" " property="jar.classpath"> - <path path="${run.classpath.without.build.classes.dir}"/> - <chainedmapper> - <flattenmapper/> - <globmapper from="*" to="lib/*"/> - </chainedmapper> - </pathconvert> - <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> - <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> - <fileset dir="${build.classes.dir}"/> - <manifest> - <attribute name="Main-Class" value="${main.class}"/> - <attribute name="Class-Path" value="${jar.classpath}"/> - </manifest> - </copylibs> - <echo>To run this application from the command line without Ant, try:</echo> - <property location="${dist.jar}" name="dist.jar.resolved"/> - <echo>java -jar "${dist.jar.resolved}"</echo> - </target> - <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+mkdist.available" name="-do-jar-with-libraries-without-mainclass" unless="main.class.available"> - <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> - <pathconvert property="run.classpath.without.build.classes.dir"> - <path path="${run.classpath}"/> - <map from="${build.classes.dir.resolved}" to=""/> - </pathconvert> - <pathconvert pathsep=" " property="jar.classpath"> - <path path="${run.classpath.without.build.classes.dir}"/> - <chainedmapper> - <flattenmapper/> - <globmapper from="*" to="lib/*"/> - </chainedmapper> - </pathconvert> - <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> - <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> - <fileset dir="${build.classes.dir}"/> - <manifest> - <attribute name="Class-Path" value="${jar.classpath}"/> - </manifest> - </copylibs> - </target> - <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.mkdist" name="-do-jar-with-libraries-without-manifest" unless="manifest.available"> - <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> - <pathconvert property="run.classpath.without.build.classes.dir"> - <path path="${run.classpath}"/> - <map from="${build.classes.dir.resolved}" to=""/> - </pathconvert> - <pathconvert pathsep=" " property="jar.classpath"> - <path path="${run.classpath.without.build.classes.dir}"/> - <chainedmapper> - <flattenmapper/> - <globmapper from="*" to="lib/*"/> - </chainedmapper> - </pathconvert> - <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> - <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> - <fileset dir="${build.classes.dir}"/> - <manifest> - <attribute name="Class-Path" value="${jar.classpath}"/> - </manifest> - </copylibs> - </target> - <target name="-post-jar"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-jar-with-libraries-without-mainclass,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/> - <!-- - ================= - EXECUTION SECTION - ================= - --> - <target depends="init,compile" description="Run a main class." name="run"> - <j2seproject1:java> - <customize> - <arg line="${application.args}"/> - </customize> - </j2seproject1:java> - </target> - <target name="-do-not-recompile"> - <property name="javac.includes.binary" value=""/> - </target> - <target depends="init,compile-single" name="run-single"> - <fail unless="run.class">Must select one file in the IDE or set run.class</fail> - <j2seproject1:java classname="${run.class}"/> - </target> - <target depends="init,compile-test-single" name="run-test-with-main"> - <fail unless="run.class">Must select one file in the IDE or set run.class</fail> - <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> - </target> - <!-- - ================= - DEBUGGING SECTION - ================= - --> - <target depends="init" if="netbeans.home" name="-debug-start-debugger"> - <j2seproject1:nbjpdastart name="${debug.class}"/> - </target> - <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test"> - <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/> - </target> - <target depends="init,compile" name="-debug-start-debuggee"> - <j2seproject3:debug> - <customize> - <arg line="${application.args}"/> - </customize> - </j2seproject3:debug> - </target> - <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> - <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> - <j2seproject1:nbjpdastart stopclassname="${main.class}"/> - </target> - <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> - <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> - <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> - <j2seproject3:debug classname="${debug.class}"/> - </target> - <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> - <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> - <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> - <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> - </target> - <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> - <target depends="init" name="-pre-debug-fix"> - <fail unless="fix.includes">Must set fix.includes</fail> - <property name="javac.includes" value="${fix.includes}.java"/> - </target> - <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> - <j2seproject1:nbjpdareload/> - </target> - <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> - <!-- - =============== - JAVADOC SECTION - =============== - --> - <target depends="init" name="-javadoc-build"> - <mkdir dir="${dist.javadoc.dir}"/> - <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}"> - <classpath> - <path path="${javac.classpath}"/> - </classpath> - <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> - <filename name="**/*.java"/> - </fileset> - <fileset dir="${src.java.dir}" excludes="${excludes}" includes="${includes}"> - <filename name="**/*.java"/> - </fileset> - <fileset dir="${src.native.dir}" excludes="${excludes}" includes="${includes}"> - <filename name="**/*.java"/> - </fileset> - <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> - <include name="**/*.java"/> - </fileset> - </javadoc> - </target> - <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> - <nbbrowse file="${dist.javadoc.dir}/index.html"/> - </target> - <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> - <!-- - ========================= - JUNIT COMPILATION SECTION - ========================= - --> - <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> - <mkdir dir="${build.test.classes.dir}"/> - </target> - <target name="-pre-compile-test"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target if="do.depend.true" name="-compile-test-depend"> - <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> - </target> - <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> - <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> - <copy todir="${build.test.classes.dir}"> - <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> - </copy> - </target> - <target name="-post-compile-test"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> - <target name="-pre-compile-test-single"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> - <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> - <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> - <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/> - <copy todir="${build.test.classes.dir}"> - <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> - </copy> - </target> - <target name="-post-compile-test-single"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> - <!-- - ======================= - JUNIT EXECUTION SECTION - ======================= - --> - <target depends="init" if="have.tests" name="-pre-test-run"> - <mkdir dir="${build.test.results.dir}"/> - </target> - <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> - <j2seproject3:junit testincludes="**/*Test.java"/> - </target> - <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> - <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> - </target> - <target depends="init" if="have.tests" name="test-report"/> - <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> - <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> - <target depends="init" if="have.tests" name="-pre-test-run-single"> - <mkdir dir="${build.test.results.dir}"/> - </target> - <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> - <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> - <j2seproject3:junit excludes="" includes="${test.includes}"/> - </target> - <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> - <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> - </target> - <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/> - <!-- - ======================= - JUNIT DEBUGGING SECTION - ======================= - --> - <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test"> - <fail unless="test.class">Must select one file in the IDE or set test.class</fail> - <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/> - <delete file="${test.report.file}"/> - <mkdir dir="${build.test.results.dir}"/> - <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}"> - <customize> - <syspropertyset> - <propertyref prefix="test-sys-prop."/> - <mapper from="test-sys-prop.*" to="*" type="glob"/> - </syspropertyset> - <arg value="${test.class}"/> - <arg value="showoutput=true"/> - <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/> - <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/> - </customize> - </j2seproject3:debug> - </target> - <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> - <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> - </target> - <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> - <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> - <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> - </target> - <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> - <!-- - ========================= - APPLET EXECUTION SECTION - ========================= - --> - <target depends="init,compile-single" name="run-applet"> - <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> - <j2seproject1:java classname="sun.applet.AppletViewer"> - <customize> - <arg value="${applet.url}"/> - </customize> - </j2seproject1:java> - </target> - <!-- - ========================= - APPLET DEBUGGING SECTION - ========================= - --> - <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> - <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> - <j2seproject3:debug classname="sun.applet.AppletViewer"> - <customize> - <arg value="${applet.url}"/> - </customize> - </j2seproject3:debug> - </target> - <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> - <!-- - =============== - CLEANUP SECTION - =============== - --> - <target name="-deps-clean-init" unless="built-clean.properties"> - <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/> - <delete file="${built-clean.properties}" quiet="true"/> - </target> - <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> - <echo level="warn" message="Cycle detected: JOCL was already built"/> - </target> - <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> - <mkdir dir="${build.dir}"/> - <touch file="${built-clean.properties}" verbose="false"/> - <property file="${built-clean.properties}" prefix="already.built.clean."/> - <antcall target="-warn-already-built-clean"/> - <propertyfile file="${built-clean.properties}"> - <entry key="${basedir}" value=""/> - </propertyfile> - </target> - <target depends="init" name="-do-clean"> - <delete dir="${build.dir}"/> - <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/> - </target> - <target name="-post-clean"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> - <target name="-check-call-dep"> - <property file="${call.built.properties}" prefix="already.built."/> - <condition property="should.call.dep"> - <not> - <isset property="already.built.${call.subproject}"/> - </not> - </condition> - </target> - <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep"> - <ant antfile="${call.script}" inheritall="false" target="${call.target}"> - <propertyset> - <propertyref prefix="transfer."/> - <mapper from="transfer.*" to="*" type="glob"/> - </propertyset> - </ant> - </target> -</project> diff --git a/obsolete.make-nb/nbproject/genfiles.properties b/obsolete.make-nb/nbproject/genfiles.properties deleted file mode 100644 index 5fa8127d..00000000 --- a/obsolete.make-nb/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -build.xml.data.CRC32=29d6eb43 -build.xml.script.CRC32=eb8aa8d2 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=174e0dcd -nbproject/build-impl.xml.script.CRC32=eeff7626 -nbproject/[email protected] diff --git a/obsolete.make-nb/nbproject/project.properties b/obsolete.make-nb/nbproject/project.properties deleted file mode 100644 index 1a6ce8a7..00000000 --- a/obsolete.make-nb/nbproject/project.properties +++ /dev/null @@ -1,122 +0,0 @@ -#default values, overwrite this or pass it as -D ant property if required -gluegen.root=../gluegen -jogl.root=../jogl -rootrel.build=build - -annotation.processing.enabled=true -annotation.processing.enabled.in.editor=false -annotation.processing.run.all.processors=true -javac.processorpath=\ - ${javac.classpath} -application.title=JOCL -application.vendor=JogAmp Community -build.classes.excludes=**/*.java,**/*.jtemplate,**/*.form,**/*.c,**/*.html -# This directory is removed when the project is cleaned: -build.dir=${rootrel.build} -build.classes.dir=${build.dir}/classes -build.generated.dir=${build.dir}/generated -build.generated.sources.dir=${build.dir}/generated-sources -# Only compile against the classpath explicitly listed here: -build.sysclasspath=ignore -build.test.classes.dir=${build.dir}/test/classes -build.test.results.dir=${build.dir}/test/results -# Uncomment to specify the preferred debugger connection transport: -#debug.transport=dt_socket -debug.classpath=\ - ${run.classpath} -debug.test.classpath=\ - ${run.test.classpath} -# This directory is removed when the project is cleaned: -dist.dir=${build.dir} -dist.jar=${dist.dir}/jar/jocl.jar -dist.javadoc.dir=${build.dir}/javadoc/jocl/javadoc -endorsed.classpath= -excludes= - -file.reference.junit-4.8.1.jar=lib/junit_4/junit-4.8.1.jar -file.reference.gluegen-rt.jar=${gluegen.root}/${rootrel.build}/gluegen-rt.jar -file.reference.gluegen.jar=${gluegen.root}/${rootrel.build}/gluegen.jar -file.reference.jogl-all.jar=${jogl.root}/${rootrel.build}/jar/jogl-all.jar - -includes=** -jar.compress=false -javac.classpath=\ - ${file.reference.gluegen-rt.jar}:\ - ${file.reference.jogl-all.jar} -javac.deprecation=true -javac.test.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir}:\ - ${file.reference.junit-4.8.1.jar} -javadoc.additionalparam= -javadoc.author=true -javadoc.encoding=${source.encoding} -javadoc.noindex=false -javadoc.nonavbar=false -javadoc.notree=false -javadoc.private=false -javadoc.splitindex=true -javadoc.use=true -javadoc.version=false -javadoc.windowtitle=Java Binding for the OpenCL API -jaxbwiz.endorsed.dirs="${netbeans.home}/../ide12/modules/ext/jaxb/api" -jnlp.codebase.type=local -jnlp.codebase.url=file:${basedir}/dist/ -jnlp.descriptor=application -jnlp.enabled=false -jnlp.offline-allowed=false -jnlp.signed=false -main.class=com.jogamp.opencl.util.CLInfo -manifest.file=${build.dir}/manifest.mf -meta.inf.dir=${src.dir}/META-INF -platform.active=default_platform -run.classpath=\ - ${dist.jar}:${javac.classpath}:\ - ${build.classes.dir} -# Space-separated list of JVM arguments used when running the project -# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value -# or test-sys-prop.name=value to set system properties for unit tests): -# -Djogamp.debug.NativeLibrary=true \ -# -Djogamp.debug=all \ -# -run.jvmargs=${jvmDataModel.arg} -Xmx256m \ - -Djava.library.path=\ - "${basedir}/${rootrel.build}/natives/jocl${path.separator}\ - ${jogl.root}/${rootrel.build}/lib${path.separator}\ - ${gluegen.root}/${rootrel.build}/obj" -run.test.classpath=\ - ${dist.jar}:${javac.test.classpath}:\ - ${build.test.classes.dir} -source.encoding=UTF-8 -source.reference.gluegen-rt.jar=${gluegen.root}/src/java:${gluegen.root}/${rootrel.build}/gensrc/java -source.reference.jogl-all.jar=${jogl.root}/${rootrel.build}/jogl/classes:${jogl.root}/${rootrel.build}/nativewindow/gensrc/classes/:${jogl.root}/${rootrel.build}/newt/classes -src.dir=src -src.java.dir=gensrc/java -src.native.dir=gensrc/native -test.src.dir=test -#no classpath for jarfile -jar.classpath= - -#force enable jdk7 features -#enable.jdk7.features=true - -#crosscompile=true - -#enable compiletime linking -#static.binding=true - -#overwrite lib path for static linking -#use only if static.binding is true -#opencl.lib32.dir=C:/Program Files (x86)/ATI Stream/lib/x86 -#opencl.lib64.dir=C:/Program Files (x86)/ATI Stream/lib/x86_64 - -#opencl.lib32.dir=C:/NVIDIAComputingSDK/OpenCL/common/lib/Win32 -#opencl.lib64.dir=C:/NVIDIAComputingSDK/OpenCL/common/lib/x64 - -#disable the build build the native part of the bindings -#c.dont.compile=true -#dont.generate=true - -#for hudson... hudson will notice anyway since the log is parsed -#build will not fail when a test fails -ignore.failing.tests=true diff --git a/obsolete.make-nb/nbproject/project.xml b/obsolete.make-nb/nbproject/project.xml deleted file mode 100644 index 8ff22a5e..00000000 --- a/obsolete.make-nb/nbproject/project.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://www.netbeans.org/ns/project/1"> - <type>org.netbeans.modules.java.j2seproject</type> - <configuration> - <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> - <name>JOCL</name> - <minimum-ant-version>1.8</minimum-ant-version> - <explicit-platform explicit-source-supported="true"/> - <source-roots> - <root id="src.dir"/> - <root id="src.java.dir"/> - <root id="src.native.dir"/> - </source-roots> - <test-roots> - <root id="test.src.dir"/> - </test-roots> - </data> - <libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1"> - <definitions>./lib/nblibraries.properties</definitions> - </libraries> - <references xmlns="http://www.netbeans.org/ns/ant-project-references/1"/> - </configuration> -</project> |