Skip to content

build(android): give the host include-bin helper a .exe suffix on Windows hosts - #1

Draft
manon-traverse wants to merge 1 commit into
v1.xfrom
pr-android-windows-build
Draft

build(android): give the host include-bin helper a .exe suffix on Windows hosts#1
manon-traverse wants to merge 1 commit into
v1.xfrom
pr-android-windows-build

Conversation

@manon-traverse

Copy link
Copy Markdown
Collaborator

Summary

When cross-compiling RenderDoc for Android from a Windows host, the build fails while generating the embedded resources.

Problem

The top-level renderdoc/CMakeLists.txt takes the if(UNIX) path when building for Android (the target, Android, is Unix). In the cross-compiling branch it builds the include-bin resource helper for the host via HOST_NATIVE_CPP_COMPILER, writing the output as include-bin with no extension. On a Windows host cmd.exe refuses to execute an extension-less file, so the build stops with '…\include-bin' is not recognized as an internal or external command.

Fix

Append a .exe suffix to the host helper's output name (and the references to it) when CMAKE_HOST_WIN32. No change on Linux/macOS hosts.

Testing

Built the Android arm64 capture layer + renderdoccmd from a Windows host (NDK r28c, Ninja) — the helper now builds and runs, and the full layer/renderdoccmd link succeeds.


🤖 Draft opened on the Traverse-Research fork for internal human review before any upstream submission.

…dows

When cross-compiling for Android the top-level CMake takes the UNIX path (the
target, Android, is Unix) and builds the include-bin resource helper for the
*host* via HOST_NATIVE_CPP_COMPILER. On a Windows host the output was named
"include-bin" with no extension, which cmd.exe refuses to execute, breaking
the build. Add a .exe suffix when CMAKE_HOST_WIN32 so the helper is runnable.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant