2019-05-03 00:29:04 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
|
|
|
|
<Import Project="..\common.openconsole.props" Condition="'$(OpenConsoleDir)'==''" />
|
|
|
|
|
2019-08-08 01:43:49 +02:00
|
|
|
<Import Project="$(OpenConsoleDir)\packages\Microsoft.Windows.CppWinRT.2.0.190730.2\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(OpenConsoleDir)\packages\Microsoft.Windows.CppWinRT.2.0.190730.2\build\native\Microsoft.Windows.CppWinRT.props')" />
|
2019-05-03 00:29:04 +02:00
|
|
|
|
|
|
|
<PropertyGroup Label="Globals">
|
2019-11-05 23:29:11 +01:00
|
|
|
<!-- 17134 is RS4, 17763 is RS5, 18362 is 19H1 -->
|
|
|
|
<WindowsTargetPlatformVersion Condition="'$(WindowsTargetPlatformVersion)' == ''">10.0.18362.0</WindowsTargetPlatformVersion>
|
|
|
|
<WindowsTargetPlatformMinVersion Condition="'$(WindowsTargetPlatformMinVersion)' == ''">10.0.18362.0</WindowsTargetPlatformMinVersion>
|
2019-05-03 00:29:04 +02:00
|
|
|
<CppWinRTEnabled>true</CppWinRTEnabled>
|
2019-05-23 19:36:29 +02:00
|
|
|
<CppWinRTOptimized>true</CppWinRTOptimized>
|
2019-05-03 00:29:04 +02:00
|
|
|
<DefaultLanguage>en-US</DefaultLanguage>
|
|
|
|
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
|
|
|
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- These settings tell MsBuild to treat the project as a "Universal Windows"
|
|
|
|
application. This includes doing things like creating a seperate
|
|
|
|
subdirectory for our binary output, and making sure that a wapproj looks
|
|
|
|
at the winmd we build to generate type info.
|
|
|
|
In general, cppwinrt projects all want this.
|
|
|
|
-->
|
|
|
|
<PropertyGroup Condition="'$(OpenConsoleUniversalApp)'!='false'">
|
|
|
|
<MinimalCoreWin>true</MinimalCoreWin>
|
|
|
|
<AppContainerApplication>true</AppContainerApplication>
|
|
|
|
<ApplicationType>Windows Store</ApplicationType>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- 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.
|
|
|
|
-->
|
|
|
|
<PropertyGroup>
|
|
|
|
<_NoWinAPIFamilyApp>true</_NoWinAPIFamilyApp>
|
|
|
|
<_VC_Target_Library_Platform>Desktop</_VC_Target_Library_Platform>
|
|
|
|
<GenerateProjectSpecificOutputFolder>false</GenerateProjectSpecificOutputFolder>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Label="Configuration">
|
|
|
|
<GenerateManifest>false</GenerateManifest>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2019-11-05 23:29:11 +01:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)common.build.pre.props" />
|
|
|
|
|
|
|
|
<!-- Overrides for common build settings -->
|
2019-05-03 00:29:04 +02:00
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
2019-11-05 23:29:11 +01:00
|
|
|
<!-- C++/WinRT hardcodes pch.h -->
|
2019-05-03 00:29:04 +02:00
|
|
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
|
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
|
|
|
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
|
2019-11-05 23:29:11 +01:00
|
|
|
|
|
|
|
<!-- All new code should be in non-permissive mode. Big objects for C++/WinRT. -->
|
|
|
|
<AdditionalOptions>%(AdditionalOptions) /permissive- /bigobj /Zc:twoPhase-</AdditionalOptions>
|
|
|
|
<DisableSpecificWarnings>28204;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
|
|
|
2019-05-03 00:29:04 +02:00
|
|
|
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
|
|
|
</ClCompile>
|
|
|
|
<Link>
|
2019-11-05 23:29:11 +01:00
|
|
|
<SubSystem Condition="'%(SubSystem)'==''">Console</SubSystem>
|
2019-05-03 00:29:04 +02:00
|
|
|
<GenerateWindowsMetadata>true</GenerateWindowsMetadata>
|
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
2019-11-05 23:29:11 +01:00
|
|
|
<ItemDefinitionGroup>
|
2019-05-03 00:29:04 +02:00
|
|
|
<ClCompile>
|
2019-11-05 23:29:11 +01:00
|
|
|
<AdditionalIncludeDirectories>$(OpenConsoleDir)\src\cascadia\WinRTUtils\inc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2019-05-03 00:29:04 +02:00
|
|
|
</ClCompile>
|
|
|
|
<Link>
|
2019-11-05 23:29:11 +01:00
|
|
|
<AdditionalDependencies>WindowsApp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
<AppContainer>false</AppContainer>
|
2019-05-03 00:29:04 +02:00
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
2019-11-05 23:29:11 +01:00
|
|
|
<!-- DLLs -->
|
|
|
|
<ItemDefinitionGroup Condition="'$(ConfigurationType)'=='DynamicLibrary'">
|
2019-05-03 00:29:04 +02:00
|
|
|
<ClCompile>
|
2019-11-05 23:29:11 +01:00
|
|
|
<PreprocessorDefinitions>_WINRT_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2019-05-03 00:29:04 +02:00
|
|
|
</ClCompile>
|
|
|
|
<Link>
|
2019-11-05 23:29:11 +01:00
|
|
|
<ModuleDefinitionFile>$(ProjectName).def</ModuleDefinitionFile>
|
2019-05-03 00:29:04 +02:00
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
|
|
|
</Project>
|
|
|
|
|