summaryrefslogtreecommitdiff
path: root/android/gradle
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2014-11-10 14:24:36 -0330
committerDwayne Boone <dwayne@zeroc.com>2014-11-10 14:24:36 -0330
commitd138d15603cbef6e8a180a13657d4b200379dc76 (patch)
treee6265e6e5b766ff9c5c07b8139f3d28dab961a55 /android/gradle
parentAddendum to BerkeleyDB fix (diff)
downloadice-d138d15603cbef6e8a180a13657d4b200379dc76.tar.bz2
ice-d138d15603cbef6e8a180a13657d4b200379dc76.tar.xz
ice-d138d15603cbef6e8a180a13657d4b200379dc76.zip
Fixed android and demo builds
Diffstat (limited to 'android/gradle')
-rw-r--r--android/gradle/library.gradle27
1 files changed, 27 insertions, 0 deletions
diff --git a/android/gradle/library.gradle b/android/gradle/library.gradle
new file mode 100644
index 00000000000..fb8e14d3737
--- /dev/null
+++ b/android/gradle/library.gradle
@@ -0,0 +1,27 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+jar {
+ destinationDir = new File("${libDir}")
+}
+
+clean {
+ delete("${libDir}/${jar.archiveName}")
+}
+
+task copyJars(type: Copy, dependsOn: jar) {
+ from "${libDir}/${jar.archiveName}"
+ into "${DESTDIR}${prefix}/lib"
+}
+task install(dependsOn: copyJars)
+
+idea.module {
+ excludeDirs -= file(buildDir)
+ buildDir.listFiles({d, f ->f != 'generated-src'} as FilenameFilter).each { excludeDirs += it }
+}