-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
138 lines (114 loc) · 4.41 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
ThisBuild / organization := "ch.unibas.cs.gravis"
ThisBuild / version := "0.2-RC1"
ThisBuild / crossPaths := false
ThisBuild / autoScalaLibrary := false
ThisBuild / javacOptions ++= Seq("--release", "8")
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / homepage := Some(url("https://scalismo.org"))
ThisBuild / licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/unibas-gravis/vtk-java-natives"), "[email protected]:unibas-gravis/vtk-java-natives.git")
)
ThisBuild / developers := List(
Developer("marcelluethi", "marcelluethi", "[email protected]", url("https://github.com/marcelluethi"))
)
ThisBuild / publishMavenStyle := true
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / resolvers := Seq(
"sonatype-release" at "https://oss.sonatype.org/content/repositories/releases",
)
/*
* dummy package to manage vtk.jar
*/
lazy val vtkJar = (project in file("vtkJar"))
.settings(
name := "vtkJavaNativesVtkJar",
Compile / packageBin := baseDirectory.value / "lib"/ "vtk-9.1.0.jar"
)
lazy val joglJar = (project in file("joglJar"))
.settings(
name := "vtkJavaNativesJoglJar",
Compile / packageBin := baseDirectory.value / "lib"/ "jogl-all-v2.4.0-rc4.jar"
)
lazy val gluegenJar = (project in file("gluegenJar"))
.settings(
name := "vtkJavaNativesGluegenJar",
Compile / packageBin := baseDirectory.value / "lib"/ "gluegen-rt-v2.4.0-rc4.jar"
)
/*
* Module definition and library loading logic. Does not contain any native libraries
*/
lazy val vtkJavaNatives = (project in file("vtkJavaNatives"))
.dependsOn(vtkJar, joglJar, gluegenJar)
.aggregate(vtkJar, joglJar, gluegenJar)
/*
* Package with native libraries for win64
*/
lazy val vtkJavaNativesWin64Impl = (project in file("vtkJavaNativesWin64Impl"))
.dependsOn(vtkJavaNatives)
.settings(
libraryDependencies ++= Seq(
"com.google.auto.service" % "auto-service" % "1.0.1",
)
)
/*
* Package with native libraries for win64
*/
lazy val vtkJavaNativesLinuxImpl = (project in file("vtkJavaNativesLinuxImpl"))
.dependsOn(vtkJavaNatives)
.settings(
libraryDependencies ++= Seq(
"com.google.auto.service" % "auto-service" % "1.0.1"
)
)
lazy val vtkJavaNativesMacOSImpl = (project in file("vtkJavaNativesMacOSImpl"))
.dependsOn(vtkJavaNatives)
.settings(
libraryDependencies ++= Seq(
"com.google.auto.service" % "auto-service" % "1.0.1"
)
)
lazy val vtkJavaNativesMacOSM1Impl = (project in file("vtkJavaNativesMacOSM1Impl"))
.dependsOn(vtkJavaNatives)
.settings(
libraryDependencies ++= Seq(
"com.google.auto.service" % "auto-service" % "1.0.1"
)
)
/*
* User facing package to use native libraries on Windows
*/
lazy val vtkJavaNativesWin64 = (project in file("vtkJavaNativesWin64"))
.dependsOn(vtkJavaNatives, vtkJavaNativesWin64Impl)
.aggregate(vtkJavaNatives, vtkJavaNativesWin64Impl)
/*
* User facing package to use native libraries on Windows
*/
lazy val vtkJavaNativesLinux = (project in file("vtkJavaNativesLinux"))
.dependsOn(vtkJavaNatives, vtkJavaNativesLinuxImpl)
.aggregate(vtkJavaNatives, vtkJavaNativesLinuxImpl)
/*
* User facing package to use native libraries on Windows
*/
lazy val vtkJavaNativesMacOS = (project in file("vtkJavaNativesMacOS"))
.dependsOn(vtkJavaNatives, vtkJavaNativesMacOSImpl)
.aggregate(vtkJavaNatives, vtkJavaNativesMacOSImpl)
lazy val vtkJavaNativesMacOSM1 = (project in file("vtkJavaNativesMacOSM1"))
.dependsOn(vtkJavaNatives, vtkJavaNativesMacOSM1Impl)
.aggregate(vtkJavaNatives, vtkJavaNativesMacOSM1Impl)
/*
* User facing package to use native libraries on Windows
*/
lazy val vtkJavaNativesAll = (project in file("vtkJavaNativesAll"))
.dependsOn(vtkJavaNatives, vtkJavaNativesLinuxImpl, vtkJavaNativesWin64Impl, vtkJavaNativesMacOSImpl, vtkJavaNativesMacOSM1Impl)
.aggregate(vtkJavaNatives, vtkJavaNativesLinuxImpl, vtkJavaNativesWin64Impl, vtkJavaNativesMacOSImpl, vtkJavaNativesMacOSM1Impl)
/*
* Main module (only used for testing)
*/
lazy val root = (project in file("."))
.dependsOn(vtkJavaNativesAll)
.aggregate(vtkJavaNativesAll)