mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-12 19:36:38 +00:00
75fd7046fb
Also disable erroring out on lint failure for now.
64 lines
1.9 KiB
Groovy
64 lines
1.9 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 23
|
|
|
|
defaultConfig {
|
|
applicationId "org.freedesktop.gstreamer.webrtc"
|
|
minSdkVersion 15
|
|
targetSdkVersion 15
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
def gstRoot
|
|
|
|
if (project.hasProperty('gstAndroidRoot'))
|
|
gstRoot = project.gstAndroidRoot
|
|
else
|
|
gstRoot = System.env.GSTREAMER_ROOT_ANDROID
|
|
|
|
if (gstRoot == null)
|
|
throw new GradleException('GSTREAMER_ROOT_ANDROID must be set, or "gstAndroidRoot" must be defined in your gradle.properties in the top level directory of the unpacked universal GStreamer Android binaries')
|
|
|
|
arguments "NDK_APPLICATION_MK=src/main/jni/Application.mk", "GSTREAMER_JAVA_SRC_DIR=src/main/java", "GSTREAMER_ROOT_ANDROID=$gstRoot", "GSTREAMER_ASSETS_DIR=src/main/assets", "V=1"
|
|
|
|
targets "gstwebrtc"
|
|
|
|
// All archs except MIPS and MIPS64 are supported
|
|
abiFilters 'armeabi-v7a', 'arm64-v8a' //, 'x86', 'x86_64', 'armeabi'
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
path 'src/main/jni/Android.mk'
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
}
|
|
|
|
afterEvaluate {
|
|
compileDebugJavaWithJavac.dependsOn 'externalNativeBuildDebug'
|
|
compileReleaseJavaWithJavac.dependsOn 'externalNativeBuildRelease'
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
testCompile 'junit:junit:4.12'
|
|
compile 'com.android.support:appcompat-v7:23.1.1'
|
|
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
|
|
}
|