aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2012-10-23 09:29:54 -0700
committerSiva Velusamy <vsiva@google.com>2012-10-23 09:29:54 -0700
commitafad6b2b9bd994d2a7c617a5dfd809582589146a (patch)
treed070b53a7969a6e918e7b85a093de1318543ba2c
parent861e8759d5fae62b67a4cb022453310bccf159a9 (diff)
downloadsdk-afad6b2b9bd994d2a7c617a5dfd809582589146a.zip
sdk-afad6b2b9bd994d2a7c617a5dfd809582589146a.tar.gz
sdk-afad6b2b9bd994d2a7c617a5dfd809582589146a.tar.bz2
Document the hacks to generate the IDE.
Change-Id: Idf1d476c0dc6caa9f8c6e52db8a13821854982f3
-rw-r--r--adtproductbuild/Android.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/adtproductbuild/Android.mk b/adtproductbuild/Android.mk
index 63cd000..61e5c70 100644
--- a/adtproductbuild/Android.mk
+++ b/adtproductbuild/Android.mk
@@ -78,6 +78,21 @@ endef
# $3 = the src zip (from out/host/eclipse/artifacts/RcpBuild-...)
# $4 = the destination directory (where the unpacked eclipse is created)
# $5 = the destination zip with the zipped eclipse ide.
+# This rule is in used primarily to post process the .zip file that is
+# generated by the Eclipse PDE build process. Ideally, we'd fix things in the PDE build
+# itself, but since we don't know how we do this. These changes include:
+# - Changing the product definition in eclipse.ini from org.eclipse.platform to ..adt.package.product
+# - Setting eclipse.buildId in eclipse.ini
+# - Setting eclipse.buildId in about.mappings
+# - Changing the splash screen location from platform to adt.package in config.ini
+# - Mac only: The PDE build produces eclipse.app and Eclipse.app folders. This is probably a bug
+# in the PDE build since the filesystems on Mac are case insensitive. In any case, eclipse.ini is
+# present only in eclipse.app, so we copy it over to Eclipse.app and remove the eclipse.app folder.
+# In addition, the root folder has a symlink to Eclipse.app/Contents/MacOS/eclipse. Since .zip files
+# don't support symlinks, this just gets copied over. We don't really need this file as users just
+# open the Eclipse.app application, so we just remove it. Lastly, the .icns file is manually copied
+# over and specified in eclipse.ini, only because including it directly in the product definition
+# causes the build on our servers to fail.
define mk-adt-ide-2
$(5): $(ADT_IDE_JAVA_TARGET)
$(hide) \