I have a set of pre-build JniLibs and I have copied it into my 
src/main/jniLibs.

I am still not seeing the integration into my final APKs.  When I hand copy 
the .so files into the build directory per the previous work-around, there 
is a marked difference in size and my app functions properly.  This does 
not occur automatically.

My questions are as follows:
1.  If I have a set of pre-build .so libraries, is it enough to simply drop 
them into my project structure as you have instructed?
2.  Are there any changes to my build.gradle file?
3.  What markers should I expect in the build directory to indicate that 
the integration is functioning properly?  Should I see a new directory 
called "native-libs" or is the integration more opaque now?

I believe that my use-case is the simplest of them all, so I am hoping that 
it will be obvious to someone out there.

Thanks!

Best
Roberto

On Thursday, January 23, 2014 10:46:06 PM UTC-6, Chris Byers wrote:
>
> Thanks Xavier for a great implementation, looks like NDK support is 
> heading in the right direction!
>
> I used your examples to compile an NDK library I have with no issues. 
>  However, one feature request, when you can, is to either allow me to 
> override (or merge) the Android.mk file with my own so that I can fully 
> customize the NDK build, or provide additional library/path linking 
> options.  I need to add "-Wl,-whole-archive path/to/static/lib 
> -wl,-no-whole-archive" to my NDK library as well as link a prebuilt .so 
> library against my NDK library.  I have a custom built arm library for 
> Python (libpython.so) that my NDK code requires linking against, but I 
> don't see an "easy" way to provide a path (-L) for it.
>
> As a work around, I am tagging on to the end of the first ldLibs entry as 
> such in the mean time:
> ldLibs "log -lpython -L/Users/my_build/libs/ -wl,-no-whole-archive 
> /Users/my_build/libs/libxml2.a"
>
> I love Android Studio and look forward to full NDK support, thanks for the 
> hard work, it's working quite well already!
>
> On Thursday, December 26, 2013 7:39:45 PM UTC-6, Xavier Ducrohet wrote:
>>
>> Version 0.7.2 was published on MavenCentral.
>>
>> You can put your prebuilts in src/main/jniLibs/...
>> There's a sample called ndkJniLib that shows the expected folder 
>> structure in there.
>>
>> -- 
>> Xavier Ducrohet
>> Android SDK Tech Lead
>> Google Inc.
>> http://developer.android.com | http://tools.android.com
>>
>> Please do not send me questions directly. Thanks! 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adt-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to