Skip to content

Commit

Permalink
Speedup gradle builds by setting explicit deps on prepareBoost task.
Browse files Browse the repository at this point in the history
Differential Revision: D2625574

fb-gh-sync-id: db0887e184a6d098699c9f84a2c3cb0d3b7e7b0f
  • Loading branch information
kmagiera authored and facebook-github-bot-6 committed Nov 6, 2015
1 parent 1019cc3 commit 6a656a1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions ReactAndroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6a656a1

Please sign in to comment.