OSDN Git Service

Merge branch 'rel_0.3.x'
[tortoisegit/TortoiseGitJp.git] / src / TortoiseOverlays / TortoiseOverlays.build
1 <?xml version="1.0"?>\r
2 <project name="TortoiseSVN" default="all">\r
3 \r
4         <property name="SubWCRevFileName" value="bin\${configuration}${bindirextension}\bin\SubWCRev.exe"/>\r
5 \r
6         <target name="all">\r
7 \r
8                 <exec program="${SubWCRevFileName}">\r
9                         <arg value="." />\r
10                         <arg value="version.build.in" />\r
11                         <arg value="version.build" />\r
12                 </exec>\r
13                 <exec program="${SubWCRevFileName}">\r
14                         <arg value="." />\r
15                         <arg value="version.in" />\r
16                         <arg value="version.h" />\r
17                 </exec>\r
18                 <nant target="setversioninfo">\r
19                         <buildfiles>\r
20                                 <include name="version.build" />\r
21                         </buildfiles>\r
22                 </nant>\r
23 \r
24 \r
25                 <loadfile file="version.in" property="versionheaderfile">\r
26                         <filterchain>\r
27                                 <replacetokens begintoken="$" endtoken="$">\r
28                                         <token key="MajorVersion" value="${environment::get-variable('MajorVersion')}" />\r
29                                         <token key="MinorVersion" value="${environment::get-variable('MinorVersion')}" />\r
30                                         <token key="MicroVersion" value="${environment::get-variable('Microversion')}" />\r
31                                         <token key="WCREV" value="${environment::get-variable('WCREV')}" />\r
32                                         <token key="WCDATE" value="${environment::get-variable('WCDATE')}" />\r
33                                         <token key="DEVBUILD" value="${devrelease}" />\r
34                                 </replacetokens>\r
35                         </filterchain>\r
36                 </loadfile>\r
37                 <echo file="version.h" message="${versionheaderfile}" />\r
38 \r
39                 <loadfile file="VersionNumberInclude.in.wxi" property="versionwixfile">\r
40                         <filterchain>\r
41                                 <replacetokens begintoken="$" endtoken="$">\r
42                                         <token key="MajorVersion" value="${environment::get-variable('MajorVersion')}" />\r
43                                         <token key="MinorVersion" value="${environment::get-variable('MinorVersion')}" />\r
44                                         <token key="MicroVersion" value="${environment::get-variable('Microversion')}" />\r
45                                         <token key="WCREV" value="${environment::get-variable('WCREV')}" />\r
46                                 </replacetokens>\r
47                         </filterchain>\r
48                 </loadfile>\r
49                 <echo file="VersionNumberInclude.wxi" message="${versionwixfile}" />\r
50                 <property name="verstring" value="${environment::get-variable('MajorVersion')}.${environment::get-variable('MinorVersion')}.${environment::get-variable('MicroVersion')}.${environment::get-variable('WCREV')}" />\r
51 \r
52 \r
53                 <exec program="devenv.com" >\r
54                         <arg value="TortoiseOverlays.sln" />\r
55                         <arg value="/rebuild" />\r
56                         <arg value="release|win32" />\r
57                 </exec>\r
58                 <exec program="devenv.com" >\r
59                         <arg value="TortoiseOverlays.sln" />\r
60                         <arg value="/rebuild" />\r
61                         <arg value="release|x64" />\r
62                 </exec>\r
63                   <setenv>\r
64                           <variable name="Platform" value="win32" />\r
65                   </setenv>\r
66 \r
67                   <exec program="candle">\r
68                           <arg value="-nologo" />\r
69                           <arg value="-out" />\r
70                           <arg value="..\..\bin\" />\r
71                           <arg value="TortoiseOverlaysMerge.wxs" />\r
72                   </exec>\r
73                   <exec program="light">\r
74                           <arg value="-nologo" />\r
75                           <arg value="-out" />\r
76                           <arg value="..\..\bin\TortoiseOverlays-${verstring}-${platform}.msm" />\r
77                           <arg value="..\..\bin\TortoiseOverlaysMerge.wixobj" />\r
78                   </exec>\r
79                   <exec program="candle">\r
80                           <arg value="-nologo" />\r
81                           <arg value="-out" />\r
82                           <arg value="..\..\bin\" />\r
83                           <arg value="TortoiseOverlaysMSI.wxs" />\r
84                   </exec>\r
85                   <exec program="light">\r
86                           <arg value="-nologo" />\r
87                           <arg value="-out" />\r
88                           <arg value="..\..\bin\TortoiseOverlays-${verstring}-${platform}.msi" />\r
89                           <arg value="..\..\bin\TortoiseOverlaysMSI.wixobj" />\r
90                   </exec>\r
91                   <delete>\r
92                           <fileset>\r
93                                   <include name="..\..\bin\*.wixobj" />\r
94                                   <include name="..\..\bin\*.wixpdb" />\r
95                           </fileset>\r
96                   </delete>\r
97 \r
98                   <setenv>\r
99                           <variable name="Platform" value="x64" />\r
100                   </setenv>\r
101                 <property name="platform" value="x64" />\r
102                 <property name="bindirextension" value="64" />\r
103                   <exec program="candle">\r
104                           <arg value="-nologo" />\r
105                           <arg value="-out" />\r
106                           <arg value="..\..\bin\" />\r
107                           <arg value="TortoiseOverlaysMerge.wxs" />\r
108                   </exec>\r
109                   <exec program="light">\r
110                           <arg value="-nologo" />\r
111                           <arg value="-out" />\r
112                           <arg value="..\..\bin\TortoiseOverlays-${verstring}-${platform}.msm" />\r
113                           <arg value="..\..\bin\TortoiseOverlaysMerge.wixobj" />\r
114                   </exec>\r
115                   <exec program="candle">\r
116                           <arg value="-nologo" />\r
117                           <arg value="-out" />\r
118                           <arg value="..\..\bin\" />\r
119                           <arg value="TortoiseOverlaysMSI.wxs" />\r
120                   </exec>\r
121                   <exec program="light">\r
122                           <arg value="-nologo" />\r
123                           <arg value="-out" />\r
124                           <arg value="..\..\bin\TortoiseOverlays-${verstring}-${platform}.msi" />\r
125                           <arg value="..\..\bin\TortoiseOverlaysMSI.wixobj" />\r
126                   </exec>\r
127                   <delete>\r
128                           <fileset>\r
129                                   <include name="..\..\bin\*.wixobj" />\r
130                                   <include name="..\..\bin\*.wixpdb" />\r
131                           </fileset>\r
132                   </delete>\r
133 \r
134 \r
135         </target>\r
136 </project>\r