diff options
Diffstat (limited to 'project')
-rw-r--r-- | project/Build.scala | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/project/Build.scala b/project/Build.scala index d743ddd..3af906a 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -109,15 +109,16 @@ object FlowBuild extends Build { val UnixBinaryMinorVersion = 0 lazy val unixNativeSettings: Seq[Setting[_]] = commonNativeSettings ++ Seq( - flags in Native := Seq("-fPIC", "-O2"), - linkFlags in Native ++= Seq("-shared", s"-Wl,-soname,libflow.so.${BinaryMajorVersion}"), - binaryName in Native := s"libflow.so.${BinaryMajorVersion}.${UnixBinaryMinorVersion}") + flags in Native := Seq("-fPIC", "-O2") + ) lazy val nativeLinux = ( NativeProject("flow-native-linux", file("flow-native") / "unix") settings (unixNativeSettings: _*) settings ( - includeDirectories in Native += jdkHome.value / "include" / "linux" + includeDirectories in Native += jdkHome.value / "include" / "linux", +linkFlags in Native ++= Seq("-shared", s"-Wl,-soname,libflow.so.${BinaryMajorVersion}"), + binaryName in Native := s"libflow.so.${BinaryMajorVersion}.${UnixBinaryMinorVersion}" ) dependsOn(main) ) @@ -127,7 +128,9 @@ object FlowBuild extends Build { settings (unixNativeSettings: _*) settings ( includeDirectories in Native += file("/System/Library/Frameworks/JavaVM.framework/Headers/jni.h"), - includeDirectories in Native += file("/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers") + includeDirectories in Native += file("/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers"), +linkFlags in Native ++= Seq("-dynamiclib"), + binaryName in Native := s"libflow.jnilib.${BinaryMajorVersion}.${UnixBinaryMinorVersion}" ) dependsOn (main) ) |