source: launchers/macosx/build.sbt @ ba853a8c

Last change on this file since ba853a8c 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
RevLine 
[5f81a8de]1import java.io.{File, FileNotFoundException, FileOutputStream}
2import java.util.zip._
[8c10ec9]3
[d4dd0ea]4lazy val i2pVersion = "0.9.35"
[8c10ec9]5
[70e994fc]6lazy val cleanAllTask = taskKey[Unit]("Clean up and remove the OSX bundle")
[8adf55a]7lazy val buildAppBundleTask = taskKey[Unit](s"Build an Mac OS X bundle for I2P ${i2pVersion}.")
[5f81a8de]8lazy val buildDeployZipTask = taskKey[String](s"Build an zipfile with base directory for I2P ${i2pVersion}.")
9lazy val bundleBuildPath = new File("./output")
[8adf55a]10
11
12lazy val resDir = new File("./../installer/resources")
[70e994fc]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
[975d8a0]17
18// Unmanaged classpath will be available at compile time
19unmanagedClasspath in Compile ++= Seq(
[a92993e0]20    baseDirectory.value / ".." / ".." / "pkg-temp" / "lib" / "router.jar",
21    baseDirectory.value / ".." / ".." / "pkg-temp" / "lib" / "i2p.jar"
[70e994fc]22)
23
[a92993e0]24unmanagedBase in Compile := baseDirectory.value / ".." / ".." / "pkg-temp" / "lib"
25
[21b3864]26assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false, includeDependency = false)
[975d8a0]27
[70e994fc]28assemblyExcludedJars in assembly := {
[6d0f80f]29    val cp = (fullClasspath in assembly).value
30    cp filter { c => jarsForCopy.toList.contains(c.data.getName) }
[70e994fc]31}
[975d8a0]32
[a92993e0]33javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
34scalacOptions in Compile := Seq("-deprecated","-target:jvm-1.7")
[6d0f80f]35
Note: See TracBrowser for help on using the repository browser.