forked from stefankueng/BowPad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.build.user.tmpl
67 lines (56 loc) · 2.35 KB
/
default.build.user.tmpl
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
<?xml version="1.0"?>
<!-- use this file to set the paths to the required tools
BowPad needs to build everything.
First make a copy of this file and rename the copy to
default.build.user
then adjust the paths in the "value" field.
Note: make sure you don't forget the path separator (";")
if you're prepending/appending your paths to the system PATH variable!
You will get linker errors if you forget them.
-->
<project name="ToolPaths" default="env">
<!-- ====================================================================== -->
<!-- These two targets have to exist in doc.build.user -->
<!-- ====================================================================== -->
<target name="VSNET" description="Checks if the env variables for VS2015 are set">
<if test="${not environment::variable-exists('VCINSTALLDIR')}">
<fail>You must first call "%VS140COMNTOOLS%\vsvars32.bat"</fail>
</if>
<!-- Uncomment the line below to allow limited building using VC Express instead of VS.NET. -->
<!-- <property name="buildtool" value="vcexpress.exe" /> -->
</target>
<target name="env" depends="VSNET">
<!--
WiX3 installer already sets an environment variable to
its target folder. We need to move it to the \bin folder
conditionally as "manual" installations might not have
that sub-folder.
-->
<if test="${not environment::variable-exists('WIX')}">
<setenv>
<!--
TODO: change path value, if WIX is not defined
-->
<variable name="WIX" value="C:\WiX" />
</setenv>
</if>
<if test="${file::exists(environment::get-variable('WIX') + '\bin\candle.exe')}">
<setenv>
<variable name="WIX" value="%WIX%\bin" />
</setenv>
</if>
<!--
specifies the tool to use for signing the binaries.
change to "scsigntool.exe" in case you're using a smart card and have scsigntool set up
-->
<!-- <property name="signtool" value="scsigntool.exe" /> -->
<!--
Update environment & we are good to go.
-->
<setenv>
<variable name="PATH" value="D:\smartcardtools\x64;%PATH%" />
<variable name="PATH" value="%WIX%;%PATH%" />
<variable name="WIXUI" value="%WIX%" />
</setenv>
</target>
</project>