diff options
author | Akihiko Odaki <nekomanma@pixiv.co.jp> | 2018-09-26 10:34:19 (GMT) |
---|---|---|
committer | Akihiko Odaki <nekomanma@pixiv.co.jp> | 2018-09-27 00:59:41 (GMT) |
commit | 5e1632e2cca5b8d537bc66525d631ebd72f6949b (patch) | |
tree | 738489333db45bdb069607024d5010607fea21d9 /src/cv2pdb.vcxproj | |
parent | 0198534ac9fca5ac2ba9c0f9c4c5788849db6b41 (diff) | |
download | cv2pdb-5e1632e2cca5b8d537bc66525d631ebd72f6949b.zip cv2pdb-5e1632e2cca5b8d537bc66525d631ebd72f6949b.tar.gz cv2pdb-5e1632e2cca5b8d537bc66525d631ebd72f6949b.tar.bz2 |
Add Visual Studio detection by the COM API
The new COM API is expected to work on Visual Studio 2017 and newer
installations. It is also compatible with non-x86 runtime.
Diffstat (limited to 'src/cv2pdb.vcxproj')
-rw-r--r-- | src/cv2pdb.vcxproj | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cv2pdb.vcxproj b/src/cv2pdb.vcxproj index d79bdc2..af3b87b 100644 --- a/src/cv2pdb.vcxproj +++ b/src/cv2pdb.vcxproj @@ -208,8 +208,18 @@ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
</MASM>
</ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
+ <Import Project="packages\Microsoft.VisualStudio.Setup.Configuration.Native.1.16.30\build\native\Microsoft.VisualStudio.Setup.Configuration.Native.targets" Condition="Exists('packages\Microsoft.VisualStudio.Setup.Configuration.Native.1.16.30\build\native\Microsoft.VisualStudio.Setup.Configuration.Native.targets')" />
</ImportGroup>
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
+ <PropertyGroup>
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
+ </PropertyGroup>
+ <Error Condition="!Exists('packages\Microsoft.VisualStudio.Setup.Configuration.Native.1.16.30\build\native\Microsoft.VisualStudio.Setup.Configuration.Native.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.VisualStudio.Setup.Configuration.Native.1.16.30\build\native\Microsoft.VisualStudio.Setup.Configuration.Native.targets'))" />
+ </Target>
</Project>
\ No newline at end of file |