If you are using gradle-experimental:0.7.0, you would do this in the 
model.repositories.libs block.  Like this:
model {
    repositories {
        libs(PrebuiltLibraries) {
            // These are akin to LOCAL_SRC_FILES in the old Android.mk
           
           somelibrary_prebuilt {
               binaries.withType(StaticLibraryBinary) {
                   staticLibraryFile = file("${TARGET_ARCH_ABI}/
libsomelibrary.a")
        }
      }
    }
  }
}   

On Monday, July 13, 2015 at 9:53:29 PM UTC-4, Nimrod Dayan wrote:
>
> In traditional NDK make file, I can link a prebuilt static library and 
> specify its headers directory:
> *Android.mk*
>
> include $(CLEAR_VARS)
> LOCAL_MODULE            := somelibrary-prebuilt-static
> LOCAL_SRC_FILES         := $(TARGET_ARCH_ABI)/libsomelibrary.a
> LOCAL_EXPORT_C_INCLUDES := include 
> include $(PREBUILT_STATIC_LIBRARY)
>
> How do I do that in build.gradle using the new plugin's DSL?
>

-- 
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