aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/maven.mk
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2014-02-12 11:32:18 -0800
committerSiva Velusamy <vsiva@google.com>2014-04-15 09:20:06 -0700
commit68bd64a51f78ae6a66bd8eea9baf07185e2b9588 (patch)
tree2063beb52dac81892ce547f50bd71c2b4fa1060e /eclipse/maven.mk
parenta1d044b7b46ae23c7d8a0f7253287c2cfeba9edc (diff)
downloadsdk-68bd64a51f78ae6a66bd8eea9baf07185e2b9588.zip
sdk-68bd64a51f78ae6a66bd8eea9baf07185e2b9588.tar.gz
sdk-68bd64a51f78ae6a66bd8eea9baf07185e2b9588.tar.bz2
Add scripts to enable Tycho build
This CL adds all the required files to perform a build using Tycho. It is not integrated into the Android build system though. In order to perform a build, make sure your repository has the git projects prebuilts/eclipse and prebuilts/eclipse-build-deps, then do: $ cd sdk/eclipse $ make -f maven.mk That should create the necessary target platform and start a build using Maven/Tycho. The resulting artifacts should be in out/host/maven/bundles-<version>/products Change-Id: I4672cd9ea1ac072a9b5ddb27d98a9849b2a2b8cb
Diffstat (limited to 'eclipse/maven.mk')
-rw-r--r--eclipse/maven.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/eclipse/maven.mk b/eclipse/maven.mk
new file mode 100644
index 0000000..a054c0f
--- /dev/null
+++ b/eclipse/maven.mk
@@ -0,0 +1,23 @@
+PWD=$(shell pwd)
+
+ANDROID_OUT=$(realpath $(PWD)/../../out)
+ECLIPSE_PREBUILTS=$(realpath $(PWD)/../../prebuilts/eclipse)
+ECLIPSE_BUILD_DEPS=$(realpath $(PWD)/../../prebuilts/eclipse-build-deps)
+
+TARGET_DIR=$(ANDROID_OUT)/host/maven/target
+
+all: setup build
+
+setup:
+ mkdir -p $(TARGET_DIR)
+ unzip -u $(ECLIPSE_BUILD_DEPS)/platform/org.eclipse.platform-4.2.2.zip -d $(TARGET_DIR)/platform
+ unzip -u $(ECLIPSE_BUILD_DEPS)/cdt/cdt-master-8.0.2.zip -d $(TARGET_DIR)/cdt
+ unzip -u $(ECLIPSE_BUILD_DEPS)/emf/emf-xsd-Update-2.9.1.zip -d $(TARGET_DIR)/emf
+ unzip -u $(ECLIPSE_BUILD_DEPS)/jdt/org.eclipse.jdt.source-4.2.2.zip -d $(TARGET_DIR)/jdt
+ unzip -u $(ECLIPSE_BUILD_DEPS)/wtp/wtp-repo-R-3.3.2-20120210195245.zip -d $(TARGET_DIR)/wtp
+ unzip -u $(ECLIPSE_BUILD_DEPS)/gef/GEF-Update-3.9.1.zip -d $(TARGET_DIR)/gef
+ unzip -u $(ECLIPSE_BUILD_DEPS)/pde/org.eclipse.pde-3.8.zip -d $(TARGET_DIR)/pde
+ unzip -u $(ECLIPSE_BUILD_DEPS)/egit/org.eclipse.egit.repository-2.2.0.201212191850-r.zip -d $(TARGET_DIR)/egit
+
+build:
+ $(ECLIPSE_PREBUILTS)/maven/apache-maven-3.2.1/bin/mvn -s settings.xml -DforceContextQualifier=M01 -DANDROID_OUT=$(ANDROID_OUT) package