From 9ff6673f54b18386fd205eeb8be8d3c21a40fdca Mon Sep 17 00:00:00 2001 From: Jim Lawson Date: Mon, 13 Jul 2015 10:21:48 -0700 Subject: Generalize, add missing chisel2 meta files. --- Makefile | 5 +- bin/flo2app.sh | 4 +- build.sbt | 3 ++ project/build.properties | 1 + project/plugins.sbt | 10 ++++ scalastyle-config.xml | 131 +++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 151 insertions(+), 3 deletions(-) create mode 100644 project/build.properties create mode 100644 project/plugins.sbt create mode 100644 scalastyle-config.xml diff --git a/Makefile b/Makefile index 3371163f..d56e9610 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,9 @@ SBT_FLAGS += -DchiselVersion="3.0-SNAPSHOT" endif SRC_DIR ?= . +CHISEL_BIN ?= $(SRC_DIR)/bin +export CHISEL_BIN + SYSTEMC ?= $(SRC_DIR)/../../systemc/systemc-2.3.1 CHISEL_JAR ?= $(SRC_DIR)/target/scala-2.11/chisel_2.11-3.0-SNAPSHOT.jar DRIVER ?= $(SRC_DIR)/src/test/resources/AddFilterSysCdriver.cpp @@ -34,7 +37,7 @@ smoke: $(SBT) $(SBT_FLAGS) compile publish-local: - $(SBT) $(SBT_FLAGS) publish-local + $(SBT) $(SBT_FLAGS) +publish-local test: $(SBT) $(SBT_FLAGS) test diff --git a/bin/flo2app.sh b/bin/flo2app.sh index c13701ba..6ef87351 100755 --- a/bin/flo2app.sh +++ b/bin/flo2app.sh @@ -1,9 +1,9 @@ #!/bin/bash echo FLO-LLVM DONE -/users/jrb/bar/chisel3/bin/flo-llvm $1.flo # --vcdtmp +flo-llvm $1.flo # --vcdtmp echo FLO-LLVM DONE flo-llvm-release $1.flo --harness > $1-harness.cpp echo FLO-LLVM-RELEASE DONE -$CXX -o $1 $1-harness.cpp $1.o +clang++ -o $1 $1-harness.cpp $1.o echo GPP DONE diff --git a/build.sbt b/build.sbt index a48c6036..aeacfc9d 100644 --- a/build.sbt +++ b/build.sbt @@ -5,3 +5,6 @@ version := "3.0" name := "Chisel" scalaVersion := "2.11.6" + +crossScalaVersions := Seq("2.10.4", "2.11.6") + diff --git a/project/build.properties b/project/build.properties new file mode 100644 index 00000000..748703f7 --- /dev/null +++ b/project/build.properties @@ -0,0 +1 @@ +sbt.version=0.13.7 diff --git a/project/plugins.sbt b/project/plugins.sbt new file mode 100644 index 00000000..88384aaf --- /dev/null +++ b/project/plugins.sbt @@ -0,0 +1,10 @@ +resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases")) (Resolver.ivyStylePatterns) + +resolvers += Classpaths.sbtPluginReleases + +addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3") + +addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.7.0") + +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.1.0") + diff --git a/scalastyle-config.xml b/scalastyle-config.xml new file mode 100644 index 00000000..93e863f8 --- /dev/null +++ b/scalastyle-config.xml @@ -0,0 +1,131 @@ + + Scalastyle standard configuration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3