-
Notifications
You must be signed in to change notification settings - Fork 475
/
settings.gradle
50 lines (38 loc) · 1.64 KB
/
settings.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
include ':library', ':cgeDemo'
def pFile = new File(settingsDir, 'local.properties')
Properties properties = new Properties()
/// if the local.properties file does not exist, create it.
if (pFile.exists()) {
properties.load(pFile.newDataInputStream())
}
if (properties.getProperty('usingCMakeCompile', null) == null) {
pFile.append('\nusingCMakeCompile=false\n')
}
if (properties.getProperty('usingCMakeCompileDebug', null) == null) {
pFile.append('\nusingCMakeCompileDebug=false\n')
}
/// if disableVideoModule is true, the recording functions is disabled,
/// and ffmpeg will not be used.
if (properties.getProperty('disableVideoModule', null) == null) {
pFile.append('\ndisableVideoModule=false\n')
}
if (properties.getProperty('deployArtifacts', null) == null) {
pFile.append('\ndeployArtifacts=false\n')
}
def homeDir = System.getenv('HOME')
def mavenLocalDir = "maven_local_repo"
if (homeDir != null && !homeDir.isEmpty()) {
mavenLocalDir = homeDir + '/' + mavenLocalDir
}
/// if deployArtifacts is true, the deploy mode is on.
if (properties.getProperty('localRepoDir', null) == null) {
pFile.append('\nlocalRepoDir=' + mavenLocalDir + '\n')
}
if (gradle.ext == null) {
gradle.ext = {}
}
gradle.ext.usingCMakeCompile = properties.getProperty("usingCMakeCompile", "") == "true"
gradle.ext.usingCMakeCompileDebug = properties.getProperty("usingCMakeCompileDebug", "") == "true"
gradle.ext.disableVideoModule = properties.getProperty("disableVideoModule", "") == "true"
gradle.ext.deployArtifacts = properties.getProperty("deployArtifacts", "") == "true"
gradle.ext.localRepoDir = properties.getProperty("localRepoDir", mavenLocalDir)