forked from thpatch/thcrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBase.props
68 lines (66 loc) · 3.49 KB
/
Base.props
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="utf-8"?>
<!-- Base settings shared by all thcrap modules and the dependencies we
- provide our own project files for. For a debug build, $(UseDebugLibraries)
- should be set to true before this file is included. Any other value,
- including none at all, will create a Release build. -->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<PropertyGroup>
<TargetName Condition="$(UseDebugLibraries)==true">$(RootNamespace)_d</TargetName>
<TargetName Condition="$(UseDebugLibraries)!=true">$(RootNamespace)</TargetName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Label="Configuration">
<PlatformToolset>v141_xp</PlatformToolset>
<OutDir>$(SolutionDir)bin\$(OutSubdir)</OutDir>
<IntDir>$(SolutionDir)obj\$(RootNamespace) $(Configuration) $(PlatformShortName)\</IntDir>
</PropertyGroup>
<PropertyGroup>
<!-- We know that XP support will be removed next year, w don't need 10 messages every build to remember that. -->
<XPDeprecationWarning>false</XPDeprecationWarning>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="PropertySheets">
<Import Condition="$(UseDebugLibraries)==true" Project="Debug.props" />
<Import Condition="$(UseDebugLibraries)!=true" Project="Release.props" />
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ExceptionHandling>Sync</ExceptionHandling>
<FloatingPointExceptions>false</FloatingPointExceptions>
<WarningLevel>Level3</WarningLevel>
<TreatSpecificWarningsAsErrors>4013;4028;4133</TreatSpecificWarningsAsErrors>
<!-- This warning is inside shlobj.h -->
<DisableSpecificWarnings>4091;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<PreprocessorDefinitions>BUILDER_NAME_W=L"$(USERNAME)";UNICODE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(OutputPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalOptions>/PDBALTPATH:%_PDB% %(AdditionalOptions)</AdditionalOptions>
</Link>
<PostBuildEvent Condition="'$(ConfigurationType)'!='StaticLibrary'">
<Command>if exist $(SolutionDir)cert.pfx (
signtool sign /v /f $(SolutionDir)cert.pfx /t http://timestamp.verisign.com/scripts/timstamp.dll /d "$(ProjectTitle)" /du "$(ProjectURL)" "$(TargetPath)"
) else (
echo warning: $(SolutionDir)cert.pfx not found. Binaries won't be digitally signed, and thcrap won't be able to automatically update itself.
echo Please see README.md for instructions on how to generate this file.
)
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ImportGroup Label="ExtensionSettings">
<Import Project="gas.props" />
</ImportGroup>
<ImportGroup Label="ExtensionTargets">
<Import Project="gas.targets" />
</ImportGroup>
</Project>