blob: 28f3b9a316a5c018a37a8ca38e358a508d964e30 [file] [log] [blame]
Dirk Vogt4b2005d2016-10-27 18:19:48 +02001#
2# Copyright (C) 2016 Fairphone B.V.
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 app code.
21#
22include $(CLEAR_VARS)
23
24LOCAL_MODULE_TAGS := optional
25
26LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java)
27
28LOCAL_JAVA_LIBRARIES := android-common\
29 com.fairphone.hiccup \
30
31LOCAL_STATIC_JAVA_LIBRARIES := \
32 android-support-v7-appcompat \
33 android-support-v4 \
34 hccompress \
35 hcokhttp \
36 hcokio \
37
38LOCAL_MANIFEST_FILE = src/main/AndroidManifest.xml
39LOCAL_AAPT_FLAGS := --auto-add-overlay
40LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat
41
42LOCAL_RESOURCE_DIR := \
43 frameworks/support/v7/appcompat/res \
44 $(LOCAL_PATH)/src/main/res
45
46LOCAL_SDK_VERSION := current
47
48LOCAL_PACKAGE_NAME := Hiccup
49
50LOCAL_CERTIFICATE := platform
51
52LOCAL_PROGUARD_FLAG_FILES := proguard-rules.pro
53
54include $(BUILD_PACKAGE)
55
56#
57# Add prebuilt jar
58#
59include $(CLEAR_VARS)
60LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
61 hccompress:libs/commons-compress-1.8.1.jar \
62 hcokhttp:libs/okhttp-3.4.0-RC1.jar \
63 hcokio:libs/okio-1.9.0.jar
64
65include $(BUILD_MULTI_PREBUILT)