source: launchers/macosx/build.sbt @ 1bddf55

Last change on this file since 1bddf55 was a92993e0, checked in by meeh <meeh@…>, 2 years ago

Added some more header files, and fixed much of the build system.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1import java.io.{File, FileNotFoundException, FileOutputStream}
2import java.util.zip._
3
4lazy val i2pVersion = "0.9.35"
5
6lazy val cleanAllTask = taskKey[Unit]("Clean up and remove the OSX bundle")
7lazy val buildAppBundleTask = taskKey[Unit](s"Build an Mac OS X bundle for I2P ${i2pVersion}.")
8lazy val buildDeployZipTask = taskKey[String](s"Build an zipfile with base directory for I2P ${i2pVersion}.")
9lazy val bundleBuildPath = new File("./output")
10
11
12lazy val resDir = new File("./../installer/resources")
13lazy val i2pBuildDir = new File("./../pkg-temp")
14lazy val warsForCopy = new File(i2pBuildDir, "webapps").list.filter { f => f.endsWith(".war") }
15lazy val jarsForCopy = new File(i2pBuildDir, "lib").list.filter { f => f.endsWith(".jar") }
16
17
18// Unmanaged classpath will be available at compile time
19unmanagedClasspath in Compile ++= Seq(
20    baseDirectory.value / ".." / ".." / "pkg-temp" / "lib" / "router.jar",
21    baseDirectory.value / ".." / ".." / "pkg-temp" / "lib" / "i2p.jar"
22)
23
24unmanagedBase in Compile := baseDirectory.value / ".." / ".." / "pkg-temp" / "lib"
25
26assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false, includeDependency = false)
27
28assemblyExcludedJars in assembly := {
29    val cp = (fullClasspath in assembly).value
30    cp filter { c => jarsForCopy.toList.contains(c.data.getName) }
31}
32
33javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
34scalacOptions in Compile := Seq("-deprecated","-target:jvm-1.7")
35
Note: See TracBrowser for help on using the repository browser.