Merge pull request #127 from DOCGroup/jwillemsen-patch-1
[MPC.git] / templates / wixcs.mpd
blobdd003728ad0f0905e8148460d443f86996a3fe6b
1 <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
2 <Include>
3 <%marker(top)%>
4 <%foreach(platforms)%>
5 <%foreach(configurations)%>
6 <%if(!exclude)%>
7 <%comment("Only put one component in a fragment. If, say, both the debug and release components are in the")%>
8 <%comment("same fragment, and just the debug component is used in an installer, the release component will")%>
9 <%comment("be identified as unused, and an error generated. That is, it seems that referencing any component")%>
10 <%comment("in a fragment causes the entire fragment to be pulled in, and any unused component in the fragment will be flagged as an error")%>
11 <Fragment Id="<%normalize(configuration)%>_<%normalize(platform)%>_<%project_name%>">
12 <ComponentGroup Id="ComponentGroup.<%normalize(configuration)%>_<%normalize(platform)%>_<%if(exename || sharedname || staticname)%><%if(exename)%><%exename%><%else%><%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%endif%><%else%><%project_name%><%endif%>">
13 <%if(!no_binary)%>
14 <ComponentRef Id="<%normalize(configuration)%>_<%normalize(platform)%>_<%if(exename || sharedname || staticname)%><%if(exename)%><%exename%><%else%><%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%endif%><%else%><%project_name%><%endif%><%if(exename)%><%exe_ext%><%else%><%dll_ext%><%endif%>" />
15 <%endif%>
16 <%foreach(cultures)%>
17 <%if(compares(culture, _neutral_))%>
18 <%comment("Do nothing here - the neutral culture will be built as the primary output of the project")%>
19 <%else%>
20 <ComponentRef Id="<%normalize(configuration)%>_<%normalize(platform)%>_<%project_name%>_<%normalize(culture)%>" />
21 <%endif%>
22 <%endfor%>
23 </ComponentGroup>
25 <DirectoryRef Id="INSTALLDIR">
26 <%marker(component_top)%>
27 <%if(!no_binary)%>
28 <Component Id="<%normalize(configuration)%>_<%normalize(platform)%>_<%if(exename || sharedname || staticname)%><%if(exename)%><%exename%><%else%><%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%endif%><%else%><%project_name%><%endif%><%if(exename)%><%exe_ext%><%else%><%dll_ext%><%endif%>" Guid="*">
29 <File Id="<%normalize(configuration)%>_<%normalize(platform)%>_<%if(exename || sharedname || staticname)%><%if(exename)%><%exename%><%else%><%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%endif%><%else%><%project_name%><%endif%><%if(exename)%><%exe_ext%><%else%><%dll_ext%><%endif%>"
30 Name="<%if(exename || sharedname || staticname)%><%if(exename)%><%exename%><%else%><%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%endif%><%else%><%project_name%><%endif%><%if(exename)%><%exe_ext%><%else%><%dll_ext%><%endif%>"
31 Source="<%if(exename)%><%if(exeout)%><%full_path(exeout)%><%if(windows_style)%>/<%output_dir%><%endif%><%else%>./<%output_dir%><%endif%><%else%><%if(dllout)%><%full_path(dllout)%><%else%><%full_path(libout)%><%endif%>/<%output_dir%><%endif%>/<%if(exename || sharedname || staticname)%><%if(exename)%><%exename%><%else%><%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%endif%><%else%><%project_name%><%endif%><%if(exename)%><%exe_ext%><%else%><%dll_ext%><%endif%>"
32 DiskId="<%diskid(1)%>" />
33 </Component>
34 <%endif%>
36 <%foreach(cultures)%>
37 <%if(compares(culture, _neutral_))%>
38 <%comment("Do nothing here - the neutral culture will be built as the primary output of the project")%>
39 <%else%>
40 <Directory Id="<%project_name%>.<%normalize(culture)%>.<%forcount%>" Name="<%culture%>">
41 <Component Id="<%normalize(configuration)%>_<%normalize(platform)%>_<%project_name%>_<%normalize(culture)%>" Guid="*">
42 <File Id="<%normalize(configuration)%>_<%normalize(platform)%>_<%project_name%>_<%normalize(culture)%>"
43 Name="<%project_name%>.resources.dll"
44 Source="<%if(exename)%><%if(exeout)%><%full_path(exeout)%><%if(windows_style)%>/<%output_dir%><%endif%><%else%>./<%output_dir%><%endif%><%else%><%if(dllout)%><%full_path(dllout)%><%else%><%full_path(libout)%><%endif%>/<%output_dir%><%endif%>/<%culture%>/<%project_name%>.resources.dll"
45 DiskId="<%diskid(1)%>" />
46 </Component>
47 </Directory>
48 <%endif%>
49 <%endfor%>
51 <%marker(component_bottom)%>
52 </DirectoryRef>
53 </Fragment>
55 <%endif%>
56 <%endfor%>
57 <%endfor%>
58 <%marker(bottom)%>
59 </Include>