Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame^] | 1 | # Local modifications: |
| 2 | # * All location/maps code has been removed from the incallui. |
| 3 | # * Precompiled AutoValue classes have been included. |
| 4 | # * Precompiled Dagger classes have been included. |
| 5 | # * All autovalue imports and annotations have been stripped. |
| 6 | # * Precompiled proto classes have been included. |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 7 | LOCAL_PATH:= $(call my-dir) |
| 8 | include $(CLEAR_VARS) |
| 9 | |
Yorke Lee | a20df31 | 2015-10-30 12:22:20 -0700 | [diff] [blame] | 10 | ifeq ($(TARGET_BUILD_APPS),) |
| 11 | support_library_root_dir := frameworks/support |
| 12 | else |
| 13 | support_library_root_dir := prebuilts/sdk/current/support |
| 14 | endif |
| 15 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame^] | 16 | # The base directory for Dialer sources. |
| 17 | BASE_DIR := java/com/android |
Jay Shrauner | 0f68a71 | 2014-07-16 16:13:57 -0700 | [diff] [blame] | 18 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame^] | 19 | # Primary dialer module sources. |
| 20 | SRC_DIRS := \ |
| 21 | $(BASE_DIR)/contacts/common \ |
| 22 | $(BASE_DIR)/dialer \ |
| 23 | $(BASE_DIR)/incallui \ |
| 24 | $(BASE_DIR)/voicemailomtp |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 25 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame^] | 26 | # All Dialers resources. |
| 27 | # find . -type d -name "res" | uniq | sort |
| 28 | RES_DIRS := \ |
| 29 | assets/product/res \ |
| 30 | assets/quantum/res \ |
| 31 | $(BASE_DIR)/contacts/common/res \ |
| 32 | $(BASE_DIR)/dialer/app/res \ |
| 33 | $(BASE_DIR)/dialer/app/voicemail/error/res \ |
| 34 | $(BASE_DIR)/dialer/blocking/res \ |
| 35 | $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/res \ |
| 36 | $(BASE_DIR)/dialer/callcomposer/cameraui/res \ |
| 37 | $(BASE_DIR)/dialer/callcomposer/res \ |
| 38 | $(BASE_DIR)/dialer/common/res \ |
| 39 | $(BASE_DIR)/dialer/dialpadview/res \ |
| 40 | $(BASE_DIR)/dialer/interactions/res \ |
| 41 | $(BASE_DIR)/dialer/phonenumberutil/res \ |
| 42 | $(BASE_DIR)/dialer/shortcuts/res \ |
| 43 | $(BASE_DIR)/dialer/theme/res \ |
| 44 | $(BASE_DIR)/dialer/util/res \ |
| 45 | $(BASE_DIR)/dialer/voicemailstatus/res \ |
| 46 | $(BASE_DIR)/dialer/widget/res \ |
| 47 | $(BASE_DIR)/incallui/answer/impl/affordance/res \ |
| 48 | $(BASE_DIR)/incallui/answer/impl/answermethod/res \ |
| 49 | $(BASE_DIR)/incallui/answer/impl/hint/res \ |
| 50 | $(BASE_DIR)/incallui/answer/impl/res \ |
| 51 | $(BASE_DIR)/incallui/audioroute/res \ |
| 52 | $(BASE_DIR)/incallui/autoresizetext/res \ |
| 53 | $(BASE_DIR)/incallui/commontheme/res \ |
| 54 | $(BASE_DIR)/incallui/contactgrid/res \ |
| 55 | $(BASE_DIR)/incallui/hold/res \ |
| 56 | $(BASE_DIR)/incallui/incall/impl/res \ |
| 57 | $(BASE_DIR)/incallui/res \ |
| 58 | $(BASE_DIR)/incallui/sessiondata/res \ |
| 59 | $(BASE_DIR)/incallui/video/impl/res \ |
| 60 | $(BASE_DIR)/incallui/wifi/res \ |
| 61 | $(BASE_DIR)/voicemailomtp/res |
Ta-wei Yen | 90a13e9 | 2016-01-11 13:00:53 -0800 | [diff] [blame] | 62 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame^] | 63 | # Dialer manifest files to merge. |
| 64 | # find . -type f -name "AndroidManifest.xml" | uniq | sort |
| 65 | DIALER_MANIFEST_FILES += \ |
| 66 | $(BASE_DIR)/contacts/common/AndroidManifest.xml \ |
| 67 | $(BASE_DIR)/dialer/app/AndroidManifest.xml \ |
| 68 | $(BASE_DIR)/dialer/app/manifests/activities/AndroidManifest.xml \ |
| 69 | $(BASE_DIR)/dialer/app/voicemail/error/AndroidManifest.xml \ |
| 70 | $(BASE_DIR)/dialer/backup/AndroidManifest.xml \ |
| 71 | $(BASE_DIR)/dialer/blocking/AndroidManifest.xml \ |
| 72 | $(BASE_DIR)/dialer/callcomposer/AndroidManifest.xml \ |
| 73 | $(BASE_DIR)/dialer/callcomposer/camera/AndroidManifest.xml \ |
| 74 | $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/AndroidManifest.xml \ |
| 75 | $(BASE_DIR)/dialer/callcomposer/cameraui/AndroidManifest.xml \ |
| 76 | $(BASE_DIR)/dialer/common/AndroidManifest.xml \ |
| 77 | $(BASE_DIR)/dialer/debug/AndroidManifest.xml \ |
| 78 | $(BASE_DIR)/dialer/debug/impl/AndroidManifest.xml \ |
| 79 | $(BASE_DIR)/dialer/dialpadview/AndroidManifest.xml \ |
| 80 | $(BASE_DIR)/dialer/interactions/AndroidManifest.xml \ |
| 81 | $(BASE_DIR)/dialer/phonenumberutil/AndroidManifest.xml \ |
| 82 | $(BASE_DIR)/dialer/shortcuts/AndroidManifest.xml \ |
| 83 | $(BASE_DIR)/dialer/simulator/impl/AndroidManifest.xml \ |
| 84 | $(BASE_DIR)/dialer/theme/AndroidManifest.xml \ |
| 85 | $(BASE_DIR)/dialer/util/AndroidManifest.xml \ |
| 86 | $(BASE_DIR)/dialer/voicemailstatus/AndroidManifest.xml \ |
| 87 | $(BASE_DIR)/dialer/widget/AndroidManifest.xml \ |
| 88 | $(BASE_DIR)/incallui/AndroidManifest.xml \ |
| 89 | $(BASE_DIR)/incallui/answer/impl/affordance/AndroidManifest.xml \ |
| 90 | $(BASE_DIR)/incallui/answer/impl/AndroidManifest.xml \ |
| 91 | $(BASE_DIR)/incallui/answer/impl/answermethod/AndroidManifest.xml \ |
| 92 | $(BASE_DIR)/incallui/answer/impl/hint/AndroidManifest.xml \ |
| 93 | $(BASE_DIR)/incallui/audioroute/AndroidManifest.xml \ |
| 94 | $(BASE_DIR)/incallui/autoresizetext/AndroidManifest.xml \ |
| 95 | $(BASE_DIR)/incallui/commontheme/AndroidManifest.xml \ |
| 96 | $(BASE_DIR)/incallui/contactgrid/AndroidManifest.xml \ |
| 97 | $(BASE_DIR)/incallui/hold/AndroidManifest.xml \ |
| 98 | $(BASE_DIR)/incallui/incall/impl/AndroidManifest.xml \ |
| 99 | $(BASE_DIR)/incallui/sessiondata/AndroidManifest.xml \ |
| 100 | $(BASE_DIR)/incallui/video/impl/AndroidManifest.xml \ |
| 101 | $(BASE_DIR)/incallui/wifi/AndroidManifest.xml \ |
| 102 | $(BASE_DIR)/voicemailomtp/AndroidManifest.xml |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 103 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame^] | 104 | # Merge all manifest files. |
| 105 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 106 | $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES)) |
| 107 | LOCAL_SRC_FILES := $(call all-java-files-under, $(SRC_DIRS)) |
| 108 | LOCAL_RESOURCE_DIR := \ |
| 109 | $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) \ |
| 110 | $(support_library_root_dir)/design/res \ |
| 111 | $(support_library_root_dir)/v7/appcompat/res \ |
| 112 | $(support_library_root_dir)/v7/cardview/res \ |
| 113 | $(support_library_root_dir)/v7/recyclerview/res |
| 114 | |
| 115 | # We specify each package explicitly to glob resource files. |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 116 | LOCAL_AAPT_FLAGS := \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame^] | 117 | --auto-add-overlay \ |
| 118 | --extra-packages android.support.design \ |
| 119 | --extra-packages android.support.transition \ |
| 120 | --extra-packages android.support.v7.appcompat \ |
| 121 | --extra-packages android.support.v7.cardview \ |
| 122 | --extra-packages android.support.v7.recyclerview \ |
| 123 | --extra-packages com.android.contacts.common \ |
| 124 | --extra-packages com.android.dialer.app \ |
| 125 | --extra-packages com.android.dialer.app.voicemail.error \ |
| 126 | --extra-packages com.android.dialer.blocking \ |
| 127 | --extra-packages com.android.dialer.callcomposer \ |
| 128 | --extra-packages com.android.dialer.callcomposer \ |
| 129 | --extra-packages com.android.dialer.callcomposer.camera \ |
| 130 | --extra-packages com.android.dialer.callcomposer.camera.camerafocus \ |
| 131 | --extra-packages com.android.dialer.callcomposer.cameraui \ |
| 132 | --extra-packages com.android.dialer.common \ |
| 133 | --extra-packages com.android.dialer.dialpadview \ |
| 134 | --extra-packages com.android.dialer.interactions \ |
| 135 | --extra-packages com.android.dialer.phonenumberutil \ |
| 136 | --extra-packages com.android.dialer.shortcuts \ |
| 137 | --extra-packages com.android.dialer.util \ |
| 138 | --extra-packages com.android.dialer.voicemailstatus \ |
| 139 | --extra-packages com.android.dialer.widget \ |
| 140 | --extra-packages com.android.incallui \ |
| 141 | --extra-packages com.android.incallui.answer.impl \ |
| 142 | --extra-packages com.android.incallui.answer.impl.affordance \ |
| 143 | --extra-packages com.android.incallui.answer.impl.affordance \ |
| 144 | --extra-packages com.android.incallui.answer.impl.answermethod \ |
| 145 | --extra-packages com.android.incallui.answer.impl.hint \ |
| 146 | --extra-packages com.android.incallui.audioroute \ |
| 147 | --extra-packages com.android.incallui.autoresizetext \ |
| 148 | --extra-packages com.android.incallui.commontheme \ |
| 149 | --extra-packages com.android.incallui.contactgrid \ |
| 150 | --extra-packages com.android.incallui.hold \ |
| 151 | --extra-packages com.android.incallui.incall.impl \ |
| 152 | --extra-packages com.android.incallui.sessiondata \ |
| 153 | --extra-packages com.android.incallui.video \ |
| 154 | --extra-packages com.android.incallui.video.impl \ |
| 155 | --extra-packages com.android.incallui.wifi \ |
| 156 | --extra-packages com.android.phone.common \ |
| 157 | --extra-packages com.android.voicemailomtp \ |
| 158 | --extra-packages com.android.voicemailomtp.settings \ |
| 159 | --extra-packages me.leolin.shortcutbadger |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 160 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 161 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame^] | 162 | android-common \ |
| 163 | android-support-design \ |
| 164 | android-support-v13 \ |
| 165 | android-support-v4 \ |
| 166 | android-support-v7-appcompat \ |
| 167 | android-support-v7-cardview \ |
| 168 | android-support-v7-recyclerview \ |
| 169 | com.android.vcard \ |
| 170 | dailer-dagger2-compiler \ |
| 171 | dialer-dagger2 \ |
| 172 | dialer-dagger2-producers \ |
| 173 | dialer-glide \ |
| 174 | dialer-javax-annotation-api \ |
| 175 | dialer-javax-inject \ |
| 176 | dialer-libshortcutbadger \ |
| 177 | jsr305 \ |
| 178 | libphonenumber \ |
| 179 | libprotobuf-java-nano \ |
| 180 | org.apache.http.legacy.boot \ |
| 181 | volley |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 182 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame^] | 183 | LOCAL_JAVA_LIBRARIES := \ |
| 184 | android-support-annotations \ |
| 185 | android-support-transition \ |
| 186 | dailer-dagger2-compiler \ |
| 187 | dialer-dagger2 \ |
| 188 | dialer-dagger2-producers \ |
| 189 | dialer-glide \ |
| 190 | dialer-guava \ |
| 191 | dialer-javax-annotation-api \ |
| 192 | dialer-javax-inject \ |
| 193 | dialer-libshortcutbadger \ |
| 194 | jsr305 \ |
| 195 | libprotobuf-java-nano |
| 196 | |
| 197 | # Libraries needed by the compiler (JACK) to generate code. |
| 198 | PROCESSOR_LIBRARIES_TARGET := \ |
| 199 | dailer-dagger2-compiler \ |
| 200 | dialer-dagger2 \ |
| 201 | dialer-dagger2-producers \ |
| 202 | dialer-guava \ |
| 203 | dialer-javax-annotation-api \ |
| 204 | dialer-javax-inject |
| 205 | |
| 206 | # TODO: Include when JACK properly supports AutoValue b/35360557 |
| 207 | # (builders not generated successfully, javac duplicate issues) in |
| 208 | # LOCAL_STATIC_JAVA_LIBRARIES, LOCAL_JAVA_LIBRARIES, PROCESSOR_LIBRARIES_TARGET |
| 209 | # dialer-auto-value |
| 210 | |
| 211 | # Resolve the jar paths. |
| 212 | PROCESSOR_JARS := $(call java-lib-deps, $(PROCESSOR_LIBRARIES_TARGET)) |
| 213 | LOCAL_ADDITIONAL_DEPENDENCIES += $(PROCESSOR_JARS) |
| 214 | |
| 215 | LOCAL_JACK_FLAGS += --processorpath $(call normalize-path-list,$(PROCESSOR_JARS)) |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 216 | |
Santos Cordon | c286ae2 | 2013-09-03 15:58:07 -0700 | [diff] [blame] | 217 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 218 | |
Sailesh Nepal | 6a4e9d8 | 2016-02-20 15:54:49 -0800 | [diff] [blame] | 219 | LOCAL_SDK_VERSION := current |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame^] | 220 | LOCAL_MODULE_TAGS := optional |
| 221 | LOCAL_PACKAGE_NAME := Dialer |
| 222 | LOCAL_CERTIFICATE := shared |
| 223 | LOCAL_PRIVILEGED_MODULE := true |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 224 | include $(BUILD_PACKAGE) |
| 225 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame^] | 226 | # Cleanup local state |
| 227 | BASE_DIR := |
| 228 | SRC_DIRS := |
| 229 | RES_DIRS := |
| 230 | DIALER_MANIFEST_FILES := |
| 231 | PROCESSOR_LIBRARIES_TARGET := |
| 232 | PROCESSOR_JARS := |
| 233 | |
| 234 | # Create references to prebuilt libraries. |
| 235 | include $(CLEAR_VARS) |
| 236 | |
| 237 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ |
| 238 | dailer-dagger2-compiler:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.6/dagger-compiler-2.6$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 239 | dialer-auto-common:../../../prebuilts/tools/common/m2/repository/com/google/auto/auto-common/0.6/auto-common-0.6$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 240 | dialer-auto-value:../../../prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.3/auto-value-1.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 241 | dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.6/dagger-2.6$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 242 | dialer-dagger2-producers:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-producers/2.6/dagger-producers-2.6$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 243 | dialer-glide:../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 244 | dialer-guava:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 245 | dialer-javax-annotation-api:../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 246 | dialer-javax-inject:../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 247 | dialer-libshortcutbadger:../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 248 | |
| 249 | include $(BUILD_MULTI_PREBUILT) |
| 250 | |
| 251 | include $(CLEAR_VARS) |