From 0b0513a87849429763e5fb5934598393daf7e6d1 Mon Sep 17 00:00:00 2001 From: Siva Velusamy Date: Mon, 17 Sep 2012 14:50:49 -0700 Subject: Add Android IDE package product build Change-Id: I42426009df581ff51389f0641eab053ac706d723 --- adtproductbuild/Makefile | 36 +++++++++++++ adtproductbuild/build.properties | 50 +++++++++++++++++ adtproductbuild/build.xml | 114 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 200 insertions(+) create mode 100644 adtproductbuild/Makefile create mode 100644 adtproductbuild/build.properties create mode 100644 adtproductbuild/build.xml (limited to 'adtproductbuild') diff --git a/adtproductbuild/Makefile b/adtproductbuild/Makefile new file mode 100644 index 0000000..64d30ef --- /dev/null +++ b/adtproductbuild/Makefile @@ -0,0 +1,36 @@ +ADT_IDE_BUILD_LOG := out/host/eclipse/adtproduct/build/adtproduct.log +ADT_IDE_ARTIFACT_DIR := ../../out/host/eclipse/adtproduct/build/I.RcpBuild +ADT_IDE_RELEASE_DIR := ../../out/host/eclipse/adtproduct/release/ + +define release-ide + srczip=$(ADT_IDE_ARTIFACT_DIR)/RcpBuild-$(1).$(2).zip && \ + dstdir=$(ADT_IDE_RELEASE_DIR)/android-ide-$(1).$(2) && \ + rm -rf $(V) $$dstdir && \ + mkdir -p $$dstdir && \ + unzip -q $$srczip -d $$dstdir && \ + if [[ $(1) == "macosx.cocoa" ]]; then eclipseini=eclipse.app/Contents/MacOS/eclipse.ini; else eclipseini=eclipse.ini; fi && \ + sed -i 's/org.eclipse.platform/com.android.ide.eclipse.adt.package.product/g' $$dstdir/eclipse/$$eclipseini && \ + sed -i -e 's/org.eclipse.platform.ide/com.android.ide.eclipse.adt.package.product/g' \ + -e 's/org.eclipse.platform/com.android.ide.eclipse.adt.package/g' $$dstdir/eclipse/configuration/config.ini +endef + + +all: + rm -f ../../$(ADT_IDE_BUILD_LOG) && mkdir -p ../../$(dir $(ADT_IDE_BUILD_LOG)) && \ + ( java -jar ../../external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar \ + org.eclipse.equinox.launcher.Main \ + -application org.eclipse.ant.core.antRunner \ + -configuration ../../out/host/eclipse/adtproduct/build/configuration \ + -data ../../out/host/eclipse/adtproduct/workspace \ + 2>&1 && \ + mv -f ../../$(ADT_IDE_BUILD_LOG) ../../$(ADT_IDE_BUILD_LOG).1 ) \ + | tee ../../$(ADT_IDE_BUILD_LOG) \ + | sed '/SUCCESSFUL/d ; /\[java\]/!b label; s/\s\+\[java\]//; /^\s*$$/d; /Compiling/!d; :label /^\s*$$/d; s/^/ADT: /'; \ + if [[ -f ../../$(ADT_IDE_BUILD_LOG) ]]; then \ + echo "ADT IDE build failed. Full log:" ; \ + cat ../../$(ADT_IDE_BUILD_LOG) ; \ + exit 1 ; \ + fi + $(call release-ide,linux.gtk,x86_64) ; \ + $(call release-ide,macosx.cocoa,x86_64) ; \ + $(call release-ide,win32.win32,x86_64) ; \ diff --git a/adtproductbuild/build.properties b/adtproductbuild/build.properties new file mode 100644 index 0000000..156c3be --- /dev/null +++ b/adtproductbuild/build.properties @@ -0,0 +1,50 @@ +# Copyright (C) 2012 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +############# PRODUCT/PACKAGING CONTROL ############# +product=/com.android.ide.eclipse.adt.package/ide.product +runPackager=true +archivePrefix=eclipse +collectingFolder=${archivePrefix} +allowBinaryCycles = true +buildType=I +buildId=RcpBuild +buildLabel=${buildType}.${buildId} +timestamp=007 +launcherName=eclipse + +############# BASE CONTROL ############# +baseos=linux +basews=gtk +basearch=x86_64 +filteredDependencyCheck=false +resolution.devMode=false +skipBase=true + +############# MAP FILE CONTROL ################ +skipMaps=true + +############ REPOSITORY CONTROL ############### +skipFetch=true + +############# JAVA COMPILER OPTIONS ############## +compilerArg=-warn:none +logExtension=.log +javacDebugInfo=false +javacFailOnError=true +javacVerbose=true +javacSource=1.6 +javacTarget=1.6 + +p2.gathering=true diff --git a/adtproductbuild/build.xml b/adtproductbuild/build.xml new file mode 100644 index 0000000..7851625 --- /dev/null +++ b/adtproductbuild/build.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.1