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

Commit 957e09a7 authored by Nicolas Geoffray's avatar Nicolas Geoffray Committed by android-build-merger
Browse files

Merge "For prebuilts, use the built_module for nostripping dexpreopt." am:...

Merge "For prebuilts, use the built_module for nostripping dexpreopt." am: f90b7e19 am: 3a011d4f
am: 8f4f0f43

Change-Id: I99b80d7d33a5a79b3c345a908b9937a11e00c89b
parents d9db756f 8f4f0f43
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -417,11 +417,19 @@ endif # LOCAL_COMPRESSED_MODULE
endif  # ! LOCAL_REPLACE_PREBUILT_APK_INSTALLED

###############################
## Rule to build the odex file
## Rule to build the odex file.
# In case we don't strip the built module, use it, as dexpreopt
# can do optimizations based on whether the built module only
# contains uncompressed dex code.
ifdef LOCAL_DEX_PREOPT
ifeq (nostripping,$(LOCAL_DEX_PREOPT))
$(built_odex) : $(built_module)
	$(call dexpreopt-one-file,$<,$@)
else
$(built_odex) : $(my_prebuilt_src_file)
	$(call dexpreopt-one-file,$<,$@)
endif
endif

###############################
## Install split apks.