Description
Describe the bug
It is currently not possible to create android prefabs (AAR) because of the emscripten support.
During the export command vcpkg tries to extract triplet information by running cmake with the toolchain file. However, the toolchain for emscripten returns a FATAL_ERROR in case emscripten is not present/installed. This results in vcpkg aborting.
A fix for this particular issue is to remove the emscripten present checks in the triplet, but this may break other things?
Environment
- OS: Linux (should not matter)
- Compiler: gcc 10.1, newest android ndk (should not matter)
To Reproduce
Steps to reproduce the behavior:
- Do not install emscripten / remove from PATH
- Try the android AAR example
2.1 Add android triplets
2.2./vcpkg install jsoncpp:arm-android jsoncpp:arm64-android jsoncpp:x64-android jsoncpp:x86-android
2.3./vcpkg export --triplet arm64-android jsoncpp --prefab --prefab-debug
Expected behavior
Should create the AAR prefab for jsoncpp
Failure logs
./vcpkg export --triplet arm64-android jsoncpp --prefab --prefab-debug
The following packages are already built and will be exported:
jsoncpp:arm64-android
d8187afd-ea4a-4fc3-9aa4-a6782e1ed9af
CMake Error at buildtrees/29.vcpkg_tags.cmake:8 (message):
The EMSDK environment variable must be defined
Call Stack (most recent call first):
scripts/vcpkg_get_tags.cmake:3 (vcpkg_triplet_file)
buildtrees/29.vcpkg_tags.cmake:23 (vcpkg_get_tags)
Additional context
Add any other context about the problem here.
The first commit where this problem is present is the merge of the emscripten PR: a6257ac