Move generation of the dexpreopt tool paths into Soong.
The dexpreopt global config is now split into the part that is generated from make (in build/make/core/dex_preopt_config.mk) and the part that is generated from Soong. Since the goal is to generate the dex2oat path from Soong dependencies, the old GlobalConfig.Tools struct is simply repurposed for the Soong generated config, although the intention is to allow more settings to migrate from make to Soong, and hence from GlobalConfig to GlobalSoongConfig. Since the new dexpreopt_soong.config is written from a Soong-created ninja rule, it doesn't need to be rewritten to out/soong/<device>/ like the old make-created config file. Test: m Test: env USE_DEX2OAT_DEBUG=false m (check that out/soong/dexpreopt_soong.config points to dex2oat instead of dex2oatd) Bug: 145934348 Change-Id: Ifd45c4a08e2ec55b86f4a93f0d85bd39cf2cf189
Loading
Please register or sign in to comment