forked from korlibs/korge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.extra.gradle.kts
More file actions
26 lines (21 loc) · 895 Bytes
/
build.extra.gradle.kts
File metadata and controls
26 lines (21 loc) · 895 Bytes
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
import org.apache.tools.ant.taskdefs.condition.Os
import org.gradle.plugins.ide.idea.model.IdeaModel
apply(plugin = "idea")
if (
Os.isFamily(Os.FAMILY_UNIX) &&
(File("/.dockerenv").exists() || System.getenv("TRAVIS") != null || System.getenv("GITHUB_REPOSITORY") != null) &&
(File("/usr/bin/apt-get").exists()) &&
(!(File("/usr/include/GL/glut.h").exists()) || !(File("/usr/include/AL/al.h").exists()))
) {
exec { commandLine("sudo", "apt-get", "update") }
exec { commandLine("sudo", "apt-get", "-y", "install", "freeglut3-dev", "libopenal-dev") }
// exec { commandLine("sudo", "apt-get", "-y", "install", "libgtk-3-dev") }
}
val idea: IdeaModel by project
idea.module {
excludeDirs = LinkedHashSet()
for (name in listOf("old", "@old", "nlib", "gradle")) {
excludeDirs.add(File(rootProject.rootDir, name))
}
}
tasks.maybeCreate("jsNodeTest")