-
Notifications
You must be signed in to change notification settings - Fork 19
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
[WIP] building externals for android #63
base: master
Are you sure you want to change the base?
Conversation
compiles on dockcross/android-arm and dockcross/android-arm64 not runtime tests have been performed yet (as i only have a cross-compilation environment) Related: #60
since @claudeha has requested this feature, probably he can do some real world tests |
actually, i just noticed that it doesn't work at all yet :-( |
the problems being obviously, that on androind we need to do a bit of mangling to get the output name.
e.g. However, pd-lib-builder/Makefile.pdlibbuilder Lines 873 to 880 in 9bd01a2
@katjav any ideas how you would want to solve this? |
It seems for Android the class names should be manipulated to get the desired output names. There is no strict relation required between source file name and class name. Class binaries may be built from multiple input files as well. A lib makefile could for example define:
All variables under class.sources are evaluated to this form as well. For example, when a lib makefile defines:
this will be translated to:
Line 720 is the point where all pd-lib-builder/Makefile.pdlibbuilder Lines 716 to 724 in 6a99fbd
Not sure if such an approach may have undesired side effects. Also I wonder how this issue was avoided in the Makefile template? |
this is really just a blind-flight attempt on building externals for android.
Related: #60
compilation
basic flags and quirks have been backported from the original template-Makefile.
The notable omission is that there is no override for the sysroot.
compilation has been tested on dockcross/android-arm and dockcross/android-arm64 (docker-images for cross-compilation).
i have no idea how to target specific android releases with dockcross.
i also have no idea whether this would also work with a normal installation of the NDK.
testing
building has been tested.
but since the build-environment is just a cross-builder, no runtime tests have been performed yet.