blob: c1f1c5b01c105029dcff0884c51b38acc2d0a073 [file] [log] [blame]
Tom Powell08ac10e2016-04-21 17:29:51 -07001#
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#
16LOCAL_PATH := $(call my-dir)
17
18SOURCE_GELLO_PATH := $(LOCAL_PATH)/../../../external/gello-build
19
20include $(CLEAR_VARS)
21
22LOCAL_MODULE := Gello
23LOCAL_MODULE_CLASS := APPS
24LOCAL_CERTIFICATE := $(DEFAULT_SYSTEM_DEV_CERTIFICATE)
25
26LOCAL_OVERRIDES_PACKAGES := Browser
27
28ifeq ($(WITH_GELLO_SOURCE),true)
29# Build from source
30ifeq ($(LOCAL_GELLO),true)
31BUILD_GELLO := $(info $(shell bash $(SOURCE_GELLO_PATH)/gello_build.sh --local 1>&2))
32else
33BUILD_GELLO := $(info $(shell bash $(SOURCE_GELLO_PATH)/gello_build.sh 1>&2))
34endif
35LOCAL_SRC_FILES := ../../../external/gello-build/Gello.apk
36include $(BUILD_PREBUILT)
37else
Abhisek Devkota30e0b172016-05-27 13:06:11 -070038
39LOCAL_DEX_PREOPT := false
40LOCAL_MODULE_TAGS := optional
41LOCAL_BUILT_MODULE_STEM := package.apk
42LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
43
Tom Powell08ac10e2016-04-21 17:29:51 -070044LOCAL_MAVEN_REPO := https://maven.cyanogenmod.org/artifactory/gello_prebuilds
45LOCAL_MAVEN_GROUP := org.cyanogenmod
Abhisek Devkotafdd1ffc2016-07-29 13:01:57 -070046LOCAL_MAVEN_VERSION := 29
Tom Powell08ac10e2016-04-21 17:29:51 -070047LOCAL_MAVEN_ARTIFACT := gello
48LOCAL_MAVEN_PACKAGING := apk
49
50include $(BUILD_MAVEN_PREBUILT)
51endif