Welcome to mirror list, hosted at ThFree Co, Russian Federation.

doctools.build « doctools « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4d2fee7f6b65d1142e3c41392584f7c2aad4ae7d (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
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- NOTE: this buildfile requires NAnt 0.7.x or greater. -->

<project name="doctools" default="gui">
    <property name="build.dir" value="build" />
    <property name="build.resource.dir" value="${build.dir}/res" />
    <property name="debug" value="true" />
    <property name="src.dir" value="src" />
 
    <target name="init">
        <mkdir dir="${build.dir}" />
    </target>
    
    <target name="docstub" depends="init">
        <csc target="exe" output="${build.dir}/docstub.exe">
            <sources>
                <includes name="src/Console/docstub.cs" />
            </sources>
        </csc>
    </target>

    <target name="core" depends="init">
        <csc target="library" output="${build.dir}/Mono.Doc.Core.dll" debug="${debug}">
            <sources>
                <includes name="${src.dir}/Core/*.cs" />
            </sources>
            <references>
                <includes name="System.dll" />
            </references>
        </csc>
    </target>

    <target name="docval" depends="init">
        <csc target="exe" output="${build.dir}/docval.exe" debug="${debug}">
            <sources>
                <includes name="${src.dir}/Console/docval.cs" />
            </sources>
        </csc>
    </target>

    <target name="gui" depends="init,core">
        <mkdir dir="${build.resource.dir}" />
        <resgen input="etc/gui/ImageResources.resx"
               output="${build.resource.dir}/Mono.Doc.Gui.ImageResources.resources"
        />
        <resgen input="etc/gui/TextResources.resx"
               output="${build.resource.dir}/Mono.Doc.Gui.TextResources.resources"
        />

        <csc target="winexe" debug="${debug}" output="${build.dir}/monodoc.exe">
            <sources>
                <includes name="${src.dir}/Gui/*.cs" />
            </sources>
            <references>
                <includes name="System.dll" />
                <includes name="System.Data.dll" />
                <includes name="System.Drawing.dll" />
                <includes name="System.Windows.Forms.dll" />
                <includes name="${build.dir}\Mono.Doc.Core.dll" />
            </references>

            <arg value="/resource:${build.resource.dir}\Mono.Doc.Gui.ImageResources.resources" />
            <arg value="/resource:${build.resource.dir}\Mono.Doc.Gui.TextResources.resources" />
        </csc>
    </target>    

    <target name="clean">
        <delete dir="${build.dir}" />
    </target>
</project>