Tom Powell | 08ac10e | 2016-04-21 17:29:51 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2016 The CyanogenMod Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | LOCAL_PATH := $(call my-dir) |
| 17 | |
| 18 | SOURCE_GELLO_PATH := $(LOCAL_PATH)/../../../external/gello-build |
| 19 | |
| 20 | include $(CLEAR_VARS) |
| 21 | |
| 22 | LOCAL_MODULE := Gello |
| 23 | LOCAL_MODULE_CLASS := APPS |
| 24 | LOCAL_CERTIFICATE := $(DEFAULT_SYSTEM_DEV_CERTIFICATE) |
| 25 | |
| 26 | LOCAL_OVERRIDES_PACKAGES := Browser |
| 27 | |
| 28 | ifeq ($(WITH_GELLO_SOURCE),true) |
| 29 | # Build from source |
| 30 | ifeq ($(LOCAL_GELLO),true) |
| 31 | BUILD_GELLO := $(info $(shell bash $(SOURCE_GELLO_PATH)/gello_build.sh --local 1>&2)) |
| 32 | else |
| 33 | BUILD_GELLO := $(info $(shell bash $(SOURCE_GELLO_PATH)/gello_build.sh 1>&2)) |
| 34 | endif |
| 35 | LOCAL_SRC_FILES := ../../../external/gello-build/Gello.apk |
| 36 | include $(BUILD_PREBUILT) |
| 37 | else |
Abhisek Devkota | 30e0b17 | 2016-05-27 13:06:11 -0700 | [diff] [blame] | 38 | |
| 39 | LOCAL_DEX_PREOPT := false |
| 40 | LOCAL_MODULE_TAGS := optional |
| 41 | LOCAL_BUILT_MODULE_STEM := package.apk |
| 42 | LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) |
| 43 | |
Tom Powell | 08ac10e | 2016-04-21 17:29:51 -0700 | [diff] [blame] | 44 | LOCAL_MAVEN_REPO := https://maven.cyanogenmod.org/artifactory/gello_prebuilds |
| 45 | LOCAL_MAVEN_GROUP := org.cyanogenmod |
Abhisek Devkota | fdd1ffc | 2016-07-29 13:01:57 -0700 | [diff] [blame] | 46 | LOCAL_MAVEN_VERSION := 29 |
Tom Powell | 08ac10e | 2016-04-21 17:29:51 -0700 | [diff] [blame] | 47 | LOCAL_MAVEN_ARTIFACT := gello |
| 48 | LOCAL_MAVEN_PACKAGING := apk |
| 49 | |
| 50 | include $(BUILD_MAVEN_PREBUILT) |
| 51 | endif |