Skip to content

Commit

Permalink
Merge pull request #95 from xuwei-k/scalajs-scalac-options
Browse files Browse the repository at this point in the history
add scalacOptions for Scala.js source map
  • Loading branch information
thesamet committed Mar 21, 2016
2 parents f30c1e5 + 1581545 commit 36a039c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ lazy val runtime = crossProject.crossType(CrossType.Full).in(file("scalapb-runti
libraryDependencies ++= Seq(
"com.trueaccord.scalapb" %%% "protobuf-runtime-scala" % "0.1.6"
),
scalacOptions += {
val a = (baseDirectory in LocalRootProject).value.toURI.toString
val g = "https://raw.githubusercontent.com/trueaccord/ScalaPB/" + sys.process.Process("git rev-parse HEAD").lines_!.head
s"-P:scalajs:mapSourceURI:$a->$g/"
},
unmanagedResourceDirectories in Compile += baseDirectory.value / "../../third_party"
)

Expand Down

0 comments on commit 36a039c

Please sign in to comment.