-
Notifications
You must be signed in to change notification settings - Fork 623
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
Allow defining the ANDROID_ABI and WAMR_BUILD_TARGET for Android building #3238
Comments
Hi, yes, it is not a good way to hardcode the configurations in the cmake file, I remember it was written that way due to the GitHub CI which only supports android 32-bit. I submitted PR #3239 to rewrite the cmake file and CI file, could you help have a view? Thanks. |
Thanks for your work, I tried and it seems good to me. Simultaneously I started working on this problem (main...daniel7grant:wasm-micro-runtime:feature/android-build-options), but your |
OK, I updated the document according to you branch and made small changes. Please check whether more need to be added or changed? |
I don't see anything else. Thank you for your help. |
Welcome. |
One more thing that I just noticed: if the |
Yes, I did some test, it is not easy to set Please help review and try again, let's merge the PR if it works fine for you. |
I tried it and it seems to be working and producing valid libs on every platform. Thank you, feel free to merge it. |
Don't hardcode the cmake configurations in the Android platform's CMakeLists.txt. Fixes bytecodealliance#3238
For our use-case, we need to build WAMR for multiple Android platforms, which means that we have to change the ANDROID_ABI and WAMR_BUILD_TARGET variables. Currently these can only be set by modifying
CMakeLists.txt
inproduct-mini/platforms/android
. This is harder to do when it comes to automatic building (CI), parallelization, etc.I'd make two modification to be able to set these parameters with
-D
defines:and:
With these changes, the cross compile could be called without ever changing the files:
What do you think? I could create a Pull Request for this and the documentation update.
The text was updated successfully, but these errors were encountered: