How to disabling plugin 0.7.+'s NDK support?

423 views
Skip to first unread message

orip

unread,
Dec 23, 2013, 8:57:34 AM12/23/13
to adt...@googlegroups.com
I'm trying to use the plugin's new NDK support but failing so far:

My existing kludge solution works fine in 0.6.+, in which I run ndk-build by hand for the sources in src/main/jni and have a task to include the .so files in a jar automatically. In 0.7.+, the gradle plugin insists on trying to build my ndk sources.

I renamed the path to src/main/jni-noconflict and hacked the build to make it work (specifying LOCAL_PATH for each source file, specifying NDK_APPLICATION_MK when running ndk-build), but is there a way to simply disable the automatic ndk detection?

Xavier Ducrohet

unread,
Dec 23, 2013, 12:38:42 PM12/23/13
to adt...@googlegroups.com
you could just change the sourceset from gradle to point somewhere else than src/main/jni so that it doesn't look in src/main/jni

For instance

android {
   sourceSets.main.jni.srcDirs = ['src/main/nojni']
}


--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

Ori Peleg

unread,
Dec 23, 2013, 2:03:39 PM12/23/13
to adt...@googlegroups.com
That's awesome, thanks!


--
You received this message because you are subscribed to a topic in the Google Groups "adt-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adt-dev/Lwo2oF2mq5g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adt-dev+u...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Check out my blog: http://orip.org
Reply all
Reply to author
Forward
0 new messages