aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjrizzoli <joey@cyanogenmoditalia.it>2016-02-04 15:30:48 +0100
committerJoey Rizzoli <joey@cyanogenmoditalia.it>2016-04-18 14:56:42 -0700
commit3dcb9cf93f6d46d58689d646c8ae3bca2a0ed53d (patch)
tree800fd997221129bc7a0e2a51428e964cb1a06fc4
parente1fecf0f79509bedb387cb07cb10dbbf58bd95ec (diff)
downloadandroid_external_gello_build-3dcb9cf93f6d46d58689d646c8ae3bca2a0ed53d.tar.gz
android_external_gello_build-3dcb9cf93f6d46d58689d646c8ae3bca2a0ed53d.tar.bz2
android_external_gello_build-3dcb9cf93f6d46d58689d646c8ae3bca2a0ed53d.zip
gello-build: support prebuilt
Not everyone wants to build gello from source, especially when the sources are really big and will require additional deps and manual configurations. Save the word from by using prebuilt by default and making source build optional by exporting "WITH_GELLO_SOURCE=true" for those who don't trust prebuilts from evil cm. Also, if you're doing tests on packages/apps/Gello, you may want to export "LOCAL_GELLO=true" Change-Id: I4668e8caf700802ca3a0f96e023e949b0b0cb78f Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
-rw-r--r--Android.mk6
-rw-r--r--README.md10
2 files changed, 16 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 65e8e1f..1a42a49 100644
--- a/Android.mk
+++ b/Android.mk
@@ -26,8 +26,14 @@ LOCAL_CERTIFICATE := $(DEFAULT_SYSTEM_DEV_CERTIFICATE)
ifeq ($(WITH_GELLO_SOURCE),true)
# Build from source
+ifeq ($(LOCAL_GELLO),true)
+BUILD_GELLO := $(info $(shell bash $(LOCAL_PATH)/gello_build.sh --local 1>&2))
+else
BUILD_GELLO := $(info $(shell bash $(LOCAL_PATH)/gello_build.sh 1>&2))
+endif
LOCAL_SRC_FILES := Gello.apk
+else
+include ../../vendor/gello/Android.mk
endif
include $(BUILD_PREBUILT)
diff --git a/README.md b/README.md
index 77290bb..5e89ed8 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,16 @@ If you don't want to use/trust prebuilt apk (that comes from CyanogenMod Maven)
mka Gello
To be able to build Gello you'll need to set up your machine, see [Setup](https://github.com/CyanogenMod/android_external_gello_build#setup).
+Testing
+----------
+If you're working on the Gello shell (packages/apps/Gello), and you've sucessfully compiled at least once,
+you may want to use your local Gello instead of remote one. By using the local one, you won't be
+syncing other chromium / swe sources too.
+
+ export WITH_GELLO_SOURCE=true
+ export LOCAL_GELLO=true
+ mka Gello
+
Setup
----------
Read [chromium documentation](https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions_prerequisites.md) for needed packages to build Gello.