forked from moritz-wundke/Boost-for-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
properties.gradle
executable file
·39 lines (34 loc) · 1.41 KB
/
properties.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
BabelBuild.with {
PropertyWithDefault("version", "1.53.0")
PropertyWithDefault("libs", "")
PropertyWithDefault("bintray_dryRun", true)
PropertyWithDefault("bintray_publish", false)
}
ext {
dotVersion = version
underscoreVersion = dotVersion.replace(".", "_")
boostName = "boost_" underscoreVersion
zipFile = boostName ".tar.bz2"
boostUrl = "http://downloads.sourceforge.net/project/boost/boost/$version/$zipFile"
unpackedDir = project.buildDir
boostBuildDir = new File(unpackedDir, "BUILD_$underscoreVersion/")
pathToBjamDir = "tools/build/v2"
boostDir = new File(unpackedDir, boostName)
bjamExtensionDir = new File(boostDir.getPath(), pathToBjamDir)
}
ext {
bjamExtensionToolset = "gcc-androidR8e"
libsToBuild = libs.tokenize().collect { x -> "--with-$x" }
}
ext {
toolchainBjamExtensionMap = [
'armeabi': "user-config-arm-boost-${underscoreVersion}.jam",
'armeabi-v7a': "user-config-arm-boost-${underscoreVersion}.jam",
'armeabi-v7a-hard': "user-config-arm-boost-${underscoreVersion}.jam",
'arm64-v8a': "user-config-arm-boost-${underscoreVersion}.jam",
'mips': "user-config-mips-boost-${underscoreVersion}.jam",
'mips64': "user-config-mips-boost-${underscoreVersion}.jam",
'x86': "user-config-i686-boost-${underscoreVersion}.jam",
'x86_64': "user-config-x86_64-boost-${underscoreVersion}.jam",
]
}