[Feature Request] Improve Windows-native host/target header generation for Android cross-compilation
Is your feature request related to a problem? Please describe.
Currently, cross-compiling Unicorn for Android on a Windows host requires generating runtime configuration headers (config-host.h and config-target.h).
While the majority of the build pipeline and C/C++ compilation can be seamlessly handled by the official Android NDK CMake toolchain, generating these specific host/target header files on Windows without relying on full POSIX/Bash environments (like MSYS2/Cygwin) remains tricky.
Describe the solution you'd like
Would the maintainers consider providing or updating a Windows-native generation solution for config-host.h and config-target.h?
Specifically:
- Header Generation: Provide a Windows-friendly script (e.g., PowerShell
.ps1or native Python script) to generateconfig-host.handconfig-target.hwithout needing POSIXsh/ shell-basedconfigure. - NDK Integration: Allow the rest of the compilation process to fully rely on the standard Android NDK CMake workflow (
android.toolchain.cmake).
Describe alternatives you've considered
- Using MSYS2/MinGW Bash to run
./configureon Windows, which adds external dependencies and friction for pure Windows-based CI/CD or CMake workflows. - Manually crafting or hardcoding
config-host.hfor Android target architectures.
Additional context
This improvement would streamline the build workflow for developers who build Android native binaries directly on Windows developer environments or Windows-based CI pipelines.
Source: unicorn-engine/unicorn