Browse Source

Ship lua files in libvlc artifact

3.3.x
Nicolas Pomepuy 6 years ago
parent
commit
bc1b17beed
  1. 32
      application/app/build.gradle
  2. 33
      libvlc/build.gradle

32
application/app/build.gradle

@ -11,29 +11,6 @@ android {
pickFirst 'lib/x86_64/libc++_shared.so'
}
task hrtfsCopy(type: Copy) {
from '../../vlc/share/hrtfs'
into 'src/main/assets/hrtfs'
}
task luaPlaylistCopy(type: Copy) {
from '../../vlc/share/lua/playlist'
into 'src/main/assets/lua/playlist'
exclude '**/*.txt'
}
task luaModuleCopy(type: Copy) {
from '../../vlc/share/lua/modules'
into 'src/main/assets/lua/modules'
exclude '**/*.txt'
}
task luaMetaCopy(type: Copy) {
from '../../vlc/share/lua/meta'
into 'src/main/assets/lua/meta'
exclude '**/*.txt'
}
dexOptions {
maxProcessCount 8
javaMaxHeapSize "4g"
@ -64,15 +41,6 @@ android {
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
tasks.whenTaskAdded { task ->
if (task.name.startsWith('merge')) {
task.dependsOn hrtfsCopy
task.dependsOn luaPlaylistCopy
task.dependsOn luaMetaCopy
task.dependsOn luaModuleCopy
}
}
}
signingConfigs {

33
libvlc/build.gradle

@ -18,6 +18,15 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
minSdkVersion rootProject.ext.minSdkVersion
resValue "string", "build_vlc_revision", vlcRevision()
tasks.whenTaskAdded { task ->
if (task.name.startsWith('merge')) {
task.dependsOn hrtfsCopy
task.dependsOn luaPlaylistCopy
task.dependsOn luaMetaCopy
task.dependsOn luaModuleCopy
}
}
}
sourceSets {
@ -55,6 +64,30 @@ android {
}
}
}
task hrtfsCopy(type: Copy) {
project.logger.lifecycle('hrtfsCopy')
from '../vlc/share/hrtfs'
into 'assets/hrtfs'
}
task luaPlaylistCopy(type: Copy) {
from '../vlc/share/lua/playlist'
into 'assets/lua/playlist'
exclude '**/*.txt'
}
task luaModuleCopy(type: Copy) {
from '../vlc/share/lua/modules'
into 'assets/lua/modules'
exclude '**/*.txt'
}
task luaMetaCopy(type: Copy) {
from '../vlc/share/lua/meta'
into 'assets/lua/meta'
exclude '**/*.txt'
}
}
clean {

Loading…
Cancel
Save