-
Notifications
You must be signed in to change notification settings - Fork 79
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
Update examples to match new build system #10
Comments
This is an amazing contribution, dude! I will try to find hours as well to re-organise all examples. They are mostly boiler-plate all along. |
Yep :-), me too, coming up with this was not fun. I wish the official docs were better for the "I can compile on my own, just make an apk already" case. |
Reopening as examples need some care from me. |
I'm updating example-egl to gradle here. I switch to Gradle build system as a entry point (because currently this is default Android build system). Currently first version works and I was able to build and deploy example-egl by single command: I'm planning to improve multi-arch support (arm and x86 for example) and refactor my |
The new build system (the gradle stuff) is actually relatively nice (although it took me a whole day to figure out all of the details) and removes the need for the
android
tool.I don't have time to update the examples right now and would also like to reduce some of the ridiculous boilerplate before that. I'll just document the most interesting ingredients here for later/others. I'll have more time in a couple of weeks.
It may be possible to shorten this a bit, but this is the conventional setup. The root (build) folder should contain these files for packing a .so into an apk with a native activity:
Running
gradle(w) build
will produce an apk.build.gradle
/settings.gradle
/app/build.gradle
The text was updated successfully, but these errors were encountered: