aboutsummaryrefslogtreecommitdiff
path: root/flow-native/build.sbt
diff options
context:
space:
mode:
Diffstat (limited to 'flow-native/build.sbt')
-rw-r--r--flow-native/build.sbt10
1 files changed, 4 insertions, 6 deletions
diff --git a/flow-native/build.sbt b/flow-native/build.sbt
index 1f5720e..2c7ffea 100644
--- a/flow-native/build.sbt
+++ b/flow-native/build.sbt
@@ -1,10 +1,8 @@
-import flow.{FlowBuild}
-
-FlowBuild.commonSettings
-
enablePlugins(JniNative)
sourceDirectory in nativeCompile := sourceDirectory.value
-// uncomment below to use library in lib_native instead
-//enableNativeCompilation in Compile := false
+// package native libraries from lib_native during releases
+val isRelease = sys.props("release") == "true"
+enableNativeCompilation in Compile := !isRelease
+enableNativeCompilation in Test := !isRelease