Refine native build by @wongsyrone

This commit is contained in:
Max Lv
2016-07-01 16:49:07 +08:00
parent 2adaa71ebf
commit 1fe0ab996f
+5 -1
View File
@@ -59,5 +59,9 @@ proguardOptions in Android ++= Seq("-keep class com.github.shadowsocks.** { <ini
lazy val nativeBuild = TaskKey[Unit]("native-build", "Build native executables")
nativeBuild := {
"./build.sh" !
val logger = streams.value.log
Process("./build.sh") ! logger match {
case 0 => // Success!
case n => sys.error(s"Native build script exit code: $n")
}
}