-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
50 lines (38 loc) · 969 Bytes
/
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
apply plugin: 'java'
apply plugin: 'maven'
description = 'WileE: A wayland compositor library'
group = 'net.jlekstrand'
version = '0.0.1-SNAPSHOT'
configurations {
protocol
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile 'org.freedesktop:wayland:0.0.1-SNAPSHOT'
protocol 'org.freedesktop:wayland.scanner:0.0.1-SNAPSHOT'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
task protocol << {
ant.taskdef(
name: 'scanner',
classpath: configurations.protocol.asPath,
classname: 'org.freedesktop.wayland.scanner.Scanner'
)
ant.scanner(
src: 'protocol/fullscreen-shell.xml',
dest: 'src/main/java',
javapackage: 'net.jlekstrand.wilee.protocol'
)
}
task jni(type: Exec) {
workingDir = 'src/main/native'
commandLine 'make'
}
compileJava {
options.compilerArgs << '-Xlint:deprecation'
}
compileJava.dependsOn protocol
jar.dependsOn jni