How to use “sourceSets.main.jni.srcDirs = []” in gradle experimental

822 views
Skip to first unread message

MrAidoru

unread,
Jan 14, 2016, 11:28:20 AM1/14/16
to android-ndk
Hello,
I have a problem:

in my gradle-build I have this istruction:

sourceSets.main.jni.srcDirs = []

but I need to migrate to gradle experimental (to be able to use breakpoints to debug native source), is there possible to use it in some way in gradle-experimental?

Thank you

Daniel Monteiro

unread,
Jan 16, 2016, 12:34:05 PM1/16/16
to android-ndk
You can "cheat" and use the cppFlags for including extra source dirs.
I did for including a common source for a few projects, indeed.

Alex Cohn

unread,
Jan 17, 2016, 2:00:03 PM1/17/16
to android-ndk
If you depend on Android.mk for building your shared lib, you will not be able to debug your native code. Please see some workarounds in StackOverflow: http://stackoverflow.com/questions/32636150/define-local-src-files-in-ndk-dsl/32640823#32640823

BR,
Alex
Reply all
Reply to author
Forward
0 new messages