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 | # * removed com.google.android.geo.API_KEY key. This should be added to |
| 3 | # the manifest files in java/com/android/incallui/calllocation/impl/ |
| 4 | # and /java/com/android/incallui/maps/impl/ |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 5 | # * b/62417801 modify translation string naming convention: |
| 6 | # $ find . -type d | grep 262 | rename 's/(values)\-([a-zA-Z\+\-]+)\-(mcc262-mnc01)/$1-$3-$2/' |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 7 | # * b/37077388 temporarily disable proguard with javac |
| 8 | # * b/62875795 include manually generated GRPC service class: |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 9 | # $ protoc --plugin=protoc-gen-grpc-java=prebuilts/tools/common/m2/repository/io/grpc/protoc-gen-grpc-java/1.0.3/protoc-gen-grpc-java-1.0.3-linux-x86_64.exe \ |
| 10 | # --grpc-java_out=lite:"packages/apps/Dialer/java/com/android/voicemail/impl/" \ |
Eric Erfanian | ea7890c | 2017-06-19 12:40:59 -0700 | [diff] [blame] | 11 | # --proto_path="packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/" "packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 12 | LOCAL_PATH:= $(call my-dir) |
| 13 | include $(CLEAR_VARS) |
| 14 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 15 | # The base directory for Dialer sources. |
| 16 | BASE_DIR := java/com/android |
Jay Shrauner | 0f68a71 | 2014-07-16 16:13:57 -0700 | [diff] [blame] | 17 | |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 18 | # Exclude files incompatible with AOSP. |
| 19 | EXCLUDE_FILES := \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 20 | $(BASE_DIR)/incallui/calllocation/impl/AuthException.java \ |
| 21 | $(BASE_DIR)/incallui/calllocation/impl/CallLocationImpl.java \ |
| 22 | $(BASE_DIR)/incallui/calllocation/impl/CallLocationModule.java \ |
| 23 | $(BASE_DIR)/incallui/calllocation/impl/DownloadMapImageTask.java \ |
| 24 | $(BASE_DIR)/incallui/calllocation/impl/GoogleLocationSettingHelper.java \ |
| 25 | $(BASE_DIR)/incallui/calllocation/impl/HttpFetcher.java \ |
| 26 | $(BASE_DIR)/incallui/calllocation/impl/LocationFragment.java \ |
| 27 | $(BASE_DIR)/incallui/calllocation/impl/LocationHelper.java \ |
| 28 | $(BASE_DIR)/incallui/calllocation/impl/LocationPresenter.java \ |
| 29 | $(BASE_DIR)/incallui/calllocation/impl/LocationUrlBuilder.java \ |
| 30 | $(BASE_DIR)/incallui/calllocation/impl/ReverseGeocodeTask.java \ |
| 31 | $(BASE_DIR)/incallui/calllocation/impl/TrafficStatsTags.java \ |
| 32 | $(BASE_DIR)/incallui/maps/impl/MapsImpl.java \ |
| 33 | $(BASE_DIR)/incallui/maps/impl/MapsModule.java \ |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 34 | $(BASE_DIR)/incallui/maps/impl/StaticMapFragment.java \ |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 35 | |
Paul Duffin | 922b108 | 2017-05-05 15:05:47 +0100 | [diff] [blame] | 36 | # Exclude testing only class, not used anywhere here |
| 37 | EXCLUDE_FILES += \ |
| 38 | $(BASE_DIR)/contacts/common/format/testing/SpannedTestUtils.java |
| 39 | |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 40 | # Exclude build variants for now |
| 41 | EXCLUDE_FILES += \ |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 42 | $(BASE_DIR)/dialer/constants/googledialer/ConstantsImpl.java \ |
| 43 | $(BASE_DIR)/dialer/binary/google/GoogleStubDialerRootComponent.java \ |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 44 | $(BASE_DIR)/dialer/binary/google/GoogleStubDialerApplication.java \ |
| 45 | |
| 46 | EXCLUDE_RESOURCE_DIRECTORIES := \ |
| 47 | java/com/android/incallui/maps/impl/res \ |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 48 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 49 | # All Dialers resources. |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 50 | RES_DIRS := $(call all-subdir-named-dirs,res,.) |
| 51 | RES_DIRS := $(filter-out $(EXCLUDE_RESOURCE_DIRECTORIES),$(RES_DIRS)) |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 52 | |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 53 | EXCLUDE_MANIFESTS := \ |
| 54 | $(BASE_DIR)/dialer/binary/aosp/testing/AndroidManifest.xml \ |
| 55 | $(BASE_DIR)/dialer/binary/google/AndroidManifest.xml \ |
| 56 | $(BASE_DIR)/incallui/calllocation/impl/AndroidManifest.xml \ |
| 57 | $(BASE_DIR)/incallui/maps/impl/AndroidManifest.xml \ |
Ta-wei Yen | 90a13e9 | 2016-01-11 13:00:53 -0800 | [diff] [blame] | 58 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 59 | # Dialer manifest files to merge. |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 60 | DIALER_MANIFEST_FILES := $(call all-named-files-under,AndroidManifest.xml,.) |
| 61 | DIALER_MANIFEST_FILES := $(filter-out $(EXCLUDE_MANIFESTS),$(DIALER_MANIFEST_FILES)) |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 62 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 63 | # Merge all manifest files. |
| 64 | LOCAL_FULL_LIBS_MANIFEST_FILES := \ |
| 65 | $(addprefix $(LOCAL_PATH)/, $(DIALER_MANIFEST_FILES)) |
Eric Erfanian | b116167 | 2017-08-16 16:33:47 -0700 | [diff] [blame] | 66 | |
sail | 3bcea98 | 2017-09-03 13:57:22 -0700 | [diff] [blame] | 67 | LOCAL_SRC_FILES := $(call all-java-files-under, $(BASE_DIR)) |
| 68 | LOCAL_SRC_FILES += $(call all-proto-files-under, $(BASE_DIR)) |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 69 | LOCAL_SRC_FILES := $(filter-out $(EXCLUDE_FILES),$(LOCAL_SRC_FILES)) |
Eric Erfanian | b116167 | 2017-08-16 16:33:47 -0700 | [diff] [blame] | 70 | |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 71 | LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH) |
| 72 | |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 73 | LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(RES_DIRS)) |
| 74 | |
| 75 | EXCLUDE_EXTRA_PACKAGES := \ |
| 76 | com.android.dialer.binary.aosp.testing \ |
| 77 | com.android.dialer.binary.google \ |
| 78 | com.android.incallui.calllocation.impl \ |
| 79 | com.android.incallui.maps.impl \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 80 | |
| 81 | # We specify each package explicitly to glob resource files. |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 82 | # find . -type f -name "AndroidManifest.xml" | uniq | sort | cut -c 8- | rev | cut -c 21- | rev | sed 's/\//./g' | sed 's/$/ \\/' |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 83 | LOCAL_AAPT_FLAGS := \ |
sail | 3bcea98 | 2017-09-03 13:57:22 -0700 | [diff] [blame] | 84 | com.android.bubble \ |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 85 | com.android.contacts.common \ |
| 86 | com.android.dialer.about \ |
| 87 | com.android.dialer.app \ |
| 88 | com.android.dialer.app.manifests.activities \ |
| 89 | com.android.dialer.app.voicemail.error \ |
Eric Erfanian | 30b9734 | 2017-10-17 15:43:46 -0700 | [diff] [blame] | 90 | com.android.dialer.assisteddialing.ui \ |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 91 | com.android.dialer.backup \ |
| 92 | com.android.dialer.binary.aosp.testing \ |
| 93 | com.android.dialer.binary.google \ |
| 94 | com.android.dialer.blocking \ |
| 95 | com.android.dialer.callcomposer \ |
| 96 | com.android.dialer.callcomposer.camera \ |
| 97 | com.android.dialer.callcomposer.camera.camerafocus \ |
| 98 | com.android.dialer.callcomposer.cameraui \ |
| 99 | com.android.dialer.calldetails \ |
| 100 | com.android.dialer.calllog.database \ |
| 101 | com.android.dialer.calllog.ui \ |
Eric Erfanian | 30b9734 | 2017-10-17 15:43:46 -0700 | [diff] [blame] | 102 | com.android.dialer.calllog.ui.menu \ |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 103 | com.android.dialer.calllogutils \ |
Eric Erfanian | 30b9734 | 2017-10-17 15:43:46 -0700 | [diff] [blame] | 104 | com.android.dialer.clipboard \ |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 105 | com.android.dialer.common \ |
| 106 | com.android.dialer.configprovider \ |
| 107 | com.android.dialer.contactactions \ |
| 108 | com.android.dialer.contactphoto \ |
| 109 | com.android.dialer.contactsfragment \ |
| 110 | com.android.dialer.databasepopulator \ |
| 111 | com.android.dialer.dialpadview \ |
| 112 | com.android.dialer.enrichedcall.simulator \ |
| 113 | com.android.dialer.interactions \ |
| 114 | com.android.dialer.lettertile \ |
| 115 | com.android.dialer.location \ |
| 116 | com.android.dialer.main.impl \ |
| 117 | com.android.dialer.notification \ |
| 118 | com.android.dialer.oem \ |
| 119 | com.android.dialer.phonenumberutil \ |
| 120 | com.android.dialer.postcall \ |
| 121 | com.android.dialer.searchfragment.common \ |
| 122 | com.android.dialer.searchfragment.cp2 \ |
| 123 | com.android.dialer.searchfragment.list \ |
| 124 | com.android.dialer.searchfragment.nearbyplaces \ |
| 125 | com.android.dialer.searchfragment.remote \ |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 126 | com.android.dialer.shortcuts \ |
| 127 | com.android.dialer.simulator.impl \ |
| 128 | com.android.dialer.speeddial \ |
| 129 | com.android.dialer.theme \ |
| 130 | com.android.dialer.util \ |
| 131 | com.android.dialer.voicemail.listui \ |
| 132 | com.android.dialer.voicemailstatus \ |
| 133 | com.android.dialer.widget \ |
| 134 | com.android.incallui \ |
| 135 | com.android.incallui.answer.impl.affordance \ |
| 136 | com.android.incallui.answer.impl \ |
| 137 | com.android.incallui.answer.impl.answermethod \ |
| 138 | com.android.incallui.answer.impl.hint \ |
| 139 | com.android.incallui.audioroute \ |
| 140 | com.android.incallui.autoresizetext \ |
| 141 | com.android.incallui.calllocation.impl \ |
| 142 | com.android.incallui.callpending \ |
| 143 | com.android.incallui.commontheme \ |
| 144 | com.android.incallui.contactgrid \ |
| 145 | com.android.incallui.disconnectdialog \ |
| 146 | com.android.incallui.hold \ |
| 147 | com.android.incallui.incall.impl \ |
| 148 | com.android.incallui.maps.impl \ |
| 149 | com.android.incallui.sessiondata \ |
| 150 | com.android.incallui.spam \ |
| 151 | com.android.incallui.speakerbuttonlogic \ |
| 152 | com.android.incallui.telecomeventui \ |
| 153 | com.android.incallui.video.impl \ |
| 154 | com.android.incallui.video.protocol \ |
Eric Erfanian | 938468d | 2017-10-24 14:05:52 -0700 | [diff] [blame] | 155 | com.android.newbubble \ |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 156 | com.android.voicemail \ |
| 157 | com.android.voicemail.impl \ |
| 158 | com.android.voicemail.impl.configui \ |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 159 | |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 160 | LOCAL_AAPT_FLAGS := $(filter-out $(EXCLUDE_EXTRA_PACKAGES),$(LOCAL_AAPT_FLAGS)) |
| 161 | LOCAL_AAPT_FLAGS := $(addprefix --extra-packages , $(LOCAL_AAPT_FLAGS)) |
| 162 | LOCAL_AAPT_FLAGS += \ |
| 163 | --auto-add-overlay \ |
| 164 | --extra-packages me.leolin.shortcutbadger \ |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 165 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 166 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 167 | android-common \ |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 168 | android-support-dynamic-animation \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 169 | com.android.vcard \ |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 170 | dialer-commons-io-target \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 171 | dialer-dagger2-target \ |
| 172 | dialer-disklrucache-target \ |
| 173 | dialer-gifdecoder-target \ |
| 174 | dialer-glide-target \ |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 175 | dialer-grpc-all-target \ |
| 176 | dialer-grpc-context-target \ |
| 177 | dialer-grpc-core-target \ |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 178 | dialer-grpc-okhttp-target \ |
| 179 | dialer-grpc-protobuf-lite-target \ |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 180 | dialer-grpc-stub-target \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 181 | dialer-javax-annotation-api-target \ |
| 182 | dialer-javax-inject-target \ |
| 183 | dialer-libshortcutbadger-target \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 184 | dialer-mime4j-core-target \ |
| 185 | dialer-mime4j-dom-target \ |
Eric Erfanian | c4bd4e3 | 2017-09-05 10:53:21 -0700 | [diff] [blame] | 186 | guava \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 187 | jsr305 \ |
Eric Erfanian | c4bd4e3 | 2017-09-05 10:53:21 -0700 | [diff] [blame] | 188 | libbackup \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 189 | libphonenumber \ |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 190 | volley \ |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 191 | |
Alan Viverette | b5870be | 2017-04-26 11:15:10 -0400 | [diff] [blame] | 192 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 193 | android-support-core-ui \ |
Alan Viverette | b5870be | 2017-04-26 11:15:10 -0400 | [diff] [blame] | 194 | android-support-design \ |
| 195 | android-support-transition \ |
| 196 | android-support-v13 \ |
| 197 | android-support-v4 \ |
| 198 | android-support-v7-appcompat \ |
| 199 | android-support-v7-cardview \ |
| 200 | android-support-v7-recyclerview \ |
| 201 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 202 | LOCAL_JAVA_LIBRARIES := \ |
Roland Levillain | 05d6361 | 2017-08-24 14:41:12 +0100 | [diff] [blame] | 203 | dialer-auto-value-target \ |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 204 | org.apache.http.legacy \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 205 | |
Roland Levillain | 05d6361 | 2017-08-24 14:41:12 +0100 | [diff] [blame] | 206 | LOCAL_ANNOTATION_PROCESSORS := \ |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 207 | dialer-auto-value \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 208 | dialer-dagger2 \ |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 209 | dialer-dagger2-compiler \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 210 | dialer-dagger2-producers \ |
| 211 | dialer-guava \ |
| 212 | dialer-javax-annotation-api \ |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 213 | dialer-javax-inject \ |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 214 | |
Roland Levillain | 05d6361 | 2017-08-24 14:41:12 +0100 | [diff] [blame] | 215 | LOCAL_ANNOTATION_PROCESSOR_CLASSES := \ |
| 216 | com.google.auto.value.processor.AutoValueProcessor,dagger.internal.codegen.ComponentProcessor |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 217 | |
Eric Erfanian | ea7890c | 2017-06-19 12:40:59 -0700 | [diff] [blame] | 218 | |
| 219 | # Begin Bug: 37077388 |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 220 | LOCAL_DX_FLAGS := --multi-dex |
Eric Erfanian | ea7890c | 2017-06-19 12:40:59 -0700 | [diff] [blame] | 221 | LOCAL_JACK_FLAGS := --multi-dex native |
| 222 | |
| 223 | LOCAL_PROGUARD_ENABLED := disabled |
| 224 | ifdef LOCAL_JACK_ENABLED |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 225 | |
| 226 | |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 227 | # Proguard includes |
sail | 3bcea98 | 2017-09-03 13:57:22 -0700 | [diff] [blame] | 228 | LOCAL_PROGUARD_FLAG_FILES := $(call all-named-files-under,proguard.*flags,$(BASE_DIR)) |
Colin Cross | f939e09 | 2017-04-05 22:13:40 -0700 | [diff] [blame] | 229 | LOCAL_PROGUARD_ENABLED := custom |
| 230 | |
Colin Cross | f939e09 | 2017-04-05 22:13:40 -0700 | [diff] [blame] | 231 | LOCAL_PROGUARD_ENABLED += optimization |
| 232 | endif |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 233 | |
Eric Erfanian | ea7890c | 2017-06-19 12:40:59 -0700 | [diff] [blame] | 234 | # End Bug: 37077388 |
| 235 | |
Ta-wei Yen | 6640e55 | 2017-04-21 15:33:24 -0700 | [diff] [blame] | 236 | LOCAL_SDK_VERSION := system_current |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 237 | LOCAL_MODULE_TAGS := optional |
| 238 | LOCAL_PACKAGE_NAME := Dialer |
| 239 | LOCAL_CERTIFICATE := shared |
| 240 | LOCAL_PRIVILEGED_MODULE := true |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 241 | LOCAL_USE_AAPT2 := true |
| 242 | |
| 243 | # b/37483961 - Jack Not Compiling Dagger Class Properly |
| 244 | LOCAL_JACK_ENABLED := javac_frontend |
| 245 | |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 246 | include $(BUILD_PACKAGE) |
| 247 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 248 | # Cleanup local state |
| 249 | BASE_DIR := |
Eric Erfanian | d5e47f6 | 2017-03-15 14:41:07 -0700 | [diff] [blame] | 250 | EXCLUDE_FILES := |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 251 | RES_DIRS := |
| 252 | DIALER_MANIFEST_FILES := |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 253 | EXCLUDE_MANIFESTS := |
| 254 | EXCLUDE_EXTRA_PACKAGES := |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 255 | |
| 256 | # Create references to prebuilt libraries. |
| 257 | include $(CLEAR_VARS) |
| 258 | |
| 259 | LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 260 | dialer-auto-value:../../../prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.3/auto-value-1.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 261 | dialer-dagger2-compiler:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.7/dagger-compiler-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 262 | dialer-dagger2:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 263 | dialer-dagger2-producers:../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger-producers/2.7/dagger-producers-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 264 | dialer-grpc-all:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 265 | dialer-grpc-core:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 266 | dialer-grpc-okhttp:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 267 | dialer-grpc-protobuf-lite:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 268 | dialer-grpc-stub:../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 269 | dialer-guava:../../../prebuilts/tools/common/m2/repository/com/google/guava/guava/20.0/guava-20.0$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 270 | 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) \ |
| 271 | 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] | 272 | |
Roland Levillain | 05d6361 | 2017-08-24 14:41:12 +0100 | [diff] [blame] | 273 | include $(BUILD_HOST_PREBUILT) |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 274 | |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 275 | # Enumerate target prebuilts to avoid linker warnings like |
| 276 | # Dialer (java:sdk) should not link to dialer-guava (java:platform) |
| 277 | include $(CLEAR_VARS) |
| 278 | |
| 279 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 280 | LOCAL_MODULE := dialer-dagger2-target |
| 281 | LOCAL_SDK_VERSION := current |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 282 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/dagger/dagger/2.7/dagger-2.7$(COMMON_JAVA_PACKAGE_SUFFIX) |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 283 | LOCAL_UNINSTALLABLE_MODULE := true |
| 284 | |
| 285 | include $(BUILD_PREBUILT) |
| 286 | |
| 287 | include $(CLEAR_VARS) |
| 288 | |
| 289 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 290 | LOCAL_MODULE := dialer-disklrucache-target |
| 291 | LOCAL_SDK_VERSION := current |
Lujiang Xue | c0f306f | 2017-05-25 09:10:58 -0700 | [diff] [blame] | 292 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 293 | LOCAL_UNINSTALLABLE_MODULE := true |
| 294 | |
| 295 | include $(BUILD_PREBUILT) |
| 296 | |
| 297 | include $(CLEAR_VARS) |
| 298 | |
| 299 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 300 | LOCAL_MODULE := dialer-gifdecoder-target |
| 301 | LOCAL_SDK_VERSION := current |
Lujiang Xue | c0f306f | 2017-05-25 09:10:58 -0700 | [diff] [blame] | 302 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 303 | LOCAL_UNINSTALLABLE_MODULE := true |
| 304 | |
| 305 | include $(BUILD_PREBUILT) |
| 306 | |
| 307 | include $(CLEAR_VARS) |
| 308 | |
| 309 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 310 | LOCAL_MODULE := dialer-glide-target |
| 311 | LOCAL_SDK_VERSION := current |
Lujiang Xue | c0f306f | 2017-05-25 09:10:58 -0700 | [diff] [blame] | 312 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
Eric Erfanian | 9050823 | 2017-03-24 09:31:16 -0700 | [diff] [blame] | 313 | LOCAL_UNINSTALLABLE_MODULE := true |
| 314 | |
| 315 | include $(BUILD_PREBUILT) |
| 316 | |
| 317 | include $(CLEAR_VARS) |
| 318 | |
| 319 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 320 | LOCAL_MODULE := dialer-javax-annotation-api-target |
| 321 | LOCAL_SDK_VERSION := current |
| 322 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 323 | LOCAL_UNINSTALLABLE_MODULE := true |
| 324 | |
| 325 | include $(BUILD_PREBUILT) |
| 326 | |
| 327 | include $(CLEAR_VARS) |
| 328 | |
| 329 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 330 | LOCAL_MODULE := dialer-libshortcutbadger-target |
| 331 | LOCAL_SDK_VERSION := current |
| 332 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/me/leolin/ShortcutBadger/1.1.13/ShortcutBadger-1.1.13$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 333 | LOCAL_UNINSTALLABLE_MODULE := true |
| 334 | |
| 335 | include $(BUILD_PREBUILT) |
| 336 | |
| 337 | include $(CLEAR_VARS) |
| 338 | |
| 339 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 340 | LOCAL_MODULE := dialer-javax-inject-target |
| 341 | LOCAL_SDK_VERSION := current |
| 342 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/javax.inject-1$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 343 | LOCAL_UNINSTALLABLE_MODULE := true |
| 344 | |
| 345 | include $(BUILD_PREBUILT) |
| 346 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 347 | include $(CLEAR_VARS) |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 348 | |
Eric Erfanian | cdb1edf | 2017-03-29 10:20:40 -0700 | [diff] [blame] | 349 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 350 | LOCAL_MODULE := dialer-commons-io-target |
| 351 | LOCAL_SDK_VERSION := current |
| 352 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/commons-io/commons-io/2.4/commons-io-2.4$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 353 | LOCAL_UNINSTALLABLE_MODULE := true |
| 354 | |
| 355 | include $(BUILD_PREBUILT) |
| 356 | |
| 357 | include $(CLEAR_VARS) |
Eric Erfanian | 8369df0 | 2017-05-03 10:27:13 -0700 | [diff] [blame] | 358 | |
| 359 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 360 | LOCAL_MODULE := dialer-mime4j-core-target |
| 361 | LOCAL_SDK_VERSION := current |
| 362 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/org/apache/james/apache-mime4j-core/0.7.2/apache-mime4j-core-0.7.2$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 363 | LOCAL_UNINSTALLABLE_MODULE := true |
| 364 | |
| 365 | include $(BUILD_PREBUILT) |
| 366 | |
| 367 | include $(CLEAR_VARS) |
| 368 | |
| 369 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 370 | LOCAL_MODULE := dialer-mime4j-dom-target |
| 371 | LOCAL_SDK_VERSION := current |
| 372 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/org/apache/james/apache-mime4j-dom/0.7.2/apache-mime4j-dom-0.7.2$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 373 | LOCAL_UNINSTALLABLE_MODULE := true |
| 374 | |
| 375 | include $(BUILD_PREBUILT) |
| 376 | |
Ta-wei Yen | 6af9c02 | 2017-05-25 14:57:51 -0700 | [diff] [blame] | 377 | include $(CLEAR_VARS) |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame] | 378 | |
| 379 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 380 | LOCAL_MODULE := dialer-grpc-core-target |
| 381 | LOCAL_SDK_VERSION := current |
| 382 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-core/1.0.3/grpc-core-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 383 | LOCAL_UNINSTALLABLE_MODULE := true |
| 384 | |
| 385 | include $(BUILD_PREBUILT) |
| 386 | |
| 387 | include $(CLEAR_VARS) |
| 388 | |
| 389 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 390 | LOCAL_MODULE := dialer-grpc-okhttp-target |
| 391 | LOCAL_SDK_VERSION := current |
| 392 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-okhttp/1.0.3/grpc-okhttp-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 393 | LOCAL_UNINSTALLABLE_MODULE := true |
| 394 | |
| 395 | include $(BUILD_PREBUILT) |
| 396 | |
| 397 | include $(CLEAR_VARS) |
| 398 | |
| 399 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 400 | LOCAL_MODULE := dialer-grpc-protobuf-lite-target |
| 401 | LOCAL_SDK_VERSION := current |
| 402 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-protobuf-lite/1.0.3/grpc-protobuf-lite-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 403 | LOCAL_UNINSTALLABLE_MODULE := true |
| 404 | |
| 405 | include $(BUILD_PREBUILT) |
| 406 | |
| 407 | include $(CLEAR_VARS) |
| 408 | |
| 409 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 410 | LOCAL_MODULE := dialer-grpc-stub-target |
| 411 | LOCAL_SDK_VERSION := current |
| 412 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-stub/1.0.3/grpc-stub-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 413 | LOCAL_UNINSTALLABLE_MODULE := true |
| 414 | |
| 415 | include $(BUILD_PREBUILT) |
| 416 | |
| 417 | include $(CLEAR_VARS) |
| 418 | |
| 419 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 420 | LOCAL_MODULE := dialer-grpc-all-target |
| 421 | LOCAL_SDK_VERSION := current |
| 422 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-all/1.0.3/grpc-all-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 423 | LOCAL_UNINSTALLABLE_MODULE := true |
| 424 | |
| 425 | include $(BUILD_PREBUILT) |
| 426 | |
| 427 | include $(CLEAR_VARS) |
Eric Erfanian | ea7890c | 2017-06-19 12:40:59 -0700 | [diff] [blame] | 428 | |
Eric Erfanian | 842a977 | 2017-06-22 09:39:08 -0700 | [diff] [blame] | 429 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 430 | LOCAL_MODULE := dialer-grpc-context-target |
| 431 | LOCAL_SDK_VERSION := current |
| 432 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/io/grpc/grpc-context/1.0.3/grpc-context-1.0.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 433 | LOCAL_UNINSTALLABLE_MODULE := true |
| 434 | |
| 435 | include $(BUILD_PREBUILT) |
| 436 | |
Eric Erfanian | fc0eb8c | 2017-08-31 06:57:16 -0700 | [diff] [blame] | 437 | include $(CLEAR_VARS) |
Roland Levillain | 05d6361 | 2017-08-24 14:41:12 +0100 | [diff] [blame] | 438 | |
| 439 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 440 | LOCAL_MODULE := dialer-auto-value-target |
| 441 | LOCAL_SDK_VERSION := current |
| 442 | LOCAL_SRC_FILES := ../../../prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.3/auto-value-1.3$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 443 | LOCAL_UNINSTALLABLE_MODULE := true |
| 444 | |
| 445 | include $(BUILD_PREBUILT) |
| 446 | |
| 447 | include $(CLEAR_VARS) |