File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ SourceCode [
608
+
603
609
0.1.2
604
610
-----
605
611
Original file line number Diff line number Diff line change
1
+ import sbtcrossproject .{crossProject , CrossType }
1
2
2
3
crossScalaVersions := Seq (" 2.10.6" , " 2.11.8" , " 2.12.0" )
3
4
@@ -12,8 +13,8 @@ def macroDependencies(version: String) =
12
13
else
13
14
Seq ())
14
15
15
- lazy val sourcecode = crossProject.settings(
16
- version := " 0.1.3" ,
16
+ lazy val sourcecode = crossProject( JSPlatform , JVMPlatform , NativePlatform ) .settings(
17
+ version := " 0.1.3-native " ,
17
18
scalaVersion := " 2.11.8" ,
18
19
name := " sourcecode" ,
19
20
organization := " com.lihaoyi" ,
@@ -49,5 +50,6 @@ lazy val sourcecode = crossProject.settings(
49
50
</developers >
50
51
)
51
52
53
+ lazy val native = sourcecode.native
52
54
lazy val js = sourcecode.js
53
55
lazy val jvm = sourcecode.jvm
Original file line number Diff line number Diff line change 1
1
addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.13" )
2
+ addSbtPlugin(" org.scala-native" % " sbt-crossproject" % " 0.1.0" ) // (1)
3
+ addSbtPlugin(" org.scala-native" % " sbt-scalajs-crossproject" % " 0.1.0" ) // (2)
4
+ addSbtPlugin(" org.scala-native" % " sbt-scala-native" % " 0.1.0" ) // (3)
You can’t perform that action at this time.
0 commit comments