summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-03-29 08:43:10 +0100
committerSven Gothel <[email protected]>2013-03-29 08:43:10 +0100
commit7fb2cb5ba0b3c841b50ff094163c07a7097326ef (patch)
tree311d46fe2815749bc6d92fadcb79fb52fd88b207
parenteaa95fbcaff7d140f41cdc6a7e1b060840c65f95 (diff)
Adapt to new version scheme, see GlueGen a3f2ef50ad33c58a240a17fcf03e415d772207c3, etc
-rw-r--r--build.xml27
-rw-r--r--manifest_template.mf1
-rw-r--r--nbproject/project.properties4
3 files changed, 13 insertions, 19 deletions
diff --git a/build.xml b/build.xml
index 0768736e..43b67826 100644
--- a/build.xml
+++ b/build.xml
@@ -16,12 +16,7 @@
<property name="etc.build.dir" value="${basedir}/etc/build" />
<property name="headers.dest" value="${basedir}/resources/includes/CL" />
- <tstamp>
- <format property="version.timestamp" pattern="yyyyMMdd"/>
- </tstamp>
-
<property name="jocl.build.number" value="manual" />
- <property name="jocl.build.id" value="${version.timestamp}" />
<property name="jocl.build.branch" value="master" />
<property name="jocl.build.commit" value="manual" />
@@ -36,6 +31,11 @@
</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}"/>
@@ -47,18 +47,15 @@
<property file="nbproject/configs/${config}.properties"/>
<property file="nbproject/project.properties"/>
- <property name="jocl.version" value="${jocl_base_version}-b${jocl.build.number}-${version.timestamp}" />
- <property name="jocl.version.plus" value="${jocl_base_version}-${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="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="${jocl_base_version}"/>
- <filter token="VERSION" value="${jocl.version}"/>
- <filter token="SCM_BRANCH" value="${jocl.build.branch}"/>
- <filter token="SCM_COMMIT" value="${jocl.build.commit}"/>
+ <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}"/>
</filterset>
</copy>
</target>
@@ -366,8 +363,8 @@
androidmanifest.path="resources/android/AndroidManifest-jocl.xml"
androidresources.path="resources/android/res-jocl"
jarmanifest.path="${build.dir.abs}/manifest.mf"
- version.code="${jocl_int_version}"
- version.name="${jocl.version.plus}" />
+ 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" />
diff --git a/manifest_template.mf b/manifest_template.mf
index 07166a67..9949b48d 100644
--- a/manifest_template.mf
+++ b/manifest_template.mf
@@ -3,6 +3,7 @@ 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@
diff --git a/nbproject/project.properties b/nbproject/project.properties
index 7fe08410..1a6ce8a7 100644
--- a/nbproject/project.properties
+++ b/nbproject/project.properties
@@ -97,10 +97,6 @@ test.src.dir=test
#no classpath for jarfile
jar.classpath=
-#the jocl version you are building
-jocl_base_version=0.9
-jocl_int_version=0
-
#force enable jdk7 features
#enable.jdk7.features=true