forked from svstuff/systemverilog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (37 loc) · 1.11 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
apply plugin:'scala'
apply plugin:'application'
apply plugin:'eclipse'
mainClassName = 'com.github.misfornoyd.systemverilog.Driver'
applicationDefaultJvmArgs = ["-Xmx6g"]
repositories{
mavenCentral()
mavenLocal()
}
dependencies{
compile 'org.scala-lang:scala-library:2.10.4'
compile 'com.typesafe:scalalogging-slf4j_2.10:1.1.0'
compile 'org.slf4j:slf4j-api:1.7.5'
compile 'org.slf4j:slf4j-simple:1.7.5'
compile 'org.apache.commons:commons-lang3:3.3.2'
compile files('lib/antlr-4.4-complete.jar')
}
compileScala {
scalaCompileOptions.useCompileDaemon = true
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2.1'
}
task antlr(type: Exec) {
workingDir = "${projectDir}"
executable = 'python'
args = ['./regen.py']
inputs.files files('regen.py', 'SVParser.g4')
outputs.files files {
file("src/main/java/com/github/misfornoyd/systemverilog/generated").listFiles() +
file("src/main/scala/com/github/misfornoyd/systemverilog/generated").listFiles()
}
}
compileJava.dependsOn antlr