opencv/modules/java/jar/build.xml.in

64 lines
2.6 KiB
XML
Raw Normal View History

<!-- This is an Apache Ant build file. As part of the desktop java build -->
<!-- process, this config is used to package the autogenerated .java -->
<!-- interface files into OpenCV.jar -->
<project name="OpenCV">
2017-04-05 22:50:46 +08:00
2017-12-29 12:15:30 +08:00
<tstamp>
<format property="timestamp" pattern="EEE MMM d yyyy HH:mm:ss z"/>
</tstamp>
<target name="jar">
<!-- This is to make a jar with a source attachment, for e.g. easy -->
<!-- navigation in Eclipse. See this question: -->
<!-- http://stackoverflow.com/questions/3584968/ant-how-to-compile-jar-that-includes-source-attachment -->
<javac sourcepath="" srcdir="java" destdir="build/classes" debug="on" includeantruntime="false" @OPENCV_ANT_JAVAC_EXTRA_ATTRS@ >
<include name="**/*.java"/>
<compilerarg line="-encoding utf-8"/>
</javac>
2017-12-29 12:15:30 +08:00
<jar destfile="@OPENCV_JAR_FILE@">
<fileset dir="java"/>
<fileset dir="build/classes"/>
<manifest>
<attribute name="Specification-Title" value="OpenCV"/>
<attribute name="Specification-Version" value="@OPENCV_VERSION@"/>
<attribute name="Implementation-Title" value="OpenCV"/>
<attribute name="Implementation-Version" value="@OPENCV_VCSVERSION@"/>
<attribute name="Implementation-Date" value="${timestamp}"/>
</manifest>
</jar>
</target>
2017-04-05 22:50:46 +08:00
<target name="javadoc">
2019-06-05 18:44:03 +08:00
<copy file="@OpenCV_SOURCE_DIR@/doc/mymath.js"
2019-06-07 03:55:17 +08:00
todir="@OPENCV_JAVADOC_DESTINATION@" />
2019-06-05 18:44:03 +08:00
2019-06-07 03:55:17 +08:00
<!-- synchronize with platforms\android\build_sdk.py -->
2017-04-05 22:50:46 +08:00
<javadoc
packagenames="org.opencv.*"
2017-12-29 12:15:30 +08:00
sourcepath="java"
2019-06-07 03:55:17 +08:00
destdir="@OPENCV_JAVADOC_DESTINATION@"
2017-04-05 22:50:46 +08:00
Windowtitle="OpenCV @OPENCV_VERSION_PLAIN@ Java documentation"
Doctitle="OpenCV Java documentation (@OPENCV_VERSION@)"
2017-12-29 12:15:30 +08:00
bottom="Generated on ${timestamp} / OpenCV @OPENCV_VCSVERSION@"
2019-06-05 18:44:03 +08:00
failonerror="true"
encoding="UTF-8" charset="UTF-8" docencoding="UTF-8"
link="https://docs.oracle.com/javase/6/docs/api/"
additionalparam="--allow-script-in-comments"
>
<Header>
<![CDATA[
<script>
var url = window.location.href;
2019-06-07 03:55:17 +08:00
var pos = url.lastIndexOf('/javadoc/');
url = pos >= 0 ? (url.substring(0, pos) + '/javadoc/mymath.js') : (window.location.origin + '/mymath.js');
2019-06-05 18:44:03 +08:00
var script = document.createElement('script');
script.src = '@OPENCV_MATHJAX_RELPATH@/MathJax.js?config=TeX-AMS-MML_HTMLorMML,' + url;
document.getElementsByTagName('head')[0].appendChild(script);
</script>
]]>
</Header>
</javadoc>
2017-04-05 22:50:46 +08:00
</target>
</project>