Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add to gradle files to allow for Android Studio importing
Also add compiled jni files to the gradle build.
  • Loading branch information
Dr-Emann committed Dec 6, 2013
1 parent 1df170d commit dca2413
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions StackBlur/build.gradle 100644 → 100755
Expand Up @@ -2,6 +2,7 @@ apply plugin: 'android-library'

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar')
}

android {
Expand Down Expand Up @@ -32,3 +33,15 @@ android {
release.setRoot('build-types/release')
}
}

task nativeLibsToJar(type: Zip, description: 'create a jar archive of the native libs') {
destinationDir file("$buildDir/native-libs")
baseName 'native-libs'
extension 'jar'
from fileTree(dir: 'libs', include: '**/*.so')
into 'lib/'
}

tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn(nativeLibsToJar)
}
9 changes: 9 additions & 0 deletions build.gradle
@@ -0,0 +1,9 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
2 changes: 2 additions & 0 deletions settings.gradle
@@ -0,0 +1,2 @@
include ':StackBlur'
include ':StackBlurDemo'

0 comments on commit dca2413

Please sign in to comment.