summaryrefslogtreecommitdiff
path: root/eng/Signing.props
blob: e8f7488bfa1a29be48809a591a52ff52ccefed25 (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
<Project>
  <Import Project="..\dir.common.props"/>
  
  <ItemGroup>
    <ItemsToSign Include="$(BinDir)*.dll" />
    <ItemsToSign Include="$(BinDir)*.exe" />
  </ItemGroup>

  <ItemGroup>
    <FileSignInfo Include="mscordaccore.dll" CertificateName="MicrosoftSHA2" />
  </ItemGroup>

  <ItemGroup Condition="'$(BuildArch)' == 'x86'">
    <!-- Sign api-ms-win-core-xstate-l2-1-0 binary as it is only catalog signed in the current SDK. -->
    <ItemsToSign Condition="'$(BuildType)'=='Release'" Include="$(BinDir)Redist\ucrt\DLLs\$(BuildArch)\api-ms-win-core-xstate-l2-1-0.dll" />
  </ItemGroup>

  <!-- sign the cross targeted files as well -->
  <ItemGroup Condition="'$(CrossTargetComponentFolder)' != ''">
    <ItemsToSign Include="$(BinDir)$(CrossTargetComponentFolder)/*.dll" />
    <ItemsToSign Include="$(BinDir)$(CrossTargetComponentFolder)/*.exe" />
  </ItemGroup>

  <Target Name="ValidateSignFileListIsNotEmpty" BeforeTargets="Sign">
    <Error Condition="'@(ItemsToSign)' == ''" Text="List of files to sign is empty" />
    <Message Importance="High" Text="Attempting to sign %(ItemsToSign.Identity)" />
  </Target>
</Project>