Hi everyone, I'm trying to change default output folder for libs and obj folders. I know there is (undocummented) NDK_APP_OUT that I can override in Application.mk script that will change default obj folder location.
I was trying to find a way to also change libs folder.I know I may create build script that copies/moves this folder after build but I don't like such solutions.I have actually two questions:1) Is there a way to change default libraries output folder (libs)?2) Does NDK_APP_OUT is something that is free to use by everyone? If yes then I have a kind request to document it somewhere in docs
BTW. I'm using NDK r8e.Thanks for any reply!--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Hi everyone, I'm trying to change default output folder for libs and obj folders. I know there is (undocummented) NDK_APP_OUT that I can override in Application.mk script that will change default obj folder location. I was trying to find a way to also change libs folder.
I know I may create build script that copies/moves this folder after build but I don't like such solutions.I have actually two questions:1) Is there a way to change default libraries output folder (libs)?
The completely-unofficial / might break in the future way is to override NDK_APP_DST_DIR on the command line (e.g. ndk-build NDK_APP_DST_DIR=<path> <other-options>)
but this forces _all_ binaries to be copied to the same location (i.e. this overrides $PROJECT_PATH/libs/$ABI/ completely). That's not going to work if you target several ABIs.
I'm putting each Application.mk into jni folders (one for each project).
Two of my projects are only creating .so files. Third project takes those .so files, creates another one and packing them all to .apk file. I've created separate projects because those .so files will be shared among other projects.
In Output folder I want to put .so files.
$(call host-cp,$<,$@)
I believe that it's much safer to use a single Application.mk file and essentially to build all three .SO files (* number of supported ABIs) in one ndk-build step. The main concern is that APP_* settings should match if you want to safely use the resulting .SO files in one APK. Actually, Application.mk file is optional. You don't need it if no application-wide settings are imposed.