Export Soong install rules to Make
Previously Soong's install rules have been disabled when embedded in Make (ctx.Config().KatiEnabled() == true). The primary blocker for moving installation into Soong has been the `required` proeprty, which is too vague to be easily handled in Soong. Keeping installation in Make has resulted in two host bin directories, the Make-owned directory (e.g. out/host/linux-x86/bin), and the Soong-owned directory (e.g. out/soong/host/linux-x86/bin). The lack of knowledge in Soong about the final, Make-owned installation location makes it hard to support NOTICE files entirely in Soong. This patch begins to solve this problem by supporting the creation of the installation rules into Soong, but rather than writing the rules to the ninja file it writes them to a Makefile and lets Kati convert them to ninja. This allows Kati to inject extra dependencies to handle the `required` property. Converting all modules to create their installation rules in Soong would be too complex, so only modules that return true from InstallBypassMake will use the Soong installation rules. This is currently only set for robolectric tests. Bug: 204136549 Test: m checkbuild Change-Id: I28af9fa7fadece8ea1f98f5efd140c823751cae7
Loading
Please register or sign in to comment