Fix gradle build due to renamed boost directory

Reviewed By: yungsters

Differential Revision: D5033507

fbshipit-source-id: 1ab1126e0beb0a72f5a090a7cfeee0d5d99b0d16
This commit is contained in:
Michael Lee 2017-05-10 05:57:59 -07:00 committed by Facebook Github Bot
parent 9b06205f82
commit 48c27b9a6c
1 changed files with 5 additions and 2 deletions

View File

@ -17,7 +17,7 @@ def downloadsDir = new File("$buildDir/downloads")
def thirdPartyNdkDir = new File("$buildDir/third-party-ndk")
// You need to have following folders in this directory:
// - boost_1_57_0
// - boost_1_63_0
// - double-conversion-1.1.1
// - folly-deprecate-dynamic-initializer
// - glog-0.3.3
@ -44,9 +44,12 @@ task downloadBoost(dependsOn: createNativeDepsDirectories, type: Download) {
task prepareBoost(dependsOn: boostPath ? [] : [downloadBoost], type: Copy) {
from boostPath ?: tarTree(resources.gzip(downloadBoost.dest))
from 'src/main/jni/third-party/boost/Android.mk'
include 'Android.mk', 'boost_1_63_0/boost/**/*.hpp'
include 'Android.mk', 'boost_1_63_0/boost/**/*.hpp', 'boost/boost/**/*.hpp'
includeEmptyDirs = false
into "$thirdPartyNdkDir/boost"
doLast {
file("$thirdPartyNdkDir/boost/boost").renameTo("$thirdPartyNdkDir/boost/boost_1_63_0")
}
}
task downloadDoubleConversion(dependsOn: createNativeDepsDirectories, type: Download) {