Skip to content

Commit eea6e96

Browse files
committed
CustomSignTool: Add manifest, Fix project build options;
1 parent 0954311 commit eea6e96

File tree

3 files changed

+60
-12
lines changed

3 files changed

+60
-12
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3+
<assemblyIdentity
4+
name="CustomSignTool"
5+
processorArchitecture="*"
6+
version="2.0.0.0"
7+
type="win32"
8+
/>
9+
<description>CustomSignTool</description>
10+
<dependency>
11+
<dependentAssembly>
12+
<assemblyIdentity
13+
type="win32"
14+
name="Microsoft.Windows.Common-Controls"
15+
version="6.0.0.0"
16+
processorArchitecture="*"
17+
publicKeyToken="6595b64144ccf1df"
18+
language="*"
19+
/>
20+
</dependentAssembly>
21+
</dependency>
22+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
23+
<security>
24+
<requestedPrivileges>
25+
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
26+
</requestedPrivileges>
27+
</security>
28+
</trustInfo>
29+
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
30+
<application>
31+
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
32+
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
33+
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
34+
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
35+
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
36+
</application>
37+
</compatibility>
38+
<asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
39+
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
40+
<dpiAware>true</dpiAware>
41+
</asmv3:windowsSettings>
42+
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
43+
<longPathAware>true</longPathAware>
44+
</asmv3:windowsSettings>
45+
</asmv3:application>
46+
</assembly>

tools/CustomSignTool/CustomSignTool.vcxproj

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,10 @@
7777
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir)obj\$(Configuration)$(PlatformArchitecture)\</IntDir>
7878
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
7979
</PropertyGroup>
80-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
81-
<GenerateManifest>false</GenerateManifest>
82-
</PropertyGroup>
83-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
84-
<GenerateManifest>false</GenerateManifest>
85-
</PropertyGroup>
86-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
87-
<GenerateManifest>false</GenerateManifest>
88-
</PropertyGroup>
89-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
90-
<GenerateManifest>false</GenerateManifest>
91-
</PropertyGroup>
80+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
81+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
82+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
83+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
9284
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
9385
<ClCompile>
9486
<Optimization>Disabled</Optimization>
@@ -100,6 +92,7 @@
10092
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
10193
<CallingConvention>StdCall</CallingConvention>
10294
<TreatWarningAsError>true</TreatWarningAsError>
95+
<MultiProcessorCompilation>true</MultiProcessorCompilation>
10396
</ClCompile>
10497
<Link>
10598
<AdditionalDependencies>noenv.obj;phlib.lib;ntdll.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -123,6 +116,7 @@
123116
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
124117
<CallingConvention>StdCall</CallingConvention>
125118
<TreatWarningAsError>true</TreatWarningAsError>
119+
<MultiProcessorCompilation>true</MultiProcessorCompilation>
126120
</ClCompile>
127121
<Link>
128122
<AdditionalDependencies>noenv.obj;phlib.lib;ntdll.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -201,6 +195,9 @@
201195
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
202196
</ProjectReference>
203197
</ItemGroup>
198+
<ItemGroup>
199+
<Manifest Include="CustomSignTool.manifest" />
200+
</ItemGroup>
204201
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
205202
<ImportGroup Label="ExtensionTargets">
206203
</ImportGroup>

tools/CustomSignTool/CustomSignTool.vcxproj.filters

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@
1919
<Filter>Source Files</Filter>
2020
</ClCompile>
2121
</ItemGroup>
22+
<ItemGroup>
23+
<Manifest Include="CustomSignTool.manifest">
24+
<Filter>Resource Files</Filter>
25+
</Manifest>
26+
</ItemGroup>
2227
</Project>

0 commit comments

Comments
 (0)