Skip to content

ochafik/sbt-scalaxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt-scalaxy

Sbt plugin to help use and define Scalaxy compilets.

Usage

sbt-scalaxy currently requires sbt 0.12.x.

If you're happily using paulp's sbt script (as you probably should), please make sure you have the following line in project/build.properties:

sbt.version=0.12.1

Put the following in project/plugins.sbt (or in ~/.sbt/plugins/build.sbt for global setup):

resolvers += Resolver.sonatypeRepo("snapshots")

addSbtPlugin("com.nativelibs4java" % "sbt-scalaxy" % "0.3-SNAPSHOT")

Using compilets

Put the following in build.sbt:

scalaVersion := "2.10.0-RC1"

// If any library dependency includes a compilet, it will be automatically detected and used.
// If this is not set, compilets must be added explicitly with:
//
//     addCompilets("com.nativelibs4java" %% "some-other-compilets" % "1.0-SNAPSHOT")
//
autoCompilets := true

// Enable Scalaxy's basic loop & numerics rewrites.
addDefaultCompilets()

See a full example in Scalaxy/Examples/UsageWithSbtPlugin.

Defining compilets

Put the following in build.sbt:

scalaVersion := "2.10.0-RC1"

// Will bring compile and test dependencies to define and test compilets.
scalaxyCompilets := true

See a full example in Scalaxy/Examples/CustomCompilets.

About

Sbt plugin to help use and define Scalaxy compilets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages