How to define multiple ndk modules in gradle (new experimental gradle plugin)

瀏覽次數:292 次
跳到第一則未讀訊息

sovathee

未讀,
2015年7月30日 下午4:29:092015/7/30
收件者:android-ndk
My app has several JNI modules and I used to define the following in my gradle: 

commandLine "ndk-build.cmd",
'-C', file('src/main/jni').absolutePath,
'-j', Runtime.runtime.availableProcessors(),
'all'

And in my Android.mk, I specifies what files to be built with each module.

Now, I want to be able to native debug my app, so I'm trying to convert my build.gradle to use the new experimental gradle plugin (http://tools.android.com/tech-docs/new-build-system/gradle-experimental)

However, it seems that I can only defines one module and I cannot specify what files to be built.

Does anyone have any idea how to configure this?

Thanks,
So
回覆所有人
回覆作者
轉寄
0 則新訊息