forked from NetLogo/NetLogo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
100 lines (70 loc) · 3.32 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
scalaVersion := "2.9.2"
name := "NetLogo"
onLoadMessage := ""
resourceDirectory in Compile <<= baseDirectory(_ / "resources")
scalacOptions ++=
"-deprecation -unchecked -Xfatal-warnings -Xcheckinit -encoding us-ascii"
.split(" ").toSeq
javacOptions ++=
"-bootclasspath dist/java5/classes.jar%sdist/java5/ui.jar -g -deprecation -encoding us-ascii -Werror -Xlint:all -Xlint:-serial -Xlint:-fallthrough -Xlint:-path -source 1.5 -target 1.5"
.format(java.io.File.pathSeparator)
.split(" ").toSeq
// only log problems plz
ivyLoggingLevel := UpdateLogging.Quiet
// this makes jar-building and script-writing easier
retrieveManaged := true
// we're not cross-building for different Scala versions
crossPaths := false
scalaSource in Compile <<= baseDirectory(_ / "src" / "main")
scalaSource in Test <<= baseDirectory(_ / "src" / "test")
javaSource in Compile <<= baseDirectory(_ / "src" / "main")
javaSource in Test <<= baseDirectory(_ / "src" / "test")
unmanagedSourceDirectories in Test <+= baseDirectory(_ / "src" / "tools")
unmanagedResourceDirectories in Compile <+= baseDirectory { _ / "resources" }
mainClass in (Compile, run) := Some("org.nlogo.app.App")
mainClass in (Compile, packageBin) := Some("org.nlogo.app.App")
sourceGenerators in Compile <+= EventsGenerator.task
sourceGenerators in Compile <+= JFlexRunner.task
resourceGenerators in Compile <+= I18n.resourceGeneratorTask
Extensions.extensionsTask
InfoTab.infoTabTask
ModelIndex.modelIndexTask
NativeLibs.nativeLibsTask
Depend.dependTask
threed := { System.setProperty("org.nlogo.is3d", "true") }
nogen := { System.setProperty("org.nlogo.noGenerator", "true") }
moduleConfigurations += ModuleConfiguration("javax.media", JavaNet2Repository)
libraryDependencies ++= Seq(
"asm" % "asm-all" % "3.3.1",
"org.picocontainer" % "picocontainer" % "2.13.6",
"log4j" % "log4j" % "1.2.16",
"javax.media" % "jmf" % "2.1.1e",
"org.pegdown" % "pegdown" % "1.1.0",
"org.parboiled" % "parboiled-java" % "1.0.2",
"steveroy" % "mrjadapter" % "1.2" from "http://ccl.northwestern.edu/devel/mrjadapter-1.2.jar",
"org.jhotdraw" % "jhotdraw" % "6.0b1" from "http://ccl.northwestern.edu/devel/jhotdraw-6.0b1.jar",
"ch.randelshofer" % "quaqua" % "7.3.4" from "http://ccl.northwestern.edu/devel/quaqua-7.3.4.jar",
"ch.randelshofer" % "swing-layout" % "7.3.4" from "http://ccl.northwestern.edu/devel/swing-layout-7.3.4.jar",
"org.jogl" % "jogl" % "1.1.1" from "http://ccl.northwestern.edu/devel/jogl-1.1.1.jar",
"org.gluegen-rt" % "gluegen-rt" % "1.1.1" from "http://ccl.northwestern.edu/devel/gluegen-rt-1.1.1.jar",
"org.jmock" % "jmock" % "2.5.1" % "test",
"org.jmock" % "jmock-legacy" % "2.5.1" % "test",
"org.jmock" % "jmock-junit4" % "2.5.1" % "test",
"org.scalacheck" %% "scalacheck" % "1.10.0" % "test",
"org.scalatest" %% "scalatest" % "1.8" % "test",
"org.apache.httpcomponents" % "httpclient" % "4.2",
"org.apache.httpcomponents" % "httpmime" % "4.2",
"com.googlecode.json-simple" % "json-simple" % "1.1.1"
)
all <<= (baseDirectory, streams) map { (base, s) =>
s.log.info("making resources/system/dict.txt and docs/dict folder")
IO.delete(base / "docs" / "dict")
Process("python bin/dictsplit.py").!!
}
all <<= all.dependsOn(
packageBin in Test,
Extensions.extensions,
NativeLibs.nativeLibs,
ModelIndex.modelIndex,
InfoTab.infoTab,
Scaladoc.docSmaller)