|
|
|
@ -41,65 +41,15 @@ android { |
|
|
|
|
|
|
|
// Make per-variant version code |
|
|
|
libraryVariants.all { variant -> |
|
|
|
def vlcVersion = rootProject.ext.versionName |
|
|
|
//Custom APK name |
|
|
|
variant.outputs.each { output -> |
|
|
|
if (output.outputFileName != null && output.outputFileName.endsWith('.aar')) { |
|
|
|
output.outputFileName = "libvlc-${vlcVersion}.aar" |
|
|
|
output.outputFileName = "libvlc-${abi}-${library_version}.aar" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
* Include GDB files into apk |
|
|
|
*/ |
|
|
|
//afterEvaluate { |
|
|
|
// Sync packageTask = project.getTasks().findByName("packageReleaseJniLibs") |
|
|
|
// packageTask.include(['**/gdbserver', '**/gdb.setup']) |
|
|
|
//} |
|
|
|
|
|
|
|
//class BuildNative extends Exec {} |
|
|
|
// |
|
|
|
//tasks.withType(BuildNative){ |
|
|
|
// /* |
|
|
|
// Properties set for Android Studio own shell. |
|
|
|
// when you run gradlew from cli, OS shell env variables will be used |
|
|
|
// |
|
|
|
// To be able to build from Android Studio, you have to set ndk.dir & sdk.dir |
|
|
|
// properties in local.properties in the root folder, like this (for example): |
|
|
|
// sdk.dir=/home/<username>/SDK/android-sdk-linux |
|
|
|
// ndk.dir=/home/<username>/SDK/android-ndk-r10b |
|
|
|
// */ |
|
|
|
// if (System.getenv('ANDROID_SDK') == null || System.getenv('ANDROID_NDK') == null) { |
|
|
|
// Properties properties = new Properties() |
|
|
|
// properties.load(project.rootProject.file('local.properties').newDataInputStream()) |
|
|
|
// environment 'ANDROID_NDK', properties.getProperty('ndk.dir') |
|
|
|
// environment 'ANDROID_SDK', properties.getProperty('sdk.dir') |
|
|
|
// } |
|
|
|
// workingDir '..' |
|
|
|
// commandLine './compile-libvlc.sh' |
|
|
|
//} |
|
|
|
// |
|
|
|
//task buildDebugARMv7(type:BuildNative) { |
|
|
|
// args('-a', "armeabi-v7a") |
|
|
|
//} |
|
|
|
//task buildDebugARM64(type:BuildNative) { |
|
|
|
// args('-a', "arm64-v8a") |
|
|
|
//} |
|
|
|
//task buildDebugx86(type:BuildNative) { |
|
|
|
// args('-a', "x86") |
|
|
|
//} |
|
|
|
//task buildDebugx86_64(type:BuildNative) { |
|
|
|
// args('-a', "x86_64") |
|
|
|
//} |
|
|
|
//task buildDebugMIPS(type:BuildNative) { |
|
|
|
// args('-a', "mips") |
|
|
|
//} |
|
|
|
//task buildDebugMIPS64(type:BuildNative) { |
|
|
|
// args('-a', "mips64") |
|
|
|
//} |
|
|
|
// |
|
|
|
task generateSources (type: Jar) { |
|
|
|
classifier = 'sources' |
|
|
|
from android.sourceSets.main.java.srcDirs |
|
|
|
|