>
> Hello,

I'm trying to get Gradle to build a C-only libraries, and we have few of 
those at my current project.  The end result is a 1 lib .so file to consume 
by the main app.

I'm starting with a project like this:

- zlib
>     - src
>          - main 
>                 - jni 
>                       *.h / *.c
>     - build.gradle
> - settings.gradle


My `build.gradle` looks like something like this:

> buildscript {
>     repositories {
>         mavenCentral()
>     }
>     dependencies {
>         classpath 'com.android.tools.build:gradle:0.9.+'
>     }
> }
> apply plugin: 'android-library'
> android {
>     compileSdkVersion "Google Inc.:Google APIs:19"
>     buildToolsVersion "19.0.3"
>     defaultConfig {
>         ndk {
>             moduleName "zlib-jni"
>         }
>     }
> }


My `settings.gradle`

>
> include ':lookout', ':zlib', ':another_native_lib_depends_on_zlib"


How should I get started?  I would like to try out and building only 'zlib' 
in my case and then consumed by another "native lib", then eventually the 
main app will consume as 1 big lib .so file.

Thanks,
Sam. 

 


-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to