Tom Powell | 08ac10e | 2016-04-21 17:29:51 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2016 The CyanogenMod Project |
Dan Pasanen | 8d0369c | 2016-11-30 18:56:46 -0600 | [diff] [blame] | 3 | # (C) 2017 The LineageOS Project |
Tom Powell | 08ac10e | 2016-04-21 17:29:51 -0700 | [diff] [blame] | 4 | # |
| 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 | # |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | SOURCE_GELLO_PATH := $(LOCAL_PATH)/../../../external/gello-build |
| 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | |
| 23 | LOCAL_MODULE := Gello |
| 24 | LOCAL_MODULE_CLASS := APPS |
| 25 | LOCAL_CERTIFICATE := $(DEFAULT_SYSTEM_DEV_CERTIFICATE) |
| 26 | |
| 27 | LOCAL_OVERRIDES_PACKAGES := Browser |
| 28 | |
| 29 | ifeq ($(WITH_GELLO_SOURCE),true) |
| 30 | # Build from source |
| 31 | ifeq ($(LOCAL_GELLO),true) |
| 32 | BUILD_GELLO := $(info $(shell bash $(SOURCE_GELLO_PATH)/gello_build.sh --local 1>&2)) |
| 33 | else |
| 34 | BUILD_GELLO := $(info $(shell bash $(SOURCE_GELLO_PATH)/gello_build.sh 1>&2)) |
| 35 | endif |
| 36 | LOCAL_SRC_FILES := ../../../external/gello-build/Gello.apk |
| 37 | include $(BUILD_PREBUILT) |
| 38 | else |
Abhisek Devkota | 30e0b17 | 2016-05-27 13:06:11 -0700 | [diff] [blame] | 39 | |
| 40 | LOCAL_DEX_PREOPT := false |
| 41 | LOCAL_MODULE_TAGS := optional |
| 42 | LOCAL_BUILT_MODULE_STEM := package.apk |
| 43 | LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) |
| 44 | |
Brandon McAnsh | 6679251 | 2016-12-30 16:26:44 -0500 | [diff] [blame] | 45 | LOCAL_HTTP_FILE_VERSION := 40 |
| 46 | LOCAL_HTTP_PATH := https://github.com/LineageOS/android_packages_apps_Gello/releases/download/$(LOCAL_HTTP_FILE_VERSION) |
Dan Pasanen | 8d0369c | 2016-11-30 18:56:46 -0600 | [diff] [blame] | 47 | LOCAL_HTTP_FILENAME := gello.apk |
Brandon McAnsh | 6679251 | 2016-12-30 16:26:44 -0500 | [diff] [blame] | 48 | LOCAL_HTTP_MD5SUM := $(LOCAL_HTTP_FILENAME).md5sum |
Tom Powell | 08ac10e | 2016-04-21 17:29:51 -0700 | [diff] [blame] | 49 | |
Dan Pasanen | 8d0369c | 2016-11-30 18:56:46 -0600 | [diff] [blame] | 50 | include $(BUILD_HTTP_PREBUILT) |
Tom Powell | 08ac10e | 2016-04-21 17:29:51 -0700 | [diff] [blame] | 51 | endif |