The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 1 | # |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 2 | # Copyright (C) 2013 The Android Open Source Project |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 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) |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 18 | |
| 19 | # |
| 20 | # Build app code. |
| 21 | # |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 22 | include $(CLEAR_VARS) |
| 23 | |
Jean-Baptiste Queru | 2583ac5 | 2010-01-05 11:09:52 -0800 | [diff] [blame] | 24 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 25 | |
telmo.agostinho | f8e60ba | 2015-10-29 15:33:41 +0000 | [diff] [blame] | 26 | LOCAL_JAVA_LIBRARIES := telephony-common |
| 27 | |
Jose Pascoal | 7b0686b | 2015-02-03 17:07:21 +0000 | [diff] [blame] | 28 | LOCAL_STATIC_JAVA_LIBRARIES := flcrashlytics android-support-v13 libphonenumber |
Bjorn Bringert | 3e244cf | 2010-02-10 14:17:35 +0000 | [diff] [blame] | 29 | |
Filipe Gonçalves | 028fa79 | 2016-01-06 11:25:36 +0000 | [diff] [blame] | 30 | |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 31 | LOCAL_SRC_FILES := $(call all-java-files-under, src) \ |
Jose Pascoal | 7b0686b | 2015-02-03 17:07:21 +0000 | [diff] [blame] | 32 | $(call all-java-files-under, WallpaperPicker/src) \ |
Chris Wren | 1ada10d | 2013-09-13 18:01:38 -0400 | [diff] [blame] | 33 | $(call all-proto-files-under, protos) |
Jose Pascoal | 7b0686b | 2015-02-03 17:07:21 +0000 | [diff] [blame] | 34 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/WallpaperPicker/res $(LOCAL_PATH)/res |
Michael Jurka | 8e88cb8 | 2013-12-10 16:59:20 +0100 | [diff] [blame] | 35 | |
| 36 | LOCAL_AAPT_FLAGS := --auto-add-overlay |
Chris Wren | 1ada10d | 2013-09-13 18:01:38 -0400 | [diff] [blame] | 37 | |
| 38 | LOCAL_PROTOC_OPTIMIZE_TYPE := nano |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 39 | LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ |
Chris Wren | 1ada10d | 2013-09-13 18:01:38 -0400 | [diff] [blame] | 40 | |
Jose Pascoal | 0521820 | 2014-11-19 11:17:38 +0000 | [diff] [blame] | 41 | LOCAL_SDK_VERSION := current |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 42 | |
Jose Pascoal | 0521820 | 2014-11-19 11:17:38 +0000 | [diff] [blame] | 43 | LOCAL_PACKAGE_NAME := FairphoneLauncher3 |
Filipe Gonçalves | d44027f | 2015-06-30 13:25:44 +0100 | [diff] [blame] | 44 | LOCAL_CERTIFICATE := platform |
| 45 | |
| 46 | LOCAL_PRIVILEGED_MODULE := true |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 47 | |
Jose Pascoal | 0521820 | 2014-11-19 11:17:38 +0000 | [diff] [blame] | 48 | LOCAL_OVERRIDES_PACKAGES := Launcher2 \ |
| 49 | Launcher3 |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 50 | |
Ying Wang | b159e77 | 2010-09-29 15:25:38 -0700 | [diff] [blame] | 51 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
Ying Wang | 77de117 | 2010-02-19 18:50:32 -0800 | [diff] [blame] | 52 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 53 | include $(BUILD_PACKAGE) |
Shih-wei Liao | 163feae | 2010-07-20 01:22:10 -0700 | [diff] [blame] | 54 | |
Jose Pascoal | 62f1f9d | 2014-11-19 11:57:00 +0000 | [diff] [blame] | 55 | # |
| 56 | # Add prebuilt jar |
| 57 | # |
| 58 | include $(CLEAR_VARS) |
| 59 | |
| 60 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := flcrashlytics:libs/crashlytics.jar |
| 61 | |
| 62 | include $(BUILD_MULTI_PREBUILT) |
| 63 | |
| 64 | #### |
| 65 | |
Tsu Chiang Chuang | 923aa62 | 2011-06-17 11:26:15 -0700 | [diff] [blame] | 66 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 67 | |
| 68 | # |
| 69 | # Protocol Buffer Debug Utility in Java |
| 70 | # |
| 71 | include $(CLEAR_VARS) |
| 72 | |
| 73 | LOCAL_SRC_FILES := $(call all-java-files-under, util) \ |
| 74 | $(call all-proto-files-under, protos) |
| 75 | |
| 76 | LOCAL_PROTOC_OPTIMIZE_TYPE := nano |
| 77 | LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ |
| 78 | |
| 79 | LOCAL_MODULE_TAGS := optional |
Jose Pascoal | 0521820 | 2014-11-19 11:17:38 +0000 | [diff] [blame] | 80 | LOCAL_MODULE := fplauncher_protoutil_lib |
Chris Wren | ba2923a | 2013-12-10 15:48:47 -0500 | [diff] [blame] | 81 | LOCAL_IS_HOST_MODULE := true |
| 82 | LOCAL_JAR_MANIFEST := util/etc/manifest.txt |
| 83 | LOCAL_STATIC_JAVA_LIBRARIES := host-libprotobuf-java-2.3.0-nano |
Chris Wren | 2b6c21d | 2013-10-02 14:16:04 -0400 | [diff] [blame] | 84 | |
| 85 | include $(BUILD_HOST_JAVA_LIBRARY) |
Chris Wren | ba2923a | 2013-12-10 15:48:47 -0500 | [diff] [blame] | 86 | |
| 87 | # |
| 88 | # Protocol Buffer Debug Utility Wrapper Script |
| 89 | # |
| 90 | include $(CLEAR_VARS) |
| 91 | LOCAL_IS_HOST_MODULE := true |
| 92 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 93 | LOCAL_MODULE_TAGS := optional |
Jose Pascoal | 0521820 | 2014-11-19 11:17:38 +0000 | [diff] [blame] | 94 | LOCAL_MODULE := fplauncher_protoutil |
Chris Wren | ba2923a | 2013-12-10 15:48:47 -0500 | [diff] [blame] | 95 | |
| 96 | include $(BUILD_SYSTEM)/base_rules.mk |
| 97 | |
Jose Pascoal | 0521820 | 2014-11-19 11:17:38 +0000 | [diff] [blame] | 98 | $(LOCAL_BUILT_MODULE): fplauncher_protoutil_lib |
Chris Wren | ba2923a | 2013-12-10 15:48:47 -0500 | [diff] [blame] | 99 | $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/util/etc/launcher_protoutil | $(ACP) |
| 100 | @echo "Copy: $(PRIVATE_MODULE) ($@)" |
| 101 | $(copy-file-to-new-target) |
| 102 | $(hide) chmod 755 $@ |
| 103 | |
| 104 | INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE) |