diff options
| author | Jack Koenig | 2018-06-28 16:57:03 -0700 |
|---|---|---|
| committer | GitHub | 2018-06-28 16:57:03 -0700 |
| commit | 3243f05a69b4b77761699be412f349a9b8b9193f (patch) | |
| tree | af29ca891c968e718aa1a83c0fd233142395255c /build.sbt | |
| parent | 991dba31b751f26d05835094ea49eea83f81247e (diff) | |
Protobuf (#832)
Add support for ProtoBuf serialization and deserialization
* Add support for additional features in .proto description
Features added: Info, Fixed[Type|Literal], AnalogType, Attach, Params
* Add support for .pb input files
This involves an API change where FIRRTL no longer implicitly adds .fir
to input file names
Diffstat (limited to 'build.sbt')
| -rw-r--r-- | build.sbt | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -68,6 +68,17 @@ libraryDependencies += "net.jcazevedo" %% "moultingyaml" % "0.4.0" libraryDependencies += "org.json4s" %% "json4s-native" % "3.5.3" +// Java PB + +enablePlugins(ProtobufPlugin) + +sourceDirectory in ProtobufConfig := baseDirectory.value / "src" / "main" / "proto" + +protobufRunProtoc in ProtobufConfig := (args => + com.github.os72.protocjar.Protoc.runProtoc("-v351" +: args.toArray)) + +javaSource in ProtobufConfig := (sourceManaged in Compile).value + // Assembly assemblyJarName in assembly := "firrtl.jar" |
