1# 2# Copyright (C) 2013 The Android Open Source 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 17LOCAL_PATH := $(call my-dir) 18 19# 20# Build rule for Launcher3 app. 21# 22include $(CLEAR_VARS) 23 24LOCAL_MODULE_TAGS := optional 25 26LOCAL_STATIC_JAVA_LIBRARIES := \ 27 android-support-v4 \ 28 android-support-v7-recyclerview \ 29 android-support-v7-palette \ 30 android-support-dynamic-animation 31 32LOCAL_SRC_FILES := \ 33 $(call all-java-files-under, src) \ 34 $(call all-java-files-under, src_config) \ 35 $(call all-java-files-under, src_flags) \ 36 $(call all-proto-files-under, protos) \ 37 $(call all-proto-files-under, proto_overrides) 38 39LOCAL_RESOURCE_DIR := \ 40 $(LOCAL_PATH)/res \ 41 prebuilts/sdk/current/support/v7/recyclerview/res \ 42 43LOCAL_PROGUARD_FLAG_FILES := proguard.flags 44 45LOCAL_PROTOC_OPTIMIZE_TYPE := nano 46LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/ 47LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java 48 49LOCAL_AAPT_FLAGS := \ 50 --auto-add-overlay \ 51 --extra-packages android.support.v7.recyclerview \ 52 53LOCAL_SDK_VERSION := current 54LOCAL_MIN_SDK_VERSION := 21 55LOCAL_PACKAGE_NAME := Launcher3 56LOCAL_PRIVILEGED_MODULE := true 57LOCAL_OVERRIDES_PACKAGES := Home Launcher2 58 59LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml 60 61LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.* 62 63include $(BUILD_PACKAGE) 64 65# 66# Build rule for Launcher3 Go app for Android Go devices. 67# 68include $(CLEAR_VARS) 69 70LOCAL_MODULE_TAGS := optional 71 72LOCAL_STATIC_JAVA_LIBRARIES := \ 73 android-support-v4 \ 74 android-support-v7-recyclerview \ 75 android-support-v7-palette \ 76 android-support-dynamic-animation 77 78LOCAL_SRC_FILES := \ 79 $(call all-java-files-under, src) \ 80 $(call all-java-files-under, src_config) \ 81 $(call all-java-files-under, go/src_flags) \ 82 $(call all-proto-files-under, protos) \ 83 $(call all-proto-files-under, proto_overrides) 84 85LOCAL_RESOURCE_DIR := \ 86 $(LOCAL_PATH)/go/res \ 87 $(LOCAL_PATH)/res \ 88 prebuilts/sdk/current/support/v7/recyclerview/res \ 89 90LOCAL_PROGUARD_FLAG_FILES := proguard.flags 91 92LOCAL_PROTOC_OPTIMIZE_TYPE := nano 93LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/ 94LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java 95 96LOCAL_AAPT_FLAGS := \ 97 --auto-add-overlay \ 98 --extra-packages android.support.v7.recyclerview \ 99 100LOCAL_SDK_VERSION := current 101LOCAL_MIN_SDK_VERSION := 21 102LOCAL_PACKAGE_NAME := Launcher3Go 103LOCAL_PRIVILEGED_MODULE := true 104LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 105 106LOCAL_FULL_LIBS_MANIFEST_FILES := \ 107 $(LOCAL_PATH)/AndroidManifest.xml \ 108 $(LOCAL_PATH)/AndroidManifest-common.xml 109 110LOCAL_MANIFEST_FILE := go/AndroidManifest.xml 111 112LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.* 113 114include $(BUILD_PACKAGE) 115 116# 117# Launcher proto buffer jar used for development 118# 119include $(CLEAR_VARS) 120 121LOCAL_SRC_FILES := $(call all-proto-files-under, protos) $(call all-proto-files-under, proto_overrides) 122 123LOCAL_PROTOC_OPTIMIZE_TYPE := nano 124LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/ 125LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java 126 127LOCAL_MODULE_TAGS := optional 128LOCAL_MODULE := launcher_proto_lib 129LOCAL_IS_HOST_MODULE := true 130LOCAL_STATIC_JAVA_LIBRARIES := host-libprotobuf-java-nano 131 132include $(BUILD_HOST_JAVA_LIBRARY) 133 134# ================================================== 135include $(call all-makefiles-under,$(LOCAL_PATH)) 136