mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-14 06:29:02 +08:00
539a182d37
* Fix the issues introduced in 13755 Fixes #14735 * add VcpkgRoot != ''
35 lines
2.1 KiB
XML
35 lines
2.1 KiB
XML
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<!-- Do not define derived properties here. This file may be imported once and some of the properties below may be overridden afterwards -->
|
|
|
|
<!-- Set default OS Target-->
|
|
<PropertyGroup Condition="'$(VcpkgOSTarget)' == ''">
|
|
<VcpkgOSTarget>windows</VcpkgOSTarget>
|
|
<VcpkgOSTarget Condition="'$(ApplicationType)|$(ApplicationTypeRevision)' == 'Windows Store|10.0'">uwp</VcpkgOSTarget>
|
|
</PropertyGroup>
|
|
|
|
<!-- Set default Platform Target. $(PlatformTarget) is not available at the top of the .vcxproj file. -->
|
|
<PropertyGroup Condition="'$(VcpkgPlatformTarget)' == ''">
|
|
<VcpkgPlatformTarget>$(Platform)</VcpkgPlatformTarget>
|
|
<VcpkgPlatformTarget Condition="'$(Platform)' == 'Win32'">x86</VcpkgPlatformTarget>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<VcpkgPropsImported>true</VcpkgPropsImported>
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
<VcpkgConfiguration Condition="'$(VcpkgConfiguration)' == ''">$(Configuration)</VcpkgConfiguration>
|
|
<VcpkgUseStatic Condition="'$(VcpkgUseStatic)' == ''">false</VcpkgUseStatic>
|
|
<VcpkgRoot Condition="'$(VcpkgRoot)' == ''">$([System.IO.Path]::Combine($(MSBuildThisFileDirectory), '..\..\..'))</VcpkgRoot>
|
|
|
|
<VcpkgAutoLink Condition="'$(VcpkgAutoLink)' == ''">true</VcpkgAutoLink>
|
|
<!-- Deactivate Autolinking if lld is used as a linker. (Until a better way to solve the problem is found!).
|
|
Tried to add /lib as a parameter to the linker call but was unable to find a way to pass it as the first parameter. -->
|
|
<VcpkgAutoLink Condition="'$(UseLldLink)' == 'true'">false</VcpkgAutoLink>
|
|
|
|
<!-- Manifest files -->
|
|
<VcpkgEnableManifest Condition="'$(VcpkgEnableManifest)' == ''">false</VcpkgEnableManifest>
|
|
<VcpkgManifestInstall Condition="'$(VcpkgManifestInstall)' == ''">true</VcpkgManifestInstall>
|
|
<VcpkgManifestRoot Condition="'$(VcpkgManifestRoot)' == ''">$([MSbuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), vcpkg.json))</VcpkgManifestRoot>
|
|
</PropertyGroup>
|
|
|
|
</Project>
|