Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49eae2fa authored by Nicolas Geoffray's avatar Nicolas Geoffray Committed by android-build-merger
Browse files

Merge "Factor out common code."

am: e3f39cd8

Change-Id: Ia201f0d99369d8a2c878f32d35c3bcbce0167e70
parents 73a7a0eb e3f39cd8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -71,14 +71,13 @@ ifdef LOCAL_STRIP_DEX
  # If we have stripped the final APK, use the original jar generated by soong.
  $(built_odex): $(LOCAL_SOONG_DEX_JAR)
	$(call dexpreopt-one-file,$<,$@)
  $(eval $(call dexpreopt-copy-jar,$(LOCAL_PREBUILT_MODULE_FILE),$(LOCAL_BUILT_MODULE),$(LOCAL_STRIP_DEX)))
else
  # If we haven't stripped, use the final APK for dexpreopt, as this may affect how the dex
  # code is compiled.
  $(built_odex): $(LOCAL_PREBUILT_MODULE_FILE)
	$(call dexpreopt-one-file,$<,$@)
  $(eval $(call dexpreopt-copy-jar,$(LOCAL_PREBUILT_MODULE_FILE),$(LOCAL_BUILT_MODULE),$(LOCAL_STRIP_DEX)))
endif  # LOCAL_STRIP_DEX
  $(eval $(call dexpreopt-copy-jar,$(LOCAL_PREBUILT_MODULE_FILE),$(LOCAL_BUILT_MODULE),$(LOCAL_STRIP_DEX)))
else
  $(eval $(call copy-one-file,$(LOCAL_PREBUILT_MODULE_FILE),$(LOCAL_BUILT_MODULE)))
endif