Commit cc86b852 authored by Thomas Guillem's avatar Thomas Guillem

build: add libcompat.7.so only for armv7

parent 5a050e7e
......@@ -14,7 +14,7 @@ android {
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets', 'libcompat/libs/armeabi']
assets.srcDirs = ['assets' ]
}
}
......
......@@ -5,3 +5,4 @@ obj/
.settings
assets/lua/
assets/*.so
......@@ -23,6 +23,18 @@ android {
exclude '**/*.txt'
}
task libcompatCopy(type: Copy) {
from '../libvlc/libcompat/libs/armeabi'
into 'assets'
include '**/*.so'
}
task libcompatDelete(type: Delete) {
delete fileTree('assets') {
include '**/*.so'
}
}
dataBinding {
enabled = true
}
......@@ -39,6 +51,14 @@ android {
if (task.name.startsWith('merge')) {
task.dependsOn luaPlaylistCopy
task.dependsOn luaMetaCopy
if (task.name.contains('ARMv7') || task.name.contains('ARMv6')
|| task.name.contains('ARMv5')) {
task.dependsOn libcompatCopy
}
else {
task.dependsOn libcompatDelete
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment