Skip to content

Instantly share code, notes, and snippets.

@supersat
Created March 10, 2021 23:21
Show Gist options
  • Save supersat/6f3e26b9dc05bad493b21c0de097691d to your computer and use it in GitHub Desktop.
Save supersat/6f3e26b9dc05bad493b21c0de097691d to your computer and use it in GitHub Desktop.
Shell script for waf configuration cross-compiling for Android
#!/bin/sh
~/Library/Android/sdk/platform-tools/adb push $1 /storage/testprog > /dev/null 2> /dev/null
~/Library/Android/sdk/platform-tools/adb shell /storage/testprog 2> /dev/null
@supersat
Copy link
Author

Recommended usage:

  1. Start up an Android emulator
  2. Run adb root so you can push executables to /storage
  3. Run waf configure --cross-compile --cross-execute=adb-cross-exec.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment