-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMile.Project.Cpp.Default.props
115 lines (113 loc) · 8.5 KB
/
Mile.Project.Cpp.Default.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0" encoding="utf-8"?>
<!--
PROJECT: Mouri Internal Library Essentials
FILE: Mile.Project.Cpp.Default.props
PURPOSE: Definition for Visual Studio C++ Project
LICENSE: The MIT License
MAINTAINER: MouriNaruto ([email protected])
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<Keyword>Win32Proj</Keyword>
<LatestTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</LatestTargetPlatformVersion>
<WindowsTargetPlatformVersion>$(LatestTargetPlatformVersion)</WindowsTargetPlatformVersion>
<MileProjectEnableYYThunksSupport Condition="'$(MileProjectEnableVCLTLSupport)' == 'true'">true</MileProjectEnableYYThunksSupport>
<MileProjectBuildDate>$([System.DateTime]::Now.ToString("yyyyMMdd"))</MileProjectBuildDate>
<MileProjectPreprocessorDefinitions></MileProjectPreprocessorDefinitions>
<MileProjectUseWindowsDriverKit Condition="'$(MileProjectType)' == 'WDMDriver'">true</MileProjectUseWindowsDriverKit>
<MileProjectUseWindowsDriverKit Condition="'$(MileProjectType)' == 'KMDFDriver'">true</MileProjectUseWindowsDriverKit>
<MileProjectUseWindowsDriverKit Condition="'$(MileProjectType)' == 'UMDFDriver'">true</MileProjectUseWindowsDriverKit>
<MileProjectUseKernelMode Condition="'$(MileProjectType)' == 'WDMDriver'">true</MileProjectUseKernelMode>
<MileProjectUseKernelMode Condition="'$(MileProjectType)' == 'KMDFDriver'">true</MileProjectUseKernelMode>
</PropertyGroup>
<PropertyGroup Label="Globals" Condition="'$(MileProjectEnableCppWinRTSupport)' == 'true'">
<CppWinRTOptimized>true</CppWinRTOptimized>
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
<!--
Import all Windows Runtime metadata in Windows SDK. By default enable
C++/WinRT to include target platform winmds if we didn't override sdk
references and the C++ Project system isn't already adding them.
-->
<CppWinRTImplicitlyExpandTargetPlatform>true</CppWinRTImplicitlyExpandTargetPlatform>
<!--
Need to set to 'true' so that Win32 APIs are available; setting
$(WindowsAppContainer) to 'true' causes the C++ project system to set
WINAPI_FAMILY=WINAPI_FAMILY_APP unless this property property is also
'true'.
-->
<_NoWinAPIFamilyApp>true</_NoWinAPIFamilyApp>
<!-- Disable Microsoft.VCLibs reference -->
<UseCrtSDKReference>false</UseCrtSDKReference>
<!--
This is magic that tells msbuild to link against the Desktop platform
instead of the App platform. This you definitely want, because we're not
building a true universal "app", we're building a desktop application
with xaml. Without this, we'll link against the app CRT, and the =
unpackaged story _will not_ work. Furthermore, APIs like
CreatePseudoConsole won't be linkable without this.
-->
<_VC_Target_Library_Platform>Desktop</_VC_Target_Library_Platform>
<!--
Disable C++/WinRT Libs because we don't want to depend on any Windows
APIs imported from API Sets.
-->
<CppWinRTLibs>false</CppWinRTLibs>
</PropertyGroup>
<PropertyGroup Label="Globals" Condition="'$(MileProjectUseProjectProperties)' == 'true'">
<MileProjectCompanyName Condition="'$(MileProjectCompanyName)' == ''">TODO: Company Name</MileProjectCompanyName>
<MileProjectFileDescription Condition="'$(MileProjectFileDescription)' == ''">TODO: File Description</MileProjectFileDescription>
<MileProjectInternalName Condition="'$(MileProjectInternalName)' == ''">$(TargetName)</MileProjectInternalName>
<MileProjectLegalCopyright Condition="'$(MileProjectLegalCopyright)' == ''">© TODO: Company Name. All rights reserved.</MileProjectLegalCopyright>
<MileProjectOriginalFilename Condition="'$(MileProjectOriginalFilename)' == ''">$(TargetName)$(TargetExt)</MileProjectOriginalFilename>
<MileProjectProductName Condition="'$(MileProjectProductName)' == ''">$(TargetName)</MileProjectProductName>
<MileProjectVersion Condition="'$(MileProjectVersion)' == ''">1.0.0.1</MileProjectVersion>
<MileProjectPreprocessorDefinitions>MILE_PROJECT_VERSION_MAJOR=$([System.Version]::Parse('$(MileProjectVersion)').Major);$(MileProjectPreprocessorDefinitions)</MileProjectPreprocessorDefinitions>
<MileProjectPreprocessorDefinitions>MILE_PROJECT_VERSION_MINOR=$([System.Version]::Parse('$(MileProjectVersion)').Minor);$(MileProjectPreprocessorDefinitions)</MileProjectPreprocessorDefinitions>
<MileProjectPreprocessorDefinitions>MILE_PROJECT_VERSION_BUILD=$([System.Version]::Parse('$(MileProjectVersion)').Build);$(MileProjectPreprocessorDefinitions)</MileProjectPreprocessorDefinitions>
<MileProjectPreprocessorDefinitions>MILE_PROJECT_VERSION_REVISION=$([System.Version]::Parse('$(MileProjectVersion)').Revision);$(MileProjectPreprocessorDefinitions)</MileProjectPreprocessorDefinitions>
<MileProjectPreprocessorDefinitions Condition="'$(MileProjectVersionTag)' != ''">MILE_PROJECT_VERSION_TAG=$(MileProjectVersionTag);$(MileProjectPreprocessorDefinitions)</MileProjectPreprocessorDefinitions>
</PropertyGroup>
<ItemGroup Label="NuGet" Condition="'$(MileProjectCppDisablePackageReferencesSupport)' != 'true'">
<ProjectCapability Include="PackageReferences" />
</ItemGroup>
<PropertyGroup Label="NuGet" Condition="'$(MileProjectCppDisablePackageReferencesSupport)' != 'true'">
<!-- https://github.com/microsoft/react-native-windows/pull/8195 -->
<AssetTargetFallback>$(AssetTargetFallback);native;uap$(TargetPlatformVersion);</AssetTargetFallback>
<!-- https://github.com/microsoft/react-native-windows/pull/8195 -->
<TargetFrameworkMoniker>native,Version=v0.0</TargetFrameworkMoniker>
<NuGetTargetMoniker>native,Version=v0.0</NuGetTargetMoniker>
<TargetFrameworkMoniker Condition ="'$(DesignTimeBuild)' == 'true'">.NETCore,Version=v5.0</TargetFrameworkMoniker>
<NuGetTargetMoniker Condition ="'$(DesignTimeBuild)' == 'true'">.NETCore,Version=v5.0</NuGetTargetMoniker>
<RuntimeIdentifiers>win;win-x86;win-x64;win-arm;win-arm64;win10-x86;win10-x64;win10-arm;win10-arm64</RuntimeIdentifiers>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<ConfigurationType Condition="'$(MileProjectType)' == 'DynamicLibrary'">DynamicLibrary</ConfigurationType>
<ConfigurationType Condition="'$(MileProjectType)' == 'StaticLibrary'">StaticLibrary</ConfigurationType>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
<PlatformToolset Condition="'$(MileProjectUseClangCLToolset)' == 'true'">ClangCL</PlatformToolset>
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
<CharacterSet Condition="'$(CharacterSet)' == 'NotSet'">Unicode</CharacterSet>
<UseDebugLibraries Condition="'$(Configuration)' == 'Debug'">true</UseDebugLibraries>
<UseDebugLibraries Condition="'$(Configuration)' == 'Release'">false</UseDebugLibraries>
<WholeProgramOptimization Condition="('$(Configuration)' == 'Release') And ('$(MileProjectType)' != 'StaticLibrary')">true</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(MileProjectUseWindowsDriverKit)' == 'true'">
<ConfigurationType Condition="'$(MileProjectType)' == 'WDMDriver'">Driver</ConfigurationType>
<ConfigurationType Condition="'$(MileProjectType)' == 'KMDFDriver'">Driver</ConfigurationType>
<ConfigurationType Condition="'$(MileProjectType)' == 'UMDFDriver'">DynamicLibrary</ConfigurationType>
<PlatformToolset>WindowsApplicationForDrivers10.0</PlatformToolset>
<PlatformToolset Condition="'$(MileProjectType)' == 'UMDFDriver'">WindowsUserModeDriver10.0</PlatformToolset>
<PlatformToolset Condition="'$(MileProjectUseKernelMode)' == 'true'">WindowsKernelModeDriver10.0</PlatformToolset>
<DriverType Condition="'$(MileProjectUseKernelMode)' == 'true'">KMDF</DriverType>
<DriverType Condition="'$(MileProjectType)' == 'WDMDriver'">WDM</DriverType>
<DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
<DebuggerFlavor Condition="'$(MileProjectUseKernelMode)' != 'true'">DbgengRemoteDebugger</DebuggerFlavor>
<TargetVersion>Windows10</TargetVersion>
<DriverTargetPlatform>Universal</DriverTargetPlatform>
<ALLOW_DATE_TIME>1</ALLOW_DATE_TIME>
<UMDF_VERSION_MAJOR Condition="'$(MileProjectType)' == 'UMDFDriver'">2</UMDF_VERSION_MAJOR>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
</Project>