build.sbt 1.25 KB
Newer Older
1
2
3
4
name := "chisel-axiutils"

organization := "esa.cs.tu-darmstadt.de"

Jens Korinth's avatar
Jens Korinth committed
5
version := "0.4-SNAPSHOT"
Jens Korinth's avatar
Jens Korinth committed
6

Jens Korinth's avatar
Jens Korinth committed
7
scalaVersion := "2.11.11"
Jens Korinth's avatar
Jens Korinth committed
8

Jens Korinth's avatar
Jens Korinth committed
9
10
11
12
13
14
resolvers ++= Seq(
  Resolver.sonatypeRepo("snapshots"),
  Resolver.sonatypeRepo("releases")
)

// Provide a managed dependency on X if -DXVersion="" is supplied on the command line.
15
16
val defaultVersions = Map("chisel3"          -> "3.1-SNAPSHOT",
                          "chisel-iotesters" -> "1.2-SNAPSHOT")
Jens Korinth's avatar
Jens Korinth committed
17
18
19
20

libraryDependencies ++= (Seq("chisel3","chisel-iotesters").map {
  dep: String => "edu.berkeley.cs" %% dep % sys.props.getOrElse(dep + "Version", defaultVersions(dep)) })

21
libraryDependencies ++= Seq(
22
23
  "org.scalatest" %% "scalatest" % "3.0.4" % "test",
  "org.scalacheck" %% "scalacheck" % "1.13.5" % "test",
Jens Korinth's avatar
Jens Korinth committed
24
25
  "com.typesafe.play" %% "play-json" % "2.6.3",
  "org.scalactic" %% "scalactic" % "3.0.4"
26
)
Jens Korinth's avatar
Jens Korinth committed
27

Jens Korinth's avatar
Jens Korinth committed
28
scalacOptions ++= Seq("-language:implicitConversions", "-language:reflectiveCalls", "-deprecation", "-feature")
29
30
31
32
33
34
35

// project structure

lazy val packaging = project.in(file("packaging"))

lazy val miscutils = project.in(file("miscutils"))

Jens Korinth's avatar
Jens Korinth committed
36
lazy val axiutils = (project in file(".")).dependsOn(packaging, miscutils, miscutils % "test->test").aggregate(packaging, miscutils)
37

Jens Korinth's avatar
Jens Korinth committed
38
39
cleanFiles += (baseDirectory.value / "test")

40
aggregate in test := false