aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Prebuild/src/Prebuild.exe.build
blob: f2c8cabd40108f738d1ab4e6d6fa41672b912a08 (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
<?xml version="1.0" ?>
<project name="Prebuild" default="build">
    <target name="build">
        <echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
        <mkdir dir="${project::get-base-directory()}/${build.dir}" />
        <copy todir="${project::get-base-directory()}/${build.dir}">
            <fileset basedir="${project::get-base-directory()}">
            </fileset>
        </copy>
        <csc target="exe" debug="${build.debug}" keyfile="Prebuild.snk" unsafe="False" define="DEBUG;TRACE" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.exe" win32icon="App.ico">
            <resources prefix="Prebuild" dynamicprefix="true" >
                <include name="App.ico" />
                <include name="data/prebuild-1.7.xsd" />
            </resources>
            <sources failonempty="true">
                <include name="Prebuild.cs" />
                <include name="Core/Kernel.cs" />
                <include name="Core/UnknownLanguageException.cs" />
                <include name="Core/WarningException.cs" />
                <include name="Core/FatalException.cs" />
                <include name="Core/Interfaces/ITarget.cs" />
                <include name="Core/Interfaces/IDataNode.cs" />
                <include name="Core/Attributes/OptionNodeAttribute.cs" />
                <include name="Core/Attributes/DataNodeAttribute.cs" />
                <include name="Core/Attributes/TargetAttribute.cs" />
                <include name="Core/Nodes/ProjectNode.cs" />
                <include name="Core/Nodes/ConfigurationNode.cs" />
                <include name="Core/Nodes/DataNode.cs" />
                <include name="Core/Nodes/ExcludeNode.cs" />
                <include name="Core/Nodes/OptionsNode.cs" />
                <include name="Core/Nodes/ReferencePathNode.cs" />
                <include name="Core/Nodes/MatchNode.cs" />
                <include name="Core/Nodes/SolutionNode.cs" />
                <include name="Core/Nodes/ProcessNode.cs" />
                <include name="Core/Nodes/ReferenceNode.cs" />
                <include name="Core/Nodes/FileNode.cs" />
                <include name="Core/Nodes/FilesNode.cs" />
                <include name="Core/Targets/DebugTarget.cs" />
                <include name="Core/Targets/MonoDevelopTarget.cs" />
                <include name="Core/Targets/AutotoolsTarget.cs" />
                <include name="Core/Targets/SharpDevelopTarget.cs" />
                <include name="Core/Targets/VS2002Target.cs" />
                <include name="Core/Targets/VS2003Target.cs" />
                <include name="Core/Targets/SharpDevelop2Target.cs" />
                <include name="Core/Targets/VS2005Target.cs" />
                <include name="Core/Targets/NAntTarget.cs" />
                <include name="Core/Parse/IfContext.cs" />
                <include name="Core/Parse/Preprocessor.cs" />
                <include name="Core/Utilities/Helper.cs" />
                <include name="Core/Utilities/Log.cs" />
                <include name="Core/Utilities/CommandLineCollection.cs" />
                <include name="Core/Utilities/CurrentDirectory.cs" />
                <include name="Properties/AssemblyInfo.cs" />
            </sources>
            <references basedir="${project::get-base-directory()}">
                <lib>
                    <include name="${project::get-base-directory()}" />
                    <include name="${project::get-base-directory()}/${build.dir}" />
                </lib>
                <include name="System.EnterpriseServices.dll" />
                <include name="System.Xml.dll" />
                <include name="System.dll" />
            </references>
        </csc>
        <echo message="Copying from [${project::get-base-directory()}/${build.dir}/] to [${project::get-base-directory()}/../../bin/" />
        <mkdir dir="${project::get-base-directory()}/../../bin/"/>
        <copy todir="${project::get-base-directory()}/../../bin/">
            <fileset basedir="${project::get-base-directory()}/${build.dir}/" >
                <include name="*.dll"/>
                <include name="*.exe"/>
            </fileset>
        </copy>
    </target>
    <target name="clean">
        <delete dir="${bin.dir}" failonerror="false" />
        <delete dir="${obj.dir}" failonerror="false" />
    </target>
    <target name="doc" description="Creates documentation.">
    </target>
</project>