Speedup gradle builds by setting explicit deps on prepareBoost task.

Differential Revision: D2625574

fb-gh-sync-id: db0887e184a6d098699c9f84a2c3cb0d3b7e7b0f
This commit is contained in:
Krzysztof Magiera 2015-11-06 00:21:40 -08:00 committed by facebook-github-bot-6
parent 1019cc3aef
commit 6a656a1491
1 changed files with 11 additions and 5 deletions

View File

@ -29,11 +29,17 @@ task downloadBoost(dependsOn: createNativeDepsDirectories, type: Download) {
dest new File(downloadsDir, 'boost_1_57_0.zip')
}
task prepareBoost(dependsOn: downloadBoost, type: Copy) {
from zipTree(downloadBoost.dest)
from 'src/main/jni/third-party/boost/Android.mk'
include 'boost_1_57_0/boost/**/*.hpp', 'Android.mk'
into "$thirdPartyNdkDir/boost"
task prepareBoost(dependsOn: downloadBoost) {
inputs.files downloadBoost.dest, 'src/main/jni/third-party/boost/Android.mk'
outputs.dir "$thirdPartyNdkDir/boost"
doLast {
copy {
from { zipTree(downloadBoost.dest) }
from 'src/main/jni/third-party/boost/Android.mk'
include 'boost_1_57_0/boost/**/*.hpp', 'Android.mk'
into "$thirdPartyNdkDir/boost"
}
}
}
task downloadDoubleConversion(dependsOn: createNativeDepsDirectories, type: Download) {