Speedup gradle builds by setting explicit deps on prepareBoost task.
Differential Revision: D2625574 fb-gh-sync-id: db0887e184a6d098699c9f84a2c3cb0d3b7e7b0f
This commit is contained in:
parent
1019cc3aef
commit
6a656a1491
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue