-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
110 lines (89 loc) · 4.25 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import org.gradle.internal.os.OperatingSystem
apply plugin: 'java'
apply plugin: 'kotlin'
// jitpack
apply plugin: 'maven'
group = 'com.github.kotlin-graphics'
buildscript {
ext.kotlinVersion = '1.2.30-eap-16'
repositories {
mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-dev") }
maven { setUrl("https://oss.sonatype.org/content/repositories/snapshots/") }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
compile 'com.github.kotlin-graphics:uno-sdk:9b180ad3940abdc2e706b115d48a270202c11a3a'
compile 'com.github.kotlin-graphics:openvr:41552f527ccf414bd44e54c16cd8b04cddf5c48d'
testCompile 'com.github.elect86:kotlintest:43281b7e1b'
compile "net.java.dev.jna:jna:4.4.0"
def jogl = "2.3.2"
compile("org.jogamp.gluegen:gluegen-rt:$jogl")
compile("org.jogamp.jogl:jogl-all:$jogl")
runtime("org.jogamp.gluegen:gluegen-rt:$jogl:natives-android-aarch64")
runtime("org.jogamp.gluegen:gluegen-rt:$jogl:natives-android-armv6")
runtime("org.jogamp.gluegen:gluegen-rt:$jogl:natives-linux-amd64")
runtime("org.jogamp.gluegen:gluegen-rt:$jogl:natives-linux-armv6")
runtime("org.jogamp.gluegen:gluegen-rt:$jogl:natives-linux-armv6hf")
runtime("org.jogamp.gluegen:gluegen-rt:$jogl:natives-linux-i586")
runtime("org.jogamp.gluegen:gluegen-rt:$jogl:natives-macosx-universal")
runtime("org.jogamp.gluegen:gluegen-rt:$jogl:natives-solaris-amd64")
runtime("org.jogamp.gluegen:gluegen-rt:$jogl:natives-solaris-i586")
runtime("org.jogamp.gluegen:gluegen-rt:$jogl:natives-windows-amd64")
runtime("org.jogamp.gluegen:gluegen-rt:$jogl:natives-windows-i586")
runtime("org.jogamp.jogl:jogl-all:$jogl:natives-android-aarch64")
runtime("org.jogamp.jogl:jogl-all:$jogl:natives-android-armv6")
runtime("org.jogamp.jogl:jogl-all:$jogl:natives-linux-amd64")
runtime("org.jogamp.jogl:jogl-all:$jogl:natives-linux-armv6")
runtime("org.jogamp.jogl:jogl-all:$jogl:natives-linux-armv6hf")
runtime("org.jogamp.jogl:jogl-all:$jogl:natives-linux-i586")
runtime("org.jogamp.jogl:jogl-all:$jogl:natives-macosx-universal")
runtime("org.jogamp.jogl:jogl-all:$jogl:natives-solaris-amd64")
runtime("org.jogamp.jogl:jogl-all:$jogl:natives-solaris-i586")
runtime("org.jogamp.jogl:jogl-all:$jogl:natives-windows-amd64")
runtime("org.jogamp.jogl:jogl-all:$jogl:natives-windows-i586")
switch (OperatingSystem.current()) {
case OperatingSystem.WINDOWS:
ext.lwjglNatives = "natives-windows"
break
case OperatingSystem.LINUX:
ext.lwjglNatives = "natives-linux"
break
case OperatingSystem.MAC_OS:
ext.lwjglNatives = "natives-macos"
break
}
ext.lwjglVersion = "3.1.6-SNAPSHOT"
compile "org.lwjgl:lwjgl:${lwjglVersion}"
compile "org.lwjgl:lwjgl-glfw:${lwjglVersion}"
compile "org.lwjgl:lwjgl-jemalloc:${lwjglVersion}"
compile "org.lwjgl:lwjgl-openal:${lwjglVersion}"
compile "org.lwjgl:lwjgl-opengl:${lwjglVersion}"
compile "org.lwjgl:lwjgl-stb:${lwjglVersion}"
runtime "org.lwjgl:lwjgl:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-glfw:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-jemalloc:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-openal:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-opengl:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-stb:${lwjglVersion}:${lwjglNatives}"
}
repositories {
mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-dev") }
maven { setUrl("https://oss.sonatype.org/content/repositories/snapshots/") }
maven { setUrl('https://jitpack.io') }
}
task packageSources(type: Jar, dependsOn: 'classes') {
from sourceSets.main.allSource
classifier = 'sources'
}
//jar {
// /** This line of code recursively collects and copies all of a project's files and adds them to the JAR itself.
// One can extend this task, to skip certain files or particular types at will */
// from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
//}
artifacts { archives packageSources }