Jogamp
Add debug build targets to match those in gluegen and jogl
authorWade Walker <wwalker3@austin.rr.com>
Mon, 6 Jul 2015 19:47:23 +0000 (14:47 -0500)
committerWade Walker <wwalker3@austin.rr.com>
Mon, 6 Jul 2015 22:04:12 +0000 (17:04 -0500)
.externalToolBuilders/jocl-demos builder.launch
.project
build.xml
nbproject/build-impl.xml

index 95313b7..7fe5d3a 100644 (file)
@@ -1,8 +1,9 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
-<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AUTO_TARGETS" value="compile,"/>
+<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AFTER_CLEAN_TARGETS" value="all.ide,"/>
+<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AUTO_TARGETS" value="all.ide,"/>
 <stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_CLEAN_TARGETS" value="clean,"/>
-<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_MANUAL_TARGETS" value="compile,"/>
+<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_MANUAL_TARGETS" value="all.ide,"/>
 <booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
 <booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
 <stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${project}"/>
@@ -12,7 +13,7 @@
 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="jocl-demos"/>
 <booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="true"/>
 <stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc}/jocl-demos/build.xml"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="incremental,auto,clean"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,auto,clean"/>
 <booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
 <stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc}/jocl-demos"/>
 </launchConfiguration>
index b8ebd3f..c9f73b8 100644 (file)
--- a/.project
+++ b/.project
                                        <key>LaunchConfigHandle</key>
                                        <value>&lt;project&gt;/.externalToolBuilders/jocl-demos builder.launch</value>
                                </dictionary>
-                               <dictionary>
-                                       <key>incclean</key>
-                                       <value>true</value>
-                               </dictionary>
                        </arguments>
                </buildCommand>
        </buildSpec>
index 0f5b7d0..9a83b03 100644 (file)
--- a/build.xml
+++ b/build.xml
     <import file="${gluegen.root}/make/jogamp-env.xml" />
     <import file="${gluegen.root}/make/jogamp-archivetasks.xml" />
 
+    <target name="set.debug">
+        <property name="javacdebug"       value="true" /> 
+        <property name="javacdebuglevel"  value="source,lines,vars" /> 
+    </target>
+
     <target name="-pre-init" depends="jogamp.env.init">
         <property name="javac.debug" value="${javacdebug}"/>
+        <property name="javac.debuglevel" value="${javacdebuglevel}"/>
         <property name="javac.source" value="${target.sourcelevel}"/>
         <property name="javac.target" value="${target.targetlevel}"/>
-
-       <property name="c.compiler.debug" value="true" /> 
-        <property name="javacdebug"       value="true" /> 
-        <property name="javacdebuglevel"  value="source,lines,vars" /> 
-
         <property name="javac.compilerargs" value="-bootclasspath '${target.rt.jar}' -Xlint -g:${javacdebuglevel}"/>
     </target>
 
         </copy>
     </target>
 
+    <target name="all" description="Release build" depends="default"/>
+    <target name="all.debug" description="Debug build" depends="set.debug, default"/>
+    <target name="all.ide" description="Debug IDE build, no tagging or archives" depends="set.debug, compile"/>
+
 </project>
index b99e6ed..231df5a 100644 (file)
@@ -159,13 +159,14 @@ is divided into following sections:
             <attribute default="${includes}" name="includes"/>
             <attribute default="${excludes}" name="excludes"/>
             <attribute default="${javac.debug}" name="debug"/>
+            <attribute default="${javac.debuglevel}" name="debuglevel"/>
             <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}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
+                <javac debug="@{debug}" debuglevel="@{debuglevel}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
                     <src>
                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">
                             <include name="*"/>
http://JogAmp.org git info: FAQ, tutorial and man pages.