From a0badf9d4ccb0cec0fd7c577775e29e1f7e4f564 Mon Sep 17 00:00:00 2001 From: "iwg..ic" Date: Wed, 15 Jan 2014 17:45:41 +0000 Subject: [PATCH] Add jar packaging for android native bullet builds git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@10992 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- jme3-bullet-native/build.gradle | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/jme3-bullet-native/build.gradle b/jme3-bullet-native/build.gradle index 2e4b66f7b..03ae74889 100644 --- a/jme3-bullet-native/build.gradle +++ b/jme3-bullet-native/build.gradle @@ -228,12 +228,31 @@ task buildNative(type: Exec, dependsOn:copyJmeAndroid) { executable ndkBuildPath } +task jarAndroidLibs(type: Jar, dependsOn:buildNative) { + String jarName = project.name + '-android' + from ndkOutputPath + into('lib') + baseName = jarName +} +//println jar.archiveName +//println relativePath(jar.destinationDir) +//println relativePath(jar.archivePath) +//println jarAndroidLibs.archiveName +//println relativePath(jarAndroidLibs.destinationDir) +//println relativePath(jarAndroidLibs.archivePath) + jar.dependsOn { def ndkDir = new File(ndkPath) if (ndkDir.isDirectory()) { buildNative } } +jar.dependsOn jarAndroidLibs +//adds files into existing jar file //jar.into("lib") { from ndkOutputPath } + +artifacts { + archives jarAndroidLibs +}