20 lines
552 B
Scala
20 lines
552 B
Scala
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
|
|
|
|
val sharedSettings = Seq(
|
|
name := "aoc",
|
|
organization := "tf.bug",
|
|
version := "0.1.0",
|
|
scalaVersion := "2.12.7",
|
|
libraryDependencies ++= List(
|
|
"com.lihaoyi" %%% "fastparse" % "2.0.4",
|
|
),
|
|
mainClass := Some("tf.bug.aoc.Main"),
|
|
)
|
|
|
|
lazy val aoc = crossProject(JSPlatform, JVMPlatform /* , NativePlatform */ )
|
|
.crossType(CrossType.Pure)
|
|
.settings(sharedSettings)
|
|
|
|
lazy val aocJS = aoc.js
|
|
lazy val aocJVM = aoc.jvm
|
|
// lazy val aocNative = aoc.native
|