[androidsdk-tools] 05/51: Build libandroidsdk-sdkstats-java package
Tony Mancill
tmancill at moszumanska.debian.org
Sun Nov 23 23:37:49 GMT 2014
This is an automated email from the git hooks/post-receive script.
tmancill pushed a commit to branch master
in repository androidsdk-tools.
commit 0041dc57c3186d4bf689718000d7964e198abf8c
Author: Jakub Adam <jakub.adam at ktknet.cz>
Date: Mon Oct 1 21:45:27 2012 +0200
Build libandroidsdk-sdkstats-java package
---
debian/control | 12 +++++++++++-
debian/libandroidsdk-sdkstats-java.install | 1 +
debian/rules | 12 ++++++++++++
3 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index e6b8936..b333e7c 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: devel
Priority: extra
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Uploaders: Stefan Handschuh <handschuh.stefan at googlemail.com>
-Build-Depends: debhelper (>=9), default-jdk, cdbs
+Build-Depends: debhelper (>=9), default-jdk, cdbs, libswt-gtk-3-java, eclipse-rcp
Standards-Version: 3.9.3
Homepage: http://developer.android.com/tools/help/index.html
Vcs-Git: git://anonscm.debian.org/git/pkg-java/androidsdk-tools.git
@@ -32,3 +32,13 @@ Description: Android sdklib
the static resource files of an android project.
.
This version of the sdklib library lacks the support for the sdk manager.
+
+Package: libandroidsdk-sdkstats-java
+Section: java
+Architecture: all
+Depends: ${java:Depends}, ${misc:Depends}, libandroidsdk-androidprefs-java
+Description: Sends Android SDK usage statistics to Google
+ This library sends reports about usage of Android SDK to Google server.
+ Information can be used to help improving the software.
+ .
+ User has to grant a permission in order to participate in the data collection.
diff --git a/debian/libandroidsdk-sdkstats-java.install b/debian/libandroidsdk-sdkstats-java.install
new file mode 100644
index 0000000..46e8238
--- /dev/null
+++ b/debian/libandroidsdk-sdkstats-java.install
@@ -0,0 +1 @@
+androidsdk-sdkstats.jar usr/share/java/
diff --git a/debian/rules b/debian/rules
index ebbda2d..aaf0865 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,17 +2,28 @@
include /usr/share/cdbs/1/rules/debhelper.mk
+ECLIPSE_JFACE_JAR := $(shell find /usr/lib/eclipse/plugins/org.eclipse.jface_*.jar)
+ECLIPSE_COMMANDS_JAR := $(shell find /usr/lib/eclipse/plugins/org.eclipse.core.commands_*.jar)
+
+SDKSTATS_CLASSPATH := androidsdk-androidprefs.jar:/usr/share/java/swt.jar:$(ECLIPSE_JFACE_JAR):$(ECLIPSE_COMMANDS_JAR)
+
build:
mkdir -p common/bin
javac -d common/bin $(shell find common/src -name *.java)
jar cf androidsdk-common.jar -C common/bin .
+
mkdir -p androidprefs/bin
javac -d androidprefs/bin $(shell find androidprefs/src -name *.java)
jar cf androidsdk-androidprefs.jar -C androidprefs/bin .
+
mkdir -p sdkmanager/libs/sdklib/bin
javac -cp androidsdk-common.jar:androidsdk-androidprefs.jar -d sdkmanager/libs/sdklib/bin $(shell find sdkmanager/libs/sdklib/src -name *.java)
jar cf androidsdk-sdklib.jar -C sdkmanager/libs/sdklib/bin .
+ mkdir -p sdkstats/bin
+ javac -cp $(SDKSTATS_CLASSPATH) -d sdkstats/bin $(shell find sdkstats/src -name *.java)
+ jar cf androidsdk-sdkstats.jar -C sdkstats/bin .
+
clean::
rm -fr common/bin
rm -fr androidprefs/bin
@@ -20,3 +31,4 @@ clean::
rm -fr androidsdk-common.jar
rm -fr androidsdk-androidprefs.jar
rm -fr androidsdk-sdklib.jar
+ rm -fr androidsdk-sdkstats.jar
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/androidsdk-tools.git
More information about the pkg-java-commits
mailing list