source: subversion/applications/editors/josm/plugins/videomapping/build.xml @ 30736

Last change on this file since 30736 was 30639, checked in by donvip, 5 years ago

[josm_videomapping] update to vlcj 3.0.1 / JNA 3.5.2 + fix various exceptions seen in testing

  • Property svn:mime-type set to text/xml
File size: 4.1 KB
RevLine 
[26174]1<?xml version="1.0" encoding="utf-8"?>
2<project name="videomapping" default="dist" basedir=".">
[28289]3
[26174]4    <!-- enter the SVN commit message -->
[29782]5    <property name="commit.message" value="fix after JOSM update"/>
[26174]6    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
[30416]7    <property name="plugin.main.version" value="7001"/>
[28289]8
[26174]9    <!--
10    **********************************************************
[28289]11    ** include targets that all plugins have in common
[26174]12    **********************************************************
13    -->
[28289]14    <import file="../build-common.xml"/>
15
[30639]16    <property name="vlcj" value="${plugin.lib.dir}/vlcj-3.0.1.jar"/>
17    <property name="jna" value="${plugin.lib.dir}/jna-3.5.2.jar"/>
18    <property name="platform" value="${plugin.lib.dir}/platform-3.5.2.jar"/>
[28289]19    <!-- classpath -->
20    <path id="classpath">
21        <pathelement path="${josm}"/>
22        <pathelement location="${vlcj}"/>
23        <!--Add extra libraries -->
24        <pathelement location="${jna}"/>
25        <pathelement location="${platform}"/>
[28967]26        <fileset dir="../log4j/lib">
27            <include name="**/*.jar"/>
28        </fileset>
[28289]29    </path>
[28808]30    <!--
31    **********************************************************
32    ** compile - complies the source tree
33    ** Overrides the target from build-common.xml
34    **********************************************************
35    -->
36    <target name="compile" depends="init">
37        <echo message="compiling sources for ${plugin.jar} ..."/>
[30530]38        <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}" encoding="UTF-8" includeantruntime="false">
[28808]39            <compilerarg value="-Xlint:deprecation"/>
40            <compilerarg value="-Xlint:unchecked"/>
41        </javac>
42    </target>
[28289]43
[26174]44    <!--
45    **********************************************************
46    ** dist - creates the plugin jar
47    **********************************************************
48    -->
49    <target name="dist" depends="compile,revision">
50        <echo message="creating ${ant.project.name}.jar ... "/>
51        <copy todir="${plugin.build.dir}/resources">
52            <fileset dir="resources"/>
53        </copy>
54        <copy todir="${plugin.build.dir}/images">
55            <fileset dir="images"/>
56        </copy>
57        <copy todir="${plugin.build.dir}/data">
58            <fileset dir="data"/>
59        </copy>
60        <copy todir="${plugin.build.dir}">
61            <fileset dir=".">
62                <include name="README"/>
63                <include name="LICENSE"/>
64            </fileset>
65        </copy>
66        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
[28289]67        <!--
[26174]68        ************************************************
69        ** configure these properties. Most of them will be copied to the plugins
70        ** manifest file. Property values will also show up in the list available
71        ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
72        **
73        ************************************************
[28289]74        -->
[26174]75            <manifest>
76                <attribute name="Author" value="Matthias Meißer"/>
77                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.videomapping.VideoPlugin"/>
78                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
79                <attribute name="Plugin-Description" value="(This Plugin is currently work in progress!!!) Links and syncs a georeferenced video against a GPS track, to use it for identify visible objects."/>
80                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/VideoMapping"/>
[27354]81                <attribute name="Plugin-Icon" value="images/videomapping.png"/>
[26174]82                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
[28967]83                <attribute name="Plugin-Requires" value="log4j"/>
[26174]84                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
85            </manifest>
86            <!--added to bundle libs-->
[28289]87            <zipfileset src="${jna}"/>
88            <zipfileset src="${platform}"/>
89            <zipfileset src="${vlcj}"/>
[26174]90        </jar>
91    </target>
92</project>
Note: See TracBrowser for help on using the repository browser.