To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

build.sbt 1.71 KB
Newer Older
1
2
3
4
5

lazy val genSrc = taskKey[List[File]]("generate sources")

genSrc <<= (sourceGenerators in Compile) { _.join.map(_.flatten.toList) }

Kunshan Wang's avatar
Kunshan Wang committed
6
7
lazy val root = (project in file(".")).settings(
    organization := "org.microvm",
8

Kunshan Wang's avatar
Kunshan Wang committed
9
    name := "microvm-refimpl2",
10
    
11
    version := "2.1.0",
12

Kunshan Wang's avatar
Kunshan Wang committed
13
    description := "The second reference implementation of Mu, the micro virtual machine",
14

Kunshan Wang's avatar
Kunshan Wang committed
15
    licenses := Seq("CC BY-SA 4.0" -> url("https://creativecommons.org/licenses/by-sa/4.0/legalcode")),
16

Kunshan Wang's avatar
Kunshan Wang committed
17
    scalaVersion := "2.11.7",
18

Kunshan Wang's avatar
Kunshan Wang committed
19
    libraryDependencies ++= Seq(
Kunshan Wang's avatar
Kunshan Wang committed
20
        "org.scala-lang" % "scala-reflect" % "2.11.7",
Kunshan Wang's avatar
Kunshan Wang committed
21
        "org.antlr" % "antlr4" % "4.5.1-1",
Kunshan Wang's avatar
Kunshan Wang committed
22
23
        "com.typesafe.scala-logging" %% "scala-logging" % "3.1.0",
        "ch.qos.logback" % "logback-classic" % "1.1.3",
Kunshan Wang's avatar
Kunshan Wang committed
24
25
26
        "com.github.jnr" % "jnr-ffi" % "2.0.7",
        "com.github.jnr" % "jffi" % "1.2.10",
        "com.github.jnr" % "jnr-posix" % "3.0.23",
Kunshan Wang's avatar
Kunshan Wang committed
27
28
29
        "org.scalatest" %% "scalatest" % "2.2.4" % "test",
        "junit" % "junit" % "4.12" % "test"
    ),
Kunshan Wang's avatar
Kunshan Wang committed
30
31

    testOptions in Test += Tests.Argument("-oF"), // print full stack trace when testing
Kunshan Wang's avatar
Kunshan Wang committed
32
33
            
    antlr4Settings,
34

Kunshan Wang's avatar
Kunshan Wang committed
35
    antlr4PackageName in Antlr4 := Some("uvm.ir.textinput.gen"),
36

Kunshan Wang's avatar
Kunshan Wang committed
37
    antlr4GenListener in Antlr4 := false,
38

Kunshan Wang's avatar
Kunshan Wang committed
39
40
    antlr4GenVisitor in Antlr4 := false
  )
41

42
lazy val jarList = taskKey[Seq[File]]("list dependency jars")
43

44
45
46
47
48
49
50
51
52
53
54
55
56
jarList := {
  val cp: Seq[File] = (dependencyClasspath in Compile).value.files
  cp
}

lazy val makeJarListFile = taskKey[Unit]("write a list of dependency jar paths separated by colons (:) to target/jars.txt")

makeJarListFile := {
  val jl = jarList.value
  val jlStr = jl.mkString(":")
  println("Dependency jars: " + jlStr)
  IO.write(new java.io.File("cbinding/jars.txt"), jlStr)
}