Dirk Vogt | 4b2005d | 2016-10-27 18:19:48 +0200 | [diff] [blame^] | 1 | # |
| 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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | # |
| 20 | # Build app code. |
| 21 | # |
| 22 | include $(CLEAR_VARS) |
| 23 | |
| 24 | LOCAL_MODULE_TAGS := optional |
| 25 | |
| 26 | LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) |
| 27 | |
| 28 | LOCAL_JAVA_LIBRARIES := android-common\ |
| 29 | com.fairphone.hiccup \ |
| 30 | |
| 31 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 32 | android-support-v7-appcompat \ |
| 33 | android-support-v4 \ |
| 34 | hccompress \ |
| 35 | hcokhttp \ |
| 36 | hcokio \ |
| 37 | |
| 38 | LOCAL_MANIFEST_FILE = src/main/AndroidManifest.xml |
| 39 | LOCAL_AAPT_FLAGS := --auto-add-overlay |
| 40 | LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat |
| 41 | |
| 42 | LOCAL_RESOURCE_DIR := \ |
| 43 | frameworks/support/v7/appcompat/res \ |
| 44 | $(LOCAL_PATH)/src/main/res |
| 45 | |
| 46 | LOCAL_SDK_VERSION := current |
| 47 | |
| 48 | LOCAL_PACKAGE_NAME := Hiccup |
| 49 | |
| 50 | LOCAL_CERTIFICATE := platform |
| 51 | |
| 52 | LOCAL_PROGUARD_FLAG_FILES := proguard-rules.pro |
| 53 | |
| 54 | include $(BUILD_PACKAGE) |
| 55 | |
| 56 | # |
| 57 | # Add prebuilt jar |
| 58 | # |
| 59 | include $(CLEAR_VARS) |
| 60 | LOCAL_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 | |
| 65 | include $(BUILD_MULTI_PREBUILT) |