aboutsummaryrefslogtreecommitdiffstats
path: root/make/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'make/build.xml')
-rw-r--r--make/build.xml21
1 files changed, 15 insertions, 6 deletions
diff --git a/make/build.xml b/make/build.xml
index 76b9f0af..2b6a87aa 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -165,25 +165,31 @@
<property name="config" value="${project.root}/make/config" />
<property name="stub.includes" value="${project.root}/make/stub_includes" />
<property name="stub.includes.dir" value="stub_includes" /> <!-- NOTE: this MUST be relative for FileSet -->
+ <property name="gen.includes" value="${project.root}/make/stub_includes.gen" />
+ <property name="gen.includes.dir" value="stub_includes.gen" /> <!-- NOTE: this MUST be relative for FileSet -->
<!-- Directories used for OpenCL header file preprocessing. -->
<property name="etc.build.dir" value="${build}/etc" />
<property name="headers.orig" value="${stub.includes}/CL_orig" />
- <property name="headers.dest" value="${build}/includes/CL" />
+ <property name="headers.dest" value="${gen.includes}/CL" />
<!-- The headers from which Java files are generated -->
<dirset id="stub.includes.fileset.all" dir=".">
<include name="${stub.includes.dir}"/>
+ <include name="${gen.includes.dir}"/>
<include name="${stub.includes.dir}/jvm"/>
<include name="${stub.includes.dir}/gl"/>
<include name="${stub.includes.dir}/common"/>
</dirset>
<fileset id="stub.includes.dependencies.fileset.1" dir="${stub.includes.dir}">
- <include name="CL/**" />
+ <include name="CL_orig/**" />
<include name="GL3/**" />
</fileset>
- <fileset id="stub.includes.dependencies.fileset.2" file="${gluegen.jar}" />
- <fileset id="stub.includes.dependencies.fileset.3" dir="config">
+ <fileset id="stub.includes.dependencies.fileset.2" dir="${gen.includes.dir}">
+ <include name="CL/**" />
+ </fileset>
+ <fileset id="stub.includes.dependencies.fileset.3" file="${gluegen.jar}" />
+ <fileset id="stub.includes.dependencies.fileset.4" dir="config">
<include name="*.cfg" />
<include name="*.java" />
<include name="*.c" />
@@ -207,7 +213,7 @@
<mkdir dir="${classes}" />
<mkdir dir="${obj}" />
<mkdir dir="${obj.jocl}" />
- <mkdir dir="${build}/includes" />
+ <mkdir dir="${gen.includes}" />
<property name="archive.name" value="jocl-${jocl.version}-${os.and.arch}" />
<property name="archive" value="${build}/${archive.name}" />
@@ -272,6 +278,7 @@
<srcfileset refid="stub.includes.dependencies.fileset.1" />
<srcfileset refid="stub.includes.dependencies.fileset.2" />
<srcfileset refid="stub.includes.dependencies.fileset.3" />
+ <srcfileset refid="stub.includes.dependencies.fileset.4" />
<targetfileset dir=".">
<include name="${src.generated.java}/**/*.java" />
<include name="${src.generated.c}/**/*.c" />
@@ -284,6 +291,7 @@
<srcfiles refid="stub.includes.dependencies.fileset.1" />
<srcfiles refid="stub.includes.dependencies.fileset.2" />
<srcfiles refid="stub.includes.dependencies.fileset.3" />
+ <srcfiles refid="stub.includes.dependencies.fileset.4" />
</uptodate>
</target>
@@ -622,6 +630,7 @@
<sysincludepath path="${java.includes.dir.platform}"/>
<sysincludepath path="${stub.includes.gluegen.cc}"/>
<includepath path="${stub.includes.dir}"/>
+ <includepath path="${gen.includes.dir}"/>
<!-- This is for the generated headers for handwritten C code -->
<includepath path="${src.generated.c}" />
<includepath path="${src.c}"/>
@@ -898,7 +907,7 @@
<fileset dir="${tempdir}" />
<fileset dir="${javadoc}" />
<fileset dir="${javadoc.dev}" />
- <fileset dir="${headers.dest}" />
+ <fileset dir="${gen.includes}" />
</delete>
<ant antfile="build-test.xml" target="clean"/>
</target>