You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/android-aac-enc/build.gradle

48 lines
923 B
Groovy

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android-library'
repositories {
mavenCentral()
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 7
targetSdkVersion 17
}
task jarNativeLib(type: Zip) {
destinationDir file("libs")
baseName 'libaac-encoder'
extension 'jar'
from fileTree(dir: 'libs/armeabi', include: 'libaac-encoder.so')
into 'lib/armeabi'
}
tasks.withType(Compile) {
compileTask -> compileTask.dependsOn(jarNativeLib)
}
task cleanNativeLib {
delete 'libs/libaac-encoder.jar'
}
clean.dependsOn 'cleanNativeLib'
}
dependencies {
compile 'com.android.support:support-v4:18.0.0'
compile files('libs/libaac-encoder.jar')
}