-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
53 lines (42 loc) · 1.07 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
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.13'
}
version 'v0.0.1'
mainClassName = 'de.gurkenlabs.liti.Program'
repositories {
mavenCentral()
}
dependencies {
implementation 'de.gurkenlabs:litiengine'
}
javafx {
version = '20'
modules = ['javafx.controls', 'javafx.fxml', 'javafx.media', 'javafx.graphics', 'javafx.swing', 'javafx.base']
}
sourceSets {
main.java.srcDir 'src'
main.resources.srcDirs = ['audio', 'images', 'localization', 'misc', 'videos']
}
// copy native binaries to support gamepad input
task copyNativeLibs(type: Copy) {
def litiengineLibs = '../litiengine/build/libs'
def litiLibs = 'dist/libs'
def buildFolder = new File(buildDir, 'libs')
from(litiengineLibs) {
include '**/*'
exclude '**/*.jar'
exclude '**/*.zip'
exclude 'LICENSE'
exclude 'lib/**'
}
from(litiLibs) {
include '**/*'
}
into buildFolder
}
run {
systemProperty "java.library.path", new File(buildDir, 'libs')
}
build.dependsOn copyNativeLibs