-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
39 lines (29 loc) · 1.03 KB
/
build.sbt
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
name := "CSDemoParser"
organization := "org.pikinier20"
version := "0.1"
scalaVersion := "2.13.4"
idePackagePrefix := Some("demoparser")
val circeVersion = "0.12.3"
libraryDependencies ++= Seq(
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf",
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion
)
libraryDependencies ++= Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-generic",
"io.circe" %% "circe-parser"
).map(_ % circeVersion)
Compile / PB.targets := Seq(
scalapb.gen() -> (Compile / sourceManaged).value / "scalapb"
)
Compile / PB.protoSources := Seq(
new File("src/main/protobuf/netmessages.proto"),
new File("src/main/protobuf/cstrike15_usermessages.proto"),
new File("src/main/protobuf/cstrike15_gcmessages.proto"),
new File("src/main/protobuf/engine_gcmessages.proto"),
new File("src/main/protobuf/steammessages.proto")
)
Compile / PB.includePaths := Seq(
new File("src/main/protobuf"),
new File("/usr/local/include")
)