-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject.build
More file actions
62 lines (47 loc) · 2 KB
/
Project.build
File metadata and controls
62 lines (47 loc) · 2 KB
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
<?xml version="1.0"?>
<project name="Portable Mount Watcher" default="build">
<description>Watches portable BitLocker protected disk to be mounted and runs startup apps</description>
<property name="target" value="Release" />
<property name="platform" value="x64" />
<property name="prog.name" value="mountwatch" />
<property name="version" value="0.1" />
<include buildfile="/usr/share/nant/Project.include" />
<target name="build" depends="hier">
<colourfail colour="Red">
<ncc target="${ncc.target}" output="${path.build}/${prog.name}.exe">
<arg line="${ncc.args}" />
<sources>
<include name="MountWatch.Main.n" />
</sources>
<references>
<include name="${ref.nini}" />
<!--include name="System.Windows.Forms.dll" /-->
</references>
</ncc>
<copy todir="${path.build}">
<fileset>
<include name="${ref.nini}" />
<include name="${path.nemerle}/Nemerle.dll" />
<include name="${prog.name}.ini" />
<include name="${pdb.nini}" if="${property::get-value('target') == 'Debug'}" />
</fileset>
</copy>
<!-- Compress all exe/dll into one executable -->
<if test="${property::get-value('target') == 'Release' and not
file::up-to-date(path.build + '/' + prog.name + '.exe',
path.build + '/executable.packed/' + prog.name + '.exe')}">
<pushcolour colour="DarkGray" />
<execcolour program="${netz.cmd}">
<arg line="${netz.args} -i ${prog.name}.ico" />
<arg line="-o ${path.build}/executable.packed" />
<arg value="${path.build}/${prog.name}.exe" />
<arg value="${ref.nini}" />
<arg value="${path.nemerle}/Nemerle.dll" />
</execcolour>
<popcolour />
</if>
<echocolour colour="Yellow" message="Build target: ${target.id}" />
</colourfail>
</target>
<target name="clean" depends="cleanall" />
</project>