summaryrefslogtreecommitdiffstats
path: root/Tools/msi/exe/exe.props
blob: bb9b7d395d9705f0622e822933f84d53ce7b4929 (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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <!-- Shortcut validation is not necessary -->
        <SuppressICEs>ICE43</SuppressICEs>
    </PropertyGroup>
    <Import Project="..\msi.props" />
    <ItemGroup>
        <Compile Include="*.wxs" />
    </ItemGroup>
    <ItemGroup>
        <EmbeddedResource Include="*.wxl" />
        <WxlTemplate Include="*.wxl_template" />
    </ItemGroup>
    
    <Target Name="_GenerateLicense" AfterTargets="PrepareForBuild">
        <ItemGroup>
            <LicenseFiles Include="$(PySourcePath)LICENSE;
                                   crtlicense.txt;
                                   $(bz2Dir)LICENSE;
                                   $(opensslDir)LICENSE;
                                   $(tclDir)license.terms;
                                   $(tkDir)license.terms;
                                   $(tixDir)license.terms" />
            <_LicenseFiles Include="@(LicenseFiles)">
                <Content>$([System.IO.File]::ReadAllText(%(FullPath)))</Content>
            </_LicenseFiles>
        </ItemGroup>
        
        <WriteLinesToFile File="$(BuildPath)LICENSE"
                          Overwrite="true"
                          Lines="@(_LicenseFiles->'%(Content)')" />
    </Target>
        
    <Import Project="..\msi.targets" />
</Project>