Skip to content

Standalone AAR build script #8261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GregoryComer opened this issue Feb 6, 2025 · 4 comments
Closed

Standalone AAR build script #8261

GregoryComer opened this issue Feb 6, 2025 · 4 comments
Assignees
Labels
module: android Issues related to Android code, build, and execution module: user experience Issues related to reducing friction for users triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Milestone

Comments

@GregoryComer
Copy link
Member

GregoryComer commented Feb 6, 2025

🚀 The feature, motivation and pitch

We currently provide pre-built Android AARs for download. It would be desirable to have a standalone build script (maybe build_android_libraries.sh?) that can reproduce the binaries with one line. The use case is for users to be able to easily switch to building from source if they need to change the configuration relative to the published binaries (adding backends/extensions, changing compiler flags, etc.). The current AAR build logic is under build/build_android_library.sh. We can likely split it out into a dedicate script.

Alternatives

No response

Additional context

No response

RFC (Optional)

No response

cc @kirklandsign @mergennachin @byjlw

@GregoryComer GregoryComer added module: android Issues related to Android code, build, and execution module: user experience Issues related to reducing friction for users labels Feb 6, 2025
@github-project-automation github-project-automation bot moved this to To triage in ExecuTorch DevX Feb 6, 2025
@GregoryComer GregoryComer moved this from To triage to Ready in ExecuTorch DevX Feb 6, 2025
@mergennachin mergennachin added this to the 0.6.0 milestone Feb 6, 2025
@digantdesai digantdesai added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Feb 6, 2025
@GregoryComer
Copy link
Member Author

#8747 renames the existing script to build_android_library.sh. We can document the usage under using-executorch-building-from-source.md and using-executorch-android.md.

@mergennachin
Copy link
Contributor

@mergennachin mergennachin reopened this Mar 24, 2025
@github-project-automation github-project-automation bot moved this from Done to Backlog in ExecuTorch DevX Mar 24, 2025
@kirklandsign
Copy link
Contributor

@kirklandsign don't we need to update this?

https://pytorch.org/executorch/main/using-executorch-building-from-source.html#android

Yes. I need to update this as well.

@mergennachin mergennachin moved this from Backlog to In progress in ExecuTorch DevX Mar 27, 2025
@kirklandsign
Copy link
Contributor

Address the remaining issues in #9725

@github-project-automation github-project-automation bot moved this from In progress to Done in ExecuTorch DevX Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: android Issues related to Android code, build, and execution module: user experience Issues related to reducing friction for users triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
Status: Done
Development

No branches or pull requests

4 participants