aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-10-31 17:02:39 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-10-31 17:02:39 -0700
commit789855546ca26ae30398235d0b3ee2f9eb92c40a (patch)
tree880ed3bdca9a1d950e95043276453f51c5fbf9a2 /scripts
parentb04b264f29a80dceeb7c855c66653ac947f9b6f1 (diff)
downloadvcpkg-789855546ca26ae30398235d0b3ee2f9eb92c40a.tar.gz
vcpkg-789855546ca26ae30398235d0b3ee2f9eb92c40a.zip
Fix issues with the integration file
Diffstat (limited to 'scripts')
-rw-r--r--scripts/buildsystems/msbuild/vcpkg.targets30
1 files changed, 25 insertions, 5 deletions
diff --git a/scripts/buildsystems/msbuild/vcpkg.targets b/scripts/buildsystems/msbuild/vcpkg.targets
index a7abe5dba..e6a321ffd 100644
--- a/scripts/buildsystems/msbuild/vcpkg.targets
+++ b/scripts/buildsystems/msbuild/vcpkg.targets
@@ -1,6 +1,6 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Target Name="RuntimeLibraryAnalyze" BeforeTargets="GetClCommandLines;ClCompile">
+ <Target Name="VcpkgCompileInputs" BeforeTargets="GetClCommandLines;ClCompile">
<PropertyGroup>
<VcpkgRuntimeLibrary Condition="'%(ClCompile.RuntimeLibrary)' == ''"></VcpkgRuntimeLibrary>
<VcpkgRuntimeLibrary Condition="'%(ClCompile.RuntimeLibrary)' == 'MultiThreadedDebugDLL'"></VcpkgRuntimeLibrary>
@@ -44,16 +44,36 @@
<Message Text="Selecting VcpkgTriplet: $(VcpkgTriplet)"/>
<Message Text="Selecting VcpkgRoot: $(VcpkgRoot)"/>
<ItemGroup Condition="'$(VcpkgEnabled)' == 'true'">
- <Link>
- <AdditionalDependencies Condition="'$(VcpkgConfiguration)' == 'Debug'">$(VcpkgRoot)debug\lib\*.lib;%(Link.AdditionalDependencies)</AdditionalDependencies>
- <AdditionalDependencies Condition="'$(VcpkgConfiguration)' == 'Release'">$(VcpkgRoot)lib\*.lib;%(Link.AdditionalDependencies)</AdditionalDependencies>
- </Link>
<ClCompile>
<AdditionalIncludeDirectories>$(VcpkgRoot)include;%(ClCompile.AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
</ItemGroup>
</Target>
+ <Target Name="VcpkgLinkInputs"
+ DependsOnTargets="ComputeRCGeneratedLinkInputs;
+ ComputeManifestGeneratedLinkerInputs;
+ ComputeCustomBuildOutput;
+ ComputeCLGeneratedLinkInputs;
+ ComputeLinkInputsFromProject;
+ ComputeReferenceLinkInputs;"
+ BeforeTargets="Link">
+ <Message Text="LinkInputs: @(Link)" />
+ <ItemGroup Condition="'$(VcpkgEnabled)' == 'true'">
+ <VcpkgLink Include="$(VcpkgRoot)debug\lib\*.lib" Condition="'$(VcpkgConfiguration)' == 'Debug'"/>
+ <VcpkgLink Include="$(VcpkgRoot)lib\*.lib" Condition="'$(VcpkgConfiguration)' == 'Release'"/>
+
+ <Link>
+ <AdditionalDependencies>@(VcpkgLink);%(Link.AdditionalDependencies)</AdditionalDependencies>
+ </Link>
+ </ItemGroup>
+ <Message Text="VcpkgLinkInputs: @(VcpkgLink)" />
+ </Target>
+
+ <PropertyGroup>
+ <ComputeLinkInputsTargets >$(ComputeLinkInputsTargets);VcpkgLinkInputs</ComputeLinkInputsTargets >
+ </PropertyGroup>
+
<Target Name="AppLocalFromInstalled" AfterTargets="CopyFilesToOutputDirectory" BeforeTargets="CopyLocalFilesOutputGroup" Condition="'$(VcpkgEnabled)' == 'true' and '$(OutputType)' == 'exe'">
<WriteLinesToFile
File="$(TLogLocation)$(ProjectName).write.1u.tlog"