This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.gradle
65 lines (53 loc) · 1.62 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
apply from: 'config.gradle'
buildscript {
apply from: 'config.gradle'
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$versions.gradlePluginVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlinVersion"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
def outputDir = "build/outputs"
task clean(type: Delete) {
dependsOn(":OVRMobile:clean")
delete(rootProject.buildDir)
// Delete the contents of the outputs directory
delete(outputDir)
}
/**
* Generate the plugin binaries.
*/
task generatePluginBinary(type: Copy) {
dependsOn(":OVRMobile:assembleDebug")
dependsOn(":OVRMobile:assembleRelease")
from("plugin/build/outputs/aar")
into("$outputDir/pluginBin")
}
/**
* Generate the plugin native shared libraries.
* This is mostly to be used by maintainers to update the https://github.com/GodotVR/godot-oculus-mobile-asset repo.
*/
task generateSharedLibs(type: Copy) {
dependsOn(":OVRMobile:externalNativeBuildFullDebug")
dependsOn(":OVRMobile:externalNativeBuildFullRelease")
// Specify the base directory. All following 'into' targets will be relative
// to this directory.
into("$outputDir/sharedLibs")
// Copy the generated debug shared libs into the outputs directory
from("plugin/build/intermediates/cmake/fullDebug/obj") {
into("debug")
}
// Copy the generated release shared libs into the outputs directory
from("plugin/build/intermediates/cmake/fullRelease/obj") {
into("release")
}
}