Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 1 | # Local modifications: |
Eric Erfanian | 9a090c8 | 2017-03-16 19:22:24 -0700 | [diff] [blame] | 2 | # * b/31757757 Precompiled proto classes have been included. |
Eric Erfanian | 9a090c8 | 2017-03-16 19:22:24 -0700 | [diff] [blame] | 3 | # * removed com.google.android.backup.api_key. This should be added to |
| 4 | # the manifest in the top level directory. |
| 5 | # * removed com.google.android.geo.API_KEY key. This should be added to |
| 6 | # the manifest files in java/com/android/incallui/calllocation/impl/ |
| 7 | # and /java/com/android/incallui/maps/impl/ |
| 8 | # * b/35391680 apache temporarily included in the top level directory. |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 9 | LOCAL_PATH:= $(call my-dir) |
| 10 | include $(CLEAR_VARS) |
| 11 | |
Yorke Lee | a20df31 | 2015-10-30 12:22:20 -0700 | [diff] [blame] | 12 | ifeq ($(TARGET_BUILD_APPS),) |
| 13 | support_library_root_dir := frameworks/support |
| 14 | else |
| 15 | support_library_root_dir := prebuilts/sdk/current/support |
| 16 | endif |
| 17 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 18 | # The base directory for Dialer sources. |
| 19 | BASE_DIR := java/com/android |
Jay Shrauner | 0f68a71 | 2014-07-16 16:13:57 -0700 | [diff] [blame] | 20 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 21 | # Primary dialer module sources. |
| 22 | SRC_DIRS := \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 23 | apache \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 24 | $(BASE_DIR)/contacts/common \ |
| 25 | $(BASE_DIR)/dialer \ |
| 26 | $(BASE_DIR)/incallui \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 27 | $(BASE_DIR)/voicemail |
| 28 | |
| 29 | # Exclude files incompatible with AOSP. |
| 30 | EXCLUDE_FILES := \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 31 | $(BASE_DIR)/incallui/calllocation/impl/AuthException.java \ |
| 32 | $(BASE_DIR)/incallui/calllocation/impl/CallLocationImpl.java \ |
| 33 | $(BASE_DIR)/incallui/calllocation/impl/CallLocationModule.java \ |
| 34 | $(BASE_DIR)/incallui/calllocation/impl/DownloadMapImageTask.java \ |
| 35 | $(BASE_DIR)/incallui/calllocation/impl/GoogleLocationSettingHelper.java \ |
| 36 | $(BASE_DIR)/incallui/calllocation/impl/HttpFetcher.java \ |
| 37 | $(BASE_DIR)/incallui/calllocation/impl/LocationFragment.java \ |
| 38 | $(BASE_DIR)/incallui/calllocation/impl/LocationHelper.java \ |
| 39 | $(BASE_DIR)/incallui/calllocation/impl/LocationPresenter.java \ |
| 40 | $(BASE_DIR)/incallui/calllocation/impl/LocationUrlBuilder.java \ |
| 41 | $(BASE_DIR)/incallui/calllocation/impl/ReverseGeocodeTask.java \ |
| 42 | $(BASE_DIR)/incallui/calllocation/impl/TrafficStatsTags.java \ |
| 43 | $(BASE_DIR)/incallui/maps/impl/MapsImpl.java \ |
| 44 | $(BASE_DIR)/incallui/maps/impl/MapsModule.java \ |
| 45 | $(BASE_DIR)/incallui/maps/impl/StaticMapFragment.java |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 46 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 47 | # All Dialers resources. |
| 48 | # find . -type d -name "res" | uniq | sort |
| 49 | RES_DIRS := \ |
| 50 | assets/product/res \ |
| 51 | assets/quantum/res \ |
| 52 | $(BASE_DIR)/contacts/common/res \ |
| 53 | $(BASE_DIR)/dialer/app/res \ |
| 54 | $(BASE_DIR)/dialer/app/voicemail/error/res \ |
| 55 | $(BASE_DIR)/dialer/blocking/res \ |
| 56 | $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/res \ |
| 57 | $(BASE_DIR)/dialer/callcomposer/cameraui/res \ |
| 58 | $(BASE_DIR)/dialer/callcomposer/res \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 59 | $(BASE_DIR)/dialer/calldetails/res \ |
| 60 | $(BASE_DIR)/dialer/calllogutils/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 61 | $(BASE_DIR)/dialer/common/res \ |
| 62 | $(BASE_DIR)/dialer/dialpadview/res \ |
| 63 | $(BASE_DIR)/dialer/interactions/res \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 64 | $(BASE_DIR)/dialer/notification/res \ |
| 65 | $(BASE_DIR)/dialer/oem/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 66 | $(BASE_DIR)/dialer/phonenumberutil/res \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 67 | $(BASE_DIR)/dialer/postcall/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 68 | $(BASE_DIR)/dialer/shortcuts/res \ |
| 69 | $(BASE_DIR)/dialer/theme/res \ |
| 70 | $(BASE_DIR)/dialer/util/res \ |
| 71 | $(BASE_DIR)/dialer/voicemailstatus/res \ |
| 72 | $(BASE_DIR)/dialer/widget/res \ |
| 73 | $(BASE_DIR)/incallui/answer/impl/affordance/res \ |
| 74 | $(BASE_DIR)/incallui/answer/impl/answermethod/res \ |
| 75 | $(BASE_DIR)/incallui/answer/impl/hint/res \ |
| 76 | $(BASE_DIR)/incallui/answer/impl/res \ |
| 77 | $(BASE_DIR)/incallui/audioroute/res \ |
| 78 | $(BASE_DIR)/incallui/autoresizetext/res \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 79 | $(BASE_DIR)/incallui/calllocation/impl/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 80 | $(BASE_DIR)/incallui/commontheme/res \ |
| 81 | $(BASE_DIR)/incallui/contactgrid/res \ |
| 82 | $(BASE_DIR)/incallui/hold/res \ |
| 83 | $(BASE_DIR)/incallui/incall/impl/res \ |
| 84 | $(BASE_DIR)/incallui/res \ |
| 85 | $(BASE_DIR)/incallui/sessiondata/res \ |
| 86 | $(BASE_DIR)/incallui/video/impl/res \ |
| 87 | $(BASE_DIR)/incallui/wifi/res \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 88 | $(BASE_DIR)/voicemail/impl/res |
| 89 | |
Ta-wei Yen | 90a13e9 | 2016-01-11 13:00:53 -0800 | [diff] [blame] | 90 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 91 | # Dialer manifest files to merge. |
| 92 | # find . -type f -name "AndroidManifest.xml" | uniq | sort |
| 93 | DIALER_MANIFEST_FILES += \ |
| 94 | $(BASE_DIR)/contacts/common/AndroidManifest.xml \ |
| 95 | $(BASE_DIR)/dialer/app/AndroidManifest.xml \ |
| 96 | $(BASE_DIR)/dialer/app/manifests/activities/AndroidManifest.xml \ |
| 97 | $(BASE_DIR)/dialer/app/voicemail/error/AndroidManifest.xml \ |
| 98 | $(BASE_DIR)/dialer/backup/AndroidManifest.xml \ |
| 99 | $(BASE_DIR)/dialer/blocking/AndroidManifest.xml \ |
| 100 | $(BASE_DIR)/dialer/callcomposer/AndroidManifest.xml \ |
| 101 | $(BASE_DIR)/dialer/callcomposer/camera/AndroidManifest.xml \ |
| 102 | $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/AndroidManifest.xml \ |
| 103 | $(BASE_DIR)/dialer/callcomposer/cameraui/AndroidManifest.xml \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 104 | $(BASE_DIR)/dialer/calldetails/AndroidManifest.xml \ |
| 105 | $(BASE_DIR)/dialer/calllogutils/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 106 | $(BASE_DIR)/dialer/common/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 107 | $(BASE_DIR)/dialer/dialpadview/AndroidManifest.xml \ |
| 108 | $(BASE_DIR)/dialer/interactions/AndroidManifest.xml \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 109 | $(BASE_DIR)/dialer/notification/AndroidManifest.xml \ |
| 110 | $(BASE_DIR)/dialer/oem/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 111 | $(BASE_DIR)/dialer/phonenumberutil/AndroidManifest.xml \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 112 | $(BASE_DIR)/dialer/postcall/AndroidManifest.xml \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 113 | $(BASE_DIR)/dialer/shortcuts/AndroidManifest.xml \ |
| 114 | $(BASE_DIR)/dialer/simulator/impl/AndroidManifest.xml \ |
| 115 | $(BASE_DIR)/dialer/theme/AndroidManifest.xml \ |
| 116 | $(BASE_DIR)/dialer/util/AndroidManifest.xml \ |
| 117 | $(BASE_DIR)/dialer/voicemailstatus/AndroidManifest.xml \ |
| 118 | $(BASE_DIR)/dialer/widget/AndroidManifest.xml \ |
| 119 | $(BASE_DIR)/incallui/AndroidManifest.xml \ |
| 120 | $(BASE_DIR)/incallui/answer/impl/affordance/AndroidManifest.xml \ |
| 121 | $(BASE_DIR)/incallui/answer/impl/AndroidManifest.xml \ |
| 122 | $(BASE_DIR)/incallui/answer/impl/answermethod/AndroidManifest.xml \ |
| 123 | $(BASE_DIR)/incallui/answer/impl/hint/AndroidManifest.xml \ |
| 124 | $(BASE_DIR)/incallui/audioroute/AndroidManifest.xml \ |
| 125 | $(BASE_DIR)/incallui/autoresizetext/AndroidManifest.xml \ |
| 126 | $(BASE_DIR)/incallui/commontheme/AndroidManifest.xml \ |
| 127 | $(BASE_DIR)/incallui/contactgrid/AndroidManifest.xml \ |
| 128 | $(BASE_DIR)/incallui/hold/AndroidManifest.xml \ |
| 129 | $(BASE_DIR)/incallui/incall/impl/AndroidManifest.xml \ |
| 130 | $(BASE_DIR)/incallui/sessiondata/AndroidManifest.xml \ |
| 131 | $(BASE_DIR)/incallui/video/impl/AndroidManifest.xml \ |
| 132 | $(BASE_DIR)/incallui/wifi/AndroidManifest.xml \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 133 | $(BASE_DIR)/voicemail/impl/AndroidManifest.xml |
| 134 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 135 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 136 | # Merge all manifest files. |
| 137 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 138 | $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES)) |
| 139 | LOCAL_SRC_FILES := $(call all-java-files-under, $(SRC_DIRS)) |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 140 | LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES)) |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 141 | # Native protobuf compilation disabled b/36564333 |
Eric Erfanian | 8cc9ca1 | 2017-03-22 15:15:18 -0700 | [diff] [blame] | 142 | # Include protocol buffers and use the nano compiler. |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 143 | # LOCAL_SRC_FILES += $(call all-proto-files-under, $(SRC_DIRS)) |
| 144 | # LOCAL_PROTOC_OPTIMIZE_TYPE := nano |
| 145 | # LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH) |
| 146 | # LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java,generate_clear=true,store_unknown_fields=true,generate_equals=true |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 147 | LOCAL_RESOURCE_DIR := \ |
| 148 | $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) \ |
| 149 | $(support_library_root_dir)/design/res \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 150 | $(support_library_root_dir)/transition/res \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 151 | $(support_library_root_dir)/v7/appcompat/res \ |
| 152 | $(support_library_root_dir)/v7/cardview/res \ |
| 153 | $(support_library_root_dir)/v7/recyclerview/res |
| 154 | |
| 155 | # We specify each package explicitly to glob resource files. |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 156 | LOCAL_AAPT_FLAGS := \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 157 | --auto-add-overlay \ |
| 158 | --extra-packages android.support.design \ |
| 159 | --extra-packages android.support.transition \ |
| 160 | --extra-packages android.support.v7.appcompat \ |
| 161 | --extra-packages android.support.v7.cardview \ |
| 162 | --extra-packages android.support.v7.recyclerview \ |
| 163 | --extra-packages com.android.contacts.common \ |
| 164 | --extra-packages com.android.dialer.app \ |
| 165 | --extra-packages com.android.dialer.app.voicemail.error \ |
| 166 | --extra-packages com.android.dialer.blocking \ |
| 167 | --extra-packages com.android.dialer.callcomposer \ |
| 168 | --extra-packages com.android.dialer.callcomposer \ |
| 169 | --extra-packages com.android.dialer.callcomposer.camera \ |
| 170 | --extra-packages com.android.dialer.callcomposer.camera.camerafocus \ |
| 171 | --extra-packages com.android.dialer.callcomposer.cameraui \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 172 | --extra-packages com.android.dialer.calldetails \ |
| 173 | --extra-packages com.android.dialer.calllogutils \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 174 | --extra-packages com.android.dialer.common \ |
| 175 | --extra-packages com.android.dialer.dialpadview \ |
| 176 | --extra-packages com.android.dialer.interactions \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 177 | --extra-packages com.android.dialer.notification \ |
| 178 | --extra-packages com.android.dialer.oem \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 179 | --extra-packages com.android.dialer.phonenumberutil \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 180 | --extra-packages com.android.dialer.postcall \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 181 | --extra-packages com.android.dialer.shortcuts \ |
| 182 | --extra-packages com.android.dialer.util \ |
| 183 | --extra-packages com.android.dialer.voicemailstatus \ |
| 184 | --extra-packages com.android.dialer.widget \ |
| 185 | --extra-packages com.android.incallui \ |
| 186 | --extra-packages com.android.incallui.answer.impl \ |
| 187 | --extra-packages com.android.incallui.answer.impl.affordance \ |
| 188 | --extra-packages com.android.incallui.answer.impl.affordance \ |
| 189 | --extra-packages com.android.incallui.answer.impl.answermethod \ |
| 190 | --extra-packages com.android.incallui.answer.impl.hint \ |
| 191 | --extra-packages com.android.incallui.audioroute \ |
| 192 | --extra-packages com.android.incallui.autoresizetext \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 193 | --extra-packages com.android.incallui.calllocation \ |
| 194 | --extra-packages com.android.incallui.calllocation.impl \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 195 | --extra-packages com.android.incallui.commontheme \ |
| 196 | --extra-packages com.android.incallui.contactgrid \ |
| 197 | --extra-packages com.android.incallui.hold \ |
| 198 | --extra-packages com.android.incallui.incall.impl \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 199 | --extra-packages com.android.incallui.maps.impl \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 200 | --extra-packages com.android.incallui.sessiondata \ |
| 201 | --extra-packages com.android.incallui.video \ |
| 202 | --extra-packages com.android.incallui.video.impl \ |
| 203 | --extra-packages com.android.incallui.wifi \ |
| 204 | --extra-packages com.android.phone.common \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 205 | --extra-packages com.android.voicemail \ |
| 206 | --extra-packages com.android.voicemail.impl \ |
| 207 | --extra-packages com.android.voicemail.impl.fetch \ |
| 208 | --extra-packages com.android.voicemail.impl.settings \ |
| 209 | --extra-packages com.android.voicemail.settings \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 210 | --extra-packages me.leolin.shortcutbadger |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 211 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 212 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 213 | android-common \ |
| 214 | android-support-design \ |
Eric Erfanian | 3775f56 | 2017-03-02 17:29:16 -0800 | [diff] [blame] | 215 | android-support-transition \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 216 | android-support-v13 \ |
| 217 | android-support-v4 \ |
| 218 | android-support-v7-appcompat \ |
| 219 | android-support-v7-cardview \ |
| 220 | android-support-v7-recyclerview \ |
| 221 | com.android.vcard \ |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame^] | 222 | dialer-commons-io-target \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 223 | dialer-dagger2-target \ |
| 224 | dialer-disklrucache-target \ |
| 225 | dialer-gifdecoder-target \ |
| 226 | dialer-glide-target \ |
| 227 | dialer-guava-target \ |
| 228 | dialer-javax-annotation-api-target \ |
| 229 | dialer-javax-inject-target \ |
| 230 | dialer-libshortcutbadger-target \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 231 | jsr305 \ |
| 232 | libphonenumber \ |
| 233 | libprotobuf-java-nano \ |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame^] | 234 | volley \ |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 235 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 236 | LOCAL_JAVA_LIBRARIES := \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 237 | org.apache.http.legacy \ |
| 238 | dialer-auto-value \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 239 | |
| 240 | # Libraries needed by the compiler (JACK) to generate code. |
| 241 | PROCESSOR_LIBRARIES_TARGET := \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 242 | dialer-dagger2-compiler \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 243 | dialer-dagger2 \ |
| 244 | dialer-dagger2-producers \ |
| 245 | dialer-guava \ |
| 246 | dialer-javax-annotation-api \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 247 | dialer-javax-inject \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 248 | dialer-auto-value \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 249 | |
| 250 | # Resolve the jar paths. |
| 251 | PROCESSOR_JARS := $(call java-lib-deps, $(PROCESSOR_LIBRARIES_TARGET)) |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 252 | # Necessary for annotation processors to work correctly. |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 253 | LOCAL_ADDITIONAL_DEPENDENCIES += $(PROCESSOR_JARS) |
| 254 | |
| 255 | LOCAL_JACK_FLAGS += --processorpath $(call normalize-path-list,$(PROCESSOR_JARS)) |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 256 | LOCAL_JAVACFLAGS += -processorpath $(call normalize-path-list,$(PROCESSOR_JARS)) |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 257 | |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 258 | # Proguard includes |
| 259 | LOCAL_PROGUARD_FLAG_FILES := \ |
| 260 | java/com/android/dialer/common/proguard.flags \ |
| 261 | java/com/android/dialer/proguard/proguard_base.flags \ |
| 262 | java/com/android/dialer/proguard/proguard.flags \ |
| 263 | java/com/android/dialer/proguard/proguard_release.flags \ |
| 264 | java/com/android/incallui/answer/impl/proguard.flags |
| 265 | LOCAL_PROGUARD_ENABLED := custom optimization |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 266 | |
Sailesh Nepal | 6a4e9d8 | 2016-02-20 15:54:49 -0800 | [diff] [blame] | 267 | LOCAL_SDK_VERSION := current |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 268 | LOCAL_MODULE_TAGS := optional |
| 269 | LOCAL_PACKAGE_NAME := Dialer |
| 270 | LOCAL_CERTIFICATE := shared |
| 271 | LOCAL_PRIVILEGED_MODULE := true |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 272 | include $(BUILD_PACKAGE) |
| 273 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 274 | # Cleanup local state |
| 275 | BASE_DIR := |
| 276 | SRC_DIRS := |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 277 | EXCLUDE_FILES := |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 278 | RES_DIRS := |
| 279 | DIALER_MANIFEST_FILES := |
| 280 | PROCESSOR_LIBRARIES_TARGET := |
| 281 | PROCESSOR_JARS := |
| 282 | |
| 283 | # Create references to prebuilt libraries. |
| 284 | include $(CLEAR_VARS) |
| 285 | |
| 286 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 287 | dialer-dagger2-compiler:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.6/dagger-compiler-2.6$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 288 | dialer-auto-value:../../../prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.3/auto-value-1.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 289 | dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.6/dagger-2.6$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 290 | dialer-dagger2-producers:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-producers/2.6/dagger-producers-2.6$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 291 | dialer-guava:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 292 | 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) \ |
| 293 | dialer-javax-inject:../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX) |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 294 | |
| 295 | include $(BUILD_MULTI_PREBUILT) |
| 296 | |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 297 | # Enumerate target prebuilts to avoid linker warnings like |
| 298 | # Dialer (java:sdk) should not link to dialer-guava (java:platform) |
| 299 | include $(CLEAR_VARS) |
| 300 | |
| 301 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 302 | LOCAL_MODULE := dialer-guava-target |
| 303 | LOCAL_SDK_VERSION := current |
| 304 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 305 | LOCAL_UNINSTALLABLE_MODULE := true |
| 306 | |
| 307 | include $(BUILD_PREBUILT) |
| 308 | |
| 309 | include $(CLEAR_VARS) |
| 310 | |
| 311 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 312 | LOCAL_MODULE := dialer-dagger2-target |
| 313 | LOCAL_SDK_VERSION := current |
| 314 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.6/dagger-2.6$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 315 | LOCAL_UNINSTALLABLE_MODULE := true |
| 316 | |
| 317 | include $(BUILD_PREBUILT) |
| 318 | |
| 319 | include $(CLEAR_VARS) |
| 320 | |
| 321 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 322 | LOCAL_MODULE := dialer-disklrucache-target |
| 323 | LOCAL_SDK_VERSION := current |
| 324 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/1.0.0-SNAPSHOT/disklrucache-1.0.0-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 325 | LOCAL_UNINSTALLABLE_MODULE := true |
| 326 | |
| 327 | include $(BUILD_PREBUILT) |
| 328 | |
| 329 | include $(CLEAR_VARS) |
| 330 | |
| 331 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 332 | LOCAL_MODULE := dialer-gifdecoder-target |
| 333 | LOCAL_SDK_VERSION := current |
| 334 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/1.0.0-SNAPSHOT/gifdecoder-1.0.0-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 335 | LOCAL_UNINSTALLABLE_MODULE := true |
| 336 | |
| 337 | include $(BUILD_PREBUILT) |
| 338 | |
| 339 | include $(CLEAR_VARS) |
| 340 | |
| 341 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 342 | LOCAL_MODULE := dialer-glide-target |
| 343 | LOCAL_SDK_VERSION := current |
| 344 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 345 | LOCAL_UNINSTALLABLE_MODULE := true |
| 346 | |
| 347 | include $(BUILD_PREBUILT) |
| 348 | |
| 349 | include $(CLEAR_VARS) |
| 350 | |
| 351 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 352 | LOCAL_MODULE := dialer-javax-annotation-api-target |
| 353 | LOCAL_SDK_VERSION := current |
| 354 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 355 | LOCAL_UNINSTALLABLE_MODULE := true |
| 356 | |
| 357 | include $(BUILD_PREBUILT) |
| 358 | |
| 359 | include $(CLEAR_VARS) |
| 360 | |
| 361 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 362 | LOCAL_MODULE := dialer-libshortcutbadger-target |
| 363 | LOCAL_SDK_VERSION := current |
| 364 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 365 | LOCAL_UNINSTALLABLE_MODULE := true |
| 366 | |
| 367 | include $(BUILD_PREBUILT) |
| 368 | |
| 369 | include $(CLEAR_VARS) |
| 370 | |
| 371 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 372 | LOCAL_MODULE := dialer-javax-inject-target |
| 373 | LOCAL_SDK_VERSION := current |
| 374 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 375 | LOCAL_UNINSTALLABLE_MODULE := true |
| 376 | |
| 377 | include $(BUILD_PREBUILT) |
| 378 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 379 | include $(CLEAR_VARS) |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame^] | 380 | |
| 381 | include $(CLEAR_VARS) |
| 382 | |
| 383 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 384 | LOCAL_MODULE := dialer-commons-io-target |
| 385 | LOCAL_SDK_VERSION := current |
| 386 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 387 | LOCAL_UNINSTALLABLE_MODULE := true |
| 388 | |
| 389 | include $(BUILD_PREBUILT) |
| 390 | |
| 391 | include $(CLEAR_VARS) |