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

Last change on this file since 4422 was 4422, checked in by ulf, 12 years ago

building the lang plugin doesn't work on windows, as it depends on gettext (which is not available on win)

I've split the build into two targets, one for all platforms and one that builds on unix only (that calls the all target then).
BTW: there's no "clean" target in the lang ant script, so better don't enable it ;-)

File size: 3.5 KB
Line 
1<project name="josm-plugins" default="build" basedir=".">
2
3        <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary -->
4        <!--<property name="josm" location="../../../../editors/josm/dist/josm-custom.jar" />-->
5        <!--<property name="josm" location="../josm/josm-latest.jar" ></property>-->
6       
7        <!-- target directory to place the plugin in -->
8        <!-- Windows has a different home directory scheme then unix/linux -->
9        <!-- I don't know an automatic way to find it with ant :-(, if you know, please fix -->
10        <!--<property name="plugins" location="${user.home}/.josm/plugins" ></property>-->
11        <!--<property name="plugins" location="${user.home}/Anwendungsdaten/JOSM/plugins" ></property>-->
12
13        <!-- you should not need to modify anything below this! -->
14
15
16        <target name="compile_josm">
17                <ant dir="../core" target="dist" />
18        </target>
19
20        <target name="compile" depends="compile_josm">
21        </target>
22
23        <!-- build plugins (where the build process works on all systems) -->
24        <target name="build-port" depends="compile">
25                <ant dir="colorscheme" antfile="build.xml" target="dist"/>
26                <!--ant dir="grid" antfile="build.xml" target="build"/-->
27                <ant dir="livegps" antfile="build.xml" target="dist"/>
28                <ant dir="mappaint" antfile="build.xml" target="build"/>
29                <ant dir="namefinder" antfile="build.xml" target="dist"/>
30                <ant dir="navigator" antfile="build.xml" target="dist"/>
31                <ant dir="nearclick" antfile="build.xml" target="build"/>
32                <ant dir="osmarender" antfile="build.xml" target="build"/>
33                <ant dir="plastic_laf" antfile="build.xml" target="build"/>
34                <ant dir="pluginmanager" antfile="build.xml" target="dist"/>
35                <ant dir="slippymap" antfile="build.xml" target="dist"/>
36                <ant dir="surveyor" antfile="build.xml" target="dist"/>
37                <ant dir="tagging-preset-tester" antfile="build.xml" target="build"/>
38                <ant dir="tways" antfile="build.xml" target="build"/>
39                <ant dir="validator" antfile="build.xml" target="build"/>
40                <ant dir="waypoints" antfile="build.xml" target="build"/>
41                <ant dir="wmsplugin" antfile="build.xml" target="build"/>
42                <ant dir="ywms" antfile="build.xml" target="build"/>
43        </target>
44
45        <!-- build plugins (won't work on windows, use build-port instead) -->
46        <target name="build" depends="build-port">
47                <ant dir="lang" antfile="build.xml" target="install-all"/>
48        </target>
49
50        <target name="clean">
51                <ant dir="colorscheme" antfile="build.xml" target="clean"/>
52                <!--ant dir="grid" antfile="build.xml" target="clean"/-->
53                <!--ant dir="lang" antfile="build.xml" target="clean"/-->
54                <ant dir="livegps" antfile="build.xml" target="clean"/>
55                <ant dir="mappaint" antfile="build.xml" target="clean"/>
56                <ant dir="namefinder" antfile="build.xml" target="clean"/>
57                <ant dir="navigator" antfile="build.xml" target="clean"/>
58                <ant dir="nearclick" antfile="build.xml" target="clean"/>
59                <ant dir="osmarender" antfile="build.xml" target="clean"/>
60                <ant dir="plastic_laf" antfile="build.xml" target="clean"/>
61                <ant dir="pluginmanager" antfile="build.xml" target="clean"/>
62                <ant dir="surveyor" antfile="build.xml" target="clean"/>
63                <ant dir="tagging-preset-tester" antfile="build.xml" target="clean"/>
64                <ant dir="tways" antfile="build.xml" target="clean"/>
65                <ant dir="validator" antfile="build.xml" target="clean"/>
66                <ant dir="waypoints" antfile="build.xml" target="clean"/>
67                <ant dir="wmsplugin" antfile="build.xml" target="clean"/>
68                <ant dir="ywms" antfile="build.xml" target="clean"/>
69        </target>
70
71        <target name="clean_install">
72        </target>
73
74        <target name="install" depends="build">
75        </target>
76
77</project>
Note: See TracBrowser for help on using the repository browser.