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

Commit d2e54d23 authored by Colin Cross's avatar Colin Cross
Browse files

Fix dex_preopt with profile on a soong module

The oreo merge to AOSP master added a new variable that must
be set when dex preopting a java module with a profile.

Test: m checkbuild
Change-Id: Ib917761ea4fea481e32f3fb663a18b882a13f4a1
parent 3277ba34
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -41,9 +41,13 @@ ifdef LOCAL_SOONG_DEX_JAR
    $(eval $(call copy-one-file,$(LOCAL_SOONG_DEX_JAR),$(common_javalib.jar)))
    $(eval $(call add-dependency,$(common_javalib.jar),$(full_classes_jar) $(full_classes_header_jar)))

    dex_preopt_profile_src_file := $(common_javalib.jar)

    # defines built_odex along with rule to install odex
    include $(BUILD_SYSTEM)/dex_preopt_odex_install.mk

    dex_preopt_profile_src_file :=

    ifdef LOCAL_DEX_PREOPT
      ifneq ($(dexpreopt_boot_jar_module),) # boot jar
        # boot jar's rules are defined in dex_preopt.mk