Update minicap for Android M support.

This commit is contained in:
Simo Kinnunen
2015-06-10 17:16:20 +09:00
parent a734b6e345
commit 810be9cfe3
5 changed files with 14 additions and 7 deletions

View File

@@ -32,13 +32,20 @@ module.exports = syrup.serial()
, lib: {
// @todo The lib ABI should match the bin ABI. Currently we don't
// have an x86_64 version of the binary while the lib supports it.
src: pathutil.requiredMatch(abi.all.map(function(supportedAbi) {
return pathutil.vendor(util.format(
'minicap/shared/android-%d/%s/minicap.so'
, properties['ro.build.version.sdk']
, supportedAbi
))
}))
src: pathutil.requiredMatch(abi.all.reduce(function(all, supportedAbi) {
return all.concat([
pathutil.vendor(util.format(
'minicap/shared/android-%s/%s/minicap.so'
, properties['ro.build.version.release']
, supportedAbi
))
, pathutil.vendor(util.format(
'minicap/shared/android-%d/%s/minicap.so'
, properties['ro.build.version.sdk']
, supportedAbi
))
])
}, []))
, dest: '/data/local/tmp/minicap.so'
, mode: 0755
}