summaryrefslogtreecommitdiff
path: root/xml/xml.go
AgeCommit message (Collapse)Author
2023-09-20Have ConvertWBp2build use Bp2buildMutatorContext Chris Parsons
This no-op refactoring facilitates some upcoming functional changes for "bp2build allowlist v2". The work requires that the bp2build conversion mutator be changed from a TopDown mutator to a BottomUp mutator. Refactoring all bp2build-related methods so that they use Bp2buildMutatorContext makes it easier to make this functional change without touching tens of files and multiple projects. Bug: 285631638 Test: m bp2build Change-Id: I3d1ef3064146e959c6f0dc315350fc9764bf2bd2
2023-09-07bp2build: block src == name for prebuilt_* modules Liz Kammer
src == name causes circular dependency errors, instead mark these as unconverted and don't create modules for them. Test: m bp2build and verify boringssl_self_test.zygote64.rc unconverted Change-Id: I5d5fdd7e14830cd685816064cd0377998d07293c
2022-09-22Implement bp2build for prebuilt_etc_xml Alix
Bug: 237039154 Test: xml_conversion_test.go & bp2build Change-Id: I1f2c57b9532138f73041d8fc08feea3f66b2ebbc
2021-03-18Add preparers for xml Paul Duffin
Bug: 181070625 Test: m nothing Change-Id: I150889a025e1c23eebe1e2764b07fdbd2babef49
2020-06-01Soong package structure refactoring Jaewoong Jung
Give prebuilt_etc and sh_binary their own packages and split the gigantic main Android.bp up to small, per-package ones. Test: m nothing, TreeHugger Bug: 156980228 Change-Id: I7b00cd344b9f16861f1ff39edf0029f016b853d0
2019-07-22fix: prebuilt_etc_xml Jooyung Han
Since aosp/872653 and aosp/904233 landed, prebuilt_etc_xml has been broken. aosp/872653: Enable arch variant properties in prebuilt_etc. aosp/904233: Add a prebuilt module type for usr/share. This change fixes 1) pass baseDir "etc" to initialize PrebuiltEtc struct 2) change "multlib" argument to MultilibFirst to reflect aosp/872653 Bug: 138082739 Test: m com.google.vr.platform.xml && see if it is installed in /system/etc Change-Id: I4802107fd8ccf28a1170d7d165700c92df32e341
2019-03-20Replace ctx.ExpandSources with android.PathsForModuleSrc Colin Cross
Move the logic from ctx.ExpandSources into android.PathsForModuleSrc and ctx.ExpandSource into android.PathForModuleSrc, and deprecate them. When combined with the pathDepsMutator this will let all properties that take source paths also take filegroups or genrule outputs, as long as they are tagged with `android:"path"`. Test: All soong tests Change-Id: I01625e76b5da19240e9649bf26a014eeeafcab8f
2019-03-07Annotate paths and deprecate ExtractSource(s)Deps Colin Cross
Add `android:"path"` to all properties that take paths to source files, and remove the calls to ExtractSource(s)Deps, the pathsDepsMutator will add the necessary SourceDepTag dependency. Test: All soong tests Change-Id: I488ba1a5d680aaa50b04fc38acf693e23c6d4d6d
2018-04-28Add prebuilt_etc_xml Jiyong Park
prebuilt_etc_xml installs an xml file to <partition>/etc[/<subdir>] and validates the xml file against the given DTD file before installing it. This change also includes some fixes for prebuilt_etc which is the super module of prebuilt_etc_xml: 1) The module is changed to arch-specific module as the prebuilts are only for devices (installed under the etc dir), but not for hosts. 2) Dependency to android.Prebuilt is removed because android.Prebuilt is intended to be used for the case when a module can exist as prebuilts, source or both. These prebuilt_etc_* modules are prebuilt only. 3) srcs property which accepts a list of source files is changed to src that only accepts single source file, which makes more sense for prebuilts. Bug: 65686190 Test: m -j (xml_test.go) Change-Id: I40484f3f6615b99f6b8d43176db0c40c5bfd838e