-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
71 lines (60 loc) · 2.49 KB
/
build.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Properties properties = new Properties()
properties.load(rootProject.file('local.properties').newDataInputStream())
def ndkClang = properties.getProperty('readium.ndk_clang', "false")
ndkClang = (ndkClang == "true") ? true : false;
rootProject.ext.set('readium_ndk_clang', ndkClang)
def ndkSkipX86 = properties.getProperty('readium.ndk_skipX86', "false")
ndkSkipX86 = (ndkSkipX86 == "true") ? true : false;
rootProject.ext.set('readium_ndk_skipX86', ndkSkipX86)
def ndkSkipARM = properties.getProperty('readium.ndk_skipARM', "false")
ndkSkipARM = (ndkSkipARM == "true") ? true : false;
rootProject.ext.set('readium_ndk_skipARM', ndkSkipARM)
def extraCmake = properties.getProperty('readium.extra_cmake', null)
rootProject.ext.set('readium_extra_cmake', extraCmake)
def readiumSdkLibDir = properties.getProperty('readium.sdk_lib_dir', null)
rootProject.ext.set('readium_sdk_lib_dir', readiumSdkLibDir)
def readiumSdkIncludeDir = properties.getProperty('readium.sdk_include_dir', null)
rootProject.ext.set('readium_sdk_include_dir', readiumSdkIncludeDir)
def lcpBuildContentFilter = false
if (readiumSdkLibDir != null && readiumSdkIncludeDir != null) {
lcpBuildContentFilter = true
rootProject.ext.set('readium_lcp_build_content_filter', true)
} else {
rootProject.ext.set('readium_lcp_build_content_filter', false)
}
// println "[[${project.name}]] (ROOT) Gradle Experimental: ${ndkExperimental}"
println "[[${project.name}]] (ROOT) Skip ARM: ${ndkSkipARM}"
println "[[${project.name}]] (ROOT) Skip x86: ${ndkSkipX86}"
println "[[${project.name}]] (ROOT) Clang: ${ndkClang}"
println "[[${project.name}]] (ROOT) readiumSdkLibDir: ${readiumSdkLibDir}"
println "[[${project.name}]] (ROOT) readiumSdkIncludeDir: ${readiumSdkIncludeDir}"
println "[[${project.name}]] (ROOT) extraCmake: ${extraCmake}"
if (lcpBuildContentFilter) {
// include ':epub3'
// project(':epub3').projectDir = new File(rootProject.projectDir, './epub3')
}
buildscript {
repositories {
google()
maven {
url "https://maven.google.com"
}
mavenCentral()
jcenter()
}
dependencies {
// https://bintray.com/android/android-tools/com.android.tools.build.gradle/view
// https://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=google
classpath "com.android.tools.build:gradle:3.4.1"
}
}
allprojects {
repositories {
google()
maven {
url "https://maven.google.com"
}
mavenCentral()
jcenter()
}
}