aboutsummaryrefslogtreecommitdiffstats
path: root/make/build.xml
blob: 2980d4139d7fabddc240b9363a68f1ccefe6b5a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115

<project name="JOGL_ALL" basedir="." default="all">

    <target name="init">
        <property name="project.root" value=".." />
        <condition property="rootrel.build" value="build">
          <not>
              <isset property="rootrel.build"/>
          </not>
        </condition>
        <property name="build" value="${project.root}/${rootrel.build}" />
        <property name="src" value="${project.root}/src" />

        <property name="nwi.make.dir" value="." />
        <property name="nwi.build.xml" value="${nwi.make.dir}/build-nwi.xml" />
        <property name="jogl.make.dir" value="." />
        <property name="jogl.build.xml" value="${jogl.make.dir}/build-jogl.xml" />
        <property name="newt.make.dir" value="." />
        <property name="newt.build.xml" value="${newt.make.dir}/build-newt.xml" />

        <property name="all.srcj.path" value="${src}/nwi/classes;${src}/jogl/classes;${src}/newt/classes" />
        <property name="all.genj.path" value="${build}-nwi/gensrc/classes;${build}-jogl/gensrc/classes;${build}-newt/gensrc/classes" />

        <!-- The javadoc dirs. -->
        <property name="javadoc" value="${project.root}/javadoc_joglnwinewt_public" />
        <property name="javadoc.spec" value="${project.root}/javadoc_joglnwinewt_spec" />
        <property name="javadoc.dev" value="${project.root}/javadoc_joglnwinewt_dev" />
        <property name="javadoc.link" value="http://java.sun.com/j2se/1.4.2/docs/api/" />
        <property name="javadoc.windowtitle" value="JOGL, NWI and NEWT API -- JSR-231 ${base_version} Specification" />
        <property name="javadoc.overview" value="spec-overview.html" />
        <property name="javadoc.spec.packagenames" value="javax.media.nwi.*, javax.media.opengl.*, com.sun.javafx.newt, com.sun.javafx.newt.opengl" />
        <property name="javadoc.packagenames" value="${javadoc.spec.packagenames},com.sun.opengl.util.*" />
        <property name="javadoc.dev.packagenames" value="${javadoc.packagenames},com.sun.opengl.impl.*,com.sun.nwi.impl.*,com.sun.javafx.newt.*,com.sun.gluegen,com.sun.gluegen.runtime" />
    <property name="javadoc.bottom" value="Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to &lt;a href=&quot;http://jcp.org/en/jsr/detail?id=231&quot;&gt;license terms&lt;/a&gt;." />

        <property name="gluegen-rt.jar" value="../../gluegen/${rootrel.build}/gluegen-rt.jar" />
        <property name="nwi.all.jar" value="../${rootrel.build}-nwi/nwi.all.jar" />
        <property name="jogl.all.jar" value="../${rootrel.build}-jogl/jogl.all.jar" />
        <property name="newt.all.jar" value="../${rootrel.build}-newt/newt.all.jar" />

        <path id="all.classpath">
            <pathelement location="${nwi.all.jar}" />
            <pathelement location="${gluegen-rt.jar}" />
            <pathelement location="${jogl.all.jar}" />
            <pathelement location="${newt.all.jar}" />
        </path>

    </target>

    <target name="build.nwi" depends="init">
        <ant antfile="${nwi.build.xml}" dir="${nwi.make.dir}" target="all" inheritAll="false"/>
    </target>

    <target name="build.jogl" depends="init">
        <ant antfile="${jogl.build.xml}" dir="${jogl.make.dir}" target="all" inheritAll="false"/>
    </target>

    <target name="build.newt" depends="init">
        <ant antfile="${newt.build.xml}" dir="${newt.make.dir}" target="all" inheritAll="false"/>
    </target>

    <target name="all" description="Build nwi, jogl and newt projects" depends="init,build.nwi,build.jogl,build.newt" />

    <target name="clean" depends="init">
        <ant antfile="${nwi.build.xml}" dir="${nwi.make.dir}" target="clean" inheritAll="false"/>
        <ant antfile="${jogl.build.xml}" dir="${jogl.make.dir}" target="clean" inheritAll="false"/>
        <ant antfile="${newt.build.xml}" dir="${newt.make.dir}" target="clean" inheritAll="false"/>
    </target>        

    <target name="javadoc" depends="init">
        <!-- Build the general Javadoc -->
        <javadoc packagenames="${javadoc.packagenames}"
                 excludepackagenames="${java.excludes.javadoc.packagenames}"
                 sourcepath="${all.srcj.path};${all.genj.path}"
                 destdir="${javadoc}" windowtitle="${javadoc.windowtitle}"
                 overview="${javadoc.overview}" 
                 source="1.4"
                 linkoffline="${javadoc.link} 142-packages"
         bottom="${javadoc.bottom}" >
         <classpath refid="all.classpath"/>
        </javadoc>
    </target>

    <target name="javadoc.spec" depends="init">
        <!-- Build the general Javadoc -->
        <javadoc packagenames="${javadoc.spec.packagenames}"
                 excludepackagenames="${java.excludes.javadoc.packagenames}"
                 sourcepath="${all.srcj.path};${all.genj.path}"
                 destdir="${javadoc.spec}" windowtitle="${javadoc.windowtitle}"
                 overview="${javadoc.overview}"
                 source="1.4"
                 linkoffline="${javadoc.link} 142-packages"
                 bottom="${javadoc.bottom}" >
         <classpath refid="all.classpath"/>
        </javadoc>
    </target>
                                                                                                                                   
    <target name="javadoc.dev" depends="init">
        <!-- Build the internal developer Javadoc -->
        <javadoc packagenames="${javadoc.dev.packagenames}"
                 excludepackagenames="${java.excludes.javadoc.packagenames}"
                 sourcepath="${all.srcj.path};${all.genj.path}"
                 destdir="${javadoc.dev}" windowtitle="${javadoc.windowtitle}"
                 overview="${javadoc.overview}" 
                 source="1.4"
                 linkoffline="${javadoc.link} 142-packages"
         bottom="${javadoc.bottom}" >
         <classpath refid="all.classpath"/>
        </javadoc>
    </target>

    <target name="all.doc" description="Build NWI, JOGL and NEWT docs" depends="init,javadoc,javadoc.spec,javadoc.dev" />

</project>