1#
2# Copyright (C) 2008 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)
18include $(CLEAR_VARS)
19
20LOCAL_RESOURCE_DIR := packages/apps/ExactCalculator/res
21
22ifeq ($(TARGET_BUILD_APPS),)
23LOCAL_RESOURCE_DIR += frameworks/support/v7/gridlayout/res
24LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res
25else
26LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/gridlayout/res
27LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/recyclerview/res
28endif
29
30LOCAL_MODULE_TAGS := optional
31LOCAL_SDK_VERSION := current
32
33LOCAL_PACKAGE_NAME := ExactCalculator
34LOCAL_OVERRIDES_PACKAGES := Calculator
35
36LOCAL_SRC_FILES := $(call all-java-files-under, src)
37
38LOCAL_PROGUARD_FLAG_FILES := proguard.flags
39LOCAL_PROGUARD_FLAG_FILES += ../../../frameworks/support/v7/recyclerview/proguard-rules.pro
40
41LOCAL_STATIC_JAVA_LIBRARIES := cr
42LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
43LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-gridlayout
44LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview
45
46LOCAL_AAPT_FLAGS := --auto-add-overlay
47LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.gridlayout
48LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.recyclerview
49
50include $(BUILD_PACKAGE)
51