blob: a88c42a5d8b532f4ea44563187298471648cbe9b [file] [log] [blame]
Tom Powell08ac10e2016-04-21 17:29:51 -07001#
2# Copyright (C) 2016 The CyanogenMod Project
Dan Pasanen8d0369c2016-11-30 18:56:46 -06003# (C) 2017 The LineageOS Project
Tom Powell08ac10e2016-04-21 17:29:51 -07004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17LOCAL_PATH := $(call my-dir)
18
19SOURCE_GELLO_PATH := $(LOCAL_PATH)/../../../external/gello-build
20
21include $(CLEAR_VARS)
22
23LOCAL_MODULE := Gello
24LOCAL_MODULE_CLASS := APPS
25LOCAL_CERTIFICATE := $(DEFAULT_SYSTEM_DEV_CERTIFICATE)
26
27LOCAL_OVERRIDES_PACKAGES := Browser
28
29ifeq ($(WITH_GELLO_SOURCE),true)
30# Build from source
31ifeq ($(LOCAL_GELLO),true)
32BUILD_GELLO := $(info $(shell bash $(SOURCE_GELLO_PATH)/gello_build.sh --local 1>&2))
33else
34BUILD_GELLO := $(info $(shell bash $(SOURCE_GELLO_PATH)/gello_build.sh 1>&2))
35endif
36LOCAL_SRC_FILES := ../../../external/gello-build/Gello.apk
37include $(BUILD_PREBUILT)
38else
Abhisek Devkota30e0b172016-05-27 13:06:11 -070039
40LOCAL_DEX_PREOPT := false
41LOCAL_MODULE_TAGS := optional
42LOCAL_BUILT_MODULE_STEM := package.apk
43LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
44
Brandon McAnsh66792512016-12-30 16:26:44 -050045LOCAL_HTTP_FILE_VERSION := 40
46LOCAL_HTTP_PATH := https://github.com/LineageOS/android_packages_apps_Gello/releases/download/$(LOCAL_HTTP_FILE_VERSION)
Dan Pasanen8d0369c2016-11-30 18:56:46 -060047LOCAL_HTTP_FILENAME := gello.apk
Brandon McAnsh66792512016-12-30 16:26:44 -050048LOCAL_HTTP_MD5SUM := $(LOCAL_HTTP_FILENAME).md5sum
Tom Powell08ac10e2016-04-21 17:29:51 -070049
Dan Pasanen8d0369c2016-11-30 18:56:46 -060050include $(BUILD_HTTP_PREBUILT)
Tom Powell08ac10e2016-04-21 17:29:51 -070051endif