Replies: 10 comments
-
do you have any experience in integrating this platform under cmake ? |
Beta Was this translation helpful? Give feedback.
-
@voskrese no I don't, I have no experience in custom toolchains with MS toolsets. I am interested in using vcpkg built libraries in VS Android via vcxproj/msbuild at the moment, arm64/clang. This setup as I understand uses NDK compilation toolchain. |
Beta Was this translation helpful? Give feedback.
-
strange, as far as I know, compilation under ANDROID in VCPKG does not affect MSBUILD I thought that you have some experience using PLATFORMTOOLSET ANDROID MSBUILD |
Beta Was this translation helpful? Give feedback.
-
This issue is not about Android compilation(worked out of the box for me). Its about vcpkg integration with VS/msbuild. I just reverse engineered those properties from msbuild output, trying to integrate. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_build_msbuild.cmake https://github.com/microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_install_msbuild.cmake |
Beta Was this translation helpful? Give feedback.
-
Please note changes are done to scripts/buildsystems/msbuild/vcpkg.targets. This script is used for INTEGRATION. Please see https://vcpkg.readthedocs.io/en/latest/about/faq/#i-cant-use-user-wide-integration-can-i-use-a-per-project-integration |
Beta Was this translation helpful? Give feedback.
-
so did your edit help you avoid further errors and what was the port? |
Beta Was this translation helpful? Give feedback.
-
you're writing code in MSVC for the ANDROID platform and trying to integrate VCPKG into your project, right? |
Beta Was this translation helpful? Give feedback.
-
Yes this issue is about adding Visual Studio integration for Android projects. My patch is just demonstration that this is possible and should be relatively straightforward, but I am not an expert in MSBuild and vcpkg, and I had troubles with copying part - that is why I used static linkage in my triplets. |
Beta Was this translation helpful? Give feedback.
-
Another hint for person responsible for fix. ...
<PropertyGroup>
<VCLibPackagePath Condition="'$(VCLibPackagePath)' == ''">$(LOCALAPPDATA)\vcpkg\vcpkg.user</VCLibPackagePath>
</PropertyGroup>
<Import Condition="'$(VCLibPackagePath)' != '' and Exists('$(VCLibPackagePath).targets')" Project="$(VCLibPackagePath).targets" />
... |
Beta Was this translation helpful? Give feedback.
-
Add enable *-android targets integration with VS Android projects:
Here is simple patch which enabled compilation:
But I see following in Build console:
Beta Was this translation helpful? Give feedback.
All reactions