2018-11-25 00:14:47 +00:00
|
|
|
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
|
|
|
|
|
|
|
|
val sharedSettings = Seq(
|
2018-11-25 00:30:29 +00:00
|
|
|
name := "aoc",
|
2018-11-25 00:14:47 +00:00
|
|
|
organization := "tf.bug",
|
2018-11-25 00:30:29 +00:00
|
|
|
version := "0.1.0",
|
2018-11-25 18:49:04 +00:00
|
|
|
scalaVersion := "2.12.7",
|
2018-11-25 00:14:47 +00:00
|
|
|
libraryDependencies ++= List(
|
|
|
|
"com.lihaoyi" %%% "fastparse" % "2.0.4",
|
|
|
|
),
|
|
|
|
mainClass := Some("tf.bug.aoc.Main"),
|
|
|
|
)
|
|
|
|
|
2018-11-25 00:30:29 +00:00
|
|
|
lazy val aoc = crossProject(JSPlatform, JVMPlatform /* , NativePlatform */ )
|
|
|
|
.crossType(CrossType.Pure)
|
|
|
|
.settings(sharedSettings)
|
2018-11-25 00:14:47 +00:00
|
|
|
|
2018-11-25 00:30:29 +00:00
|
|
|
lazy val aocJS = aoc.js
|
|
|
|
lazy val aocJVM = aoc.jvm
|
2018-11-25 00:14:47 +00:00
|
|
|
// lazy val aocNative = aoc.native
|