Skip to content
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

Provide a native Android Studio NDK build #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LossyDragon
Copy link

I was able to use the Android.mk file from libxmp and tweak it a bit for Android Studio to compile libxmp natively within Xmp Android.

The commit assumes libxmp is in 'src/main/jni/' and libxmp is precompiled with the object files to compile within Android Studio

It was able to successfully compile the following binaries: x86_64, x86, arm64-v8a, and armeabi-v7a

Due to the outdated nature of gradle and the project itself. I had to manually define my NDK Location within the project structure. Once the project/gradle is updated, it will be able to use ndkVersion within the build.gradle file.

I'm pretty sure this can be done much better, along with Android Studio fetching and compiling everything in one go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant