forked from NetLogo/NetLogo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
121 lines (84 loc) · 3.68 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
///
/// ThisBuild -- applies to subprojects too
///
scalaVersion in ThisBuild := "2.10.3"
scalacOptions in ThisBuild ++=
"-deprecation -unchecked -feature -Xcheckinit -encoding us-ascii -target:jvm-1.6 -Xfatal-warnings -Ywarn-adapted-args -Yinline-warnings"
.split(" ").toSeq
javacOptions in ThisBuild ++=
"-g -deprecation -encoding us-ascii -Werror -Xlint:all -Xlint:-serial -Xlint:-fallthrough -Xlint:-path -source 1.6 -target 1.6"
.split(" ").toSeq
// only log problems plz
ivyLoggingLevel in ThisBuild := UpdateLogging.Quiet
// this makes jar-building and script-writing easier
retrieveManaged in ThisBuild := true
// we're not cross-building for different Scala versions
crossPaths in ThisBuild := false
threed in ThisBuild := { System.setProperty("org.nlogo.is3d", "true") }
nogen in ThisBuild := { System.setProperty("org.nlogo.noGenerator", "true") }
libraryDependencies in ThisBuild ++= Seq(
"asm" % "asm-all" % "3.3.1",
"org.picocontainer" % "picocontainer" % "2.13.6",
"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" % "2.0" % "test"
)
///
/// top-level project only
///
name := "NetLogo"
artifactName := { (_, _, _) => "NetLogo.jar" }
onLoadMessage := ""
resourceDirectory in Compile <<= baseDirectory(_ / "resources")
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" }
unmanagedResourceDirectories in Compile <+= baseDirectory { _ / "headless" / "resources" }
mainClass in Compile := Some("org.nlogo.app.App")
sourceGenerators in Compile <+= EventsGenerator.task
Extensions.extensionsTask
InfoTab.infoTabTask
ModelIndex.modelIndexTask
NativeLibs.nativeLibsTask
moduleConfigurations += ModuleConfiguration("javax.media", JavaNet2Repository)
libraryDependencies ++= Seq(
"log4j" % "log4j" % "1.2.17",
"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.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 Compile,
packageBin in Compile in NetLogoBuild.headless,
Extensions.extensions,
NativeLibs.nativeLibs,
ModelIndex.modelIndex,
InfoTab.infoTab,
Scaladoc.docSmaller)
///
/// settings from project/*.scala
///
seq(Testing.settings: _*)
seq(Packaging.settings: _*)
seq(Running.settings: _*)
seq(Depend.settings: _*)
seq(Scaladoc.settings: _*)