aboutsummaryrefslogtreecommitdiff
path: root/apex/apex_singleton.go
Commit message (Collapse)AuthorAgeFilesLines
* Convert ModuleProvder to generic providers APIColin Cross2023-12-141-1/+1
| | | | | | | | | Convert all of the callers of ModuleProvider/ModuleHasProvider to use the type-safe android.SingletonModuleProvider API. Bug: 316410648 Test: builds Change-Id: I6f11638546b64749e451cebbf33140248dc1d193
* Parallelize singleton executionLaMont Jones2023-05-191-1/+1
| | | | | | Bug: 281536768 Test: manual, presubmits Change-Id: I57fdc76ba6b277e88e196b506af87127a530fd37
* Add allowed-deps testsJooyung Han2023-04-271-1/+5
| | | | | | | | | | | | These tests capture - track updatable apexes - do not track apex-only modules - track transitive deps - track external deps (with mark) Bug: 274041915 Test: m nothing Change-Id: I629015f5aa4a1a7627d0ba6d92fd42bb99c96287
* Improve documentation around go/allowed-deps-errorPedro Loureiro2023-02-071-5/+5
| | | | | Bug: 264349293 Change-Id: I64e95938e53fb26c104e0daece4939f97744a344
* Merge "Update error message for new policy." am: bf49705608 am: 775f9e37c7Mathew Inwood2021-08-041-2/+9
|\ | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1784430 Change-Id: Ib4c443c1eae2dc7f840566455b573f255575f875
| * Update error message for new policy.Mathew Inwood2021-08-031-2/+9
| | | | | | | | | | | | | | | | | | A new presubmit hook enforces that required information is present in any CL that adds new dependencies to allowed_deps.txt. Test: m Bug: 195303213 Change-Id: I1fb932a52f64f9cbf0d12ead75ffd3d9c2a5e942
* | Merge changes from topic "move_allowed_deps_txt" am: 2b077baa5e am: ↵satayev2021-03-221-17/+27
|\| | | | | | | | | | | | | | | 0ee372ad6f am: 3c5d96925f Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1645088 Change-Id: I568df8371fb3eab090d417469c9d78a27be9d527
| * Treat allowed_deps.txt source file as optional.Artur Satayev2021-03-181-17/+27
| | | | | | | | | | | | | | | | | | Not all branches have packages/common/module, which breaks the build for them. Bug: 179234385 Test: removed allowed_deps.txt && m apex-allowed-deps-check Change-Id: I38f47c7200e1afbd899e29843d0214bef826fcf9
| * Move allowed_deps.txt to packages/modules/common.Artur Satayev2021-03-171-3/+3
| | | | | | | | | | | | | | Bug: 179234385 Test: run update-apex-allowed-deps.sh locally Change-Id: I8e8864468b87342c688d001bc5f6e6f8416863ed Merged-In: I8e8864468b87342c688d001bc5f6e6f8416863ed
| * Add PHONY for apex-allowed-deps check.Artur Satayev2020-11-041-0/+2
| | | | | | | | | | | | | | | | Bug: 149622332 Test: m apex-allowed-deps-check Change-Id: I5848779b4ad04dd4c95e2667f7f62dd2949ac95e Merged-In: I5848779b4ad04dd4c95e2667f7f62dd2949ac95e (cherry picked from commit 01aa11e833807ef55ab5b2322b6538cb3da2e0a4)
* | Move allowed_deps.txt to packages/modules/common.Artur Satayev2021-03-161-3/+3
| | | | | | | | | | | | | | | | Bug: 179234385 Test: run update-apex-allowed-deps.sh locally Change-Id: I8e8864468b87342c688d001bc5f6e6f8416863ed Merged-In: I8e8864468b87342c688d001bc5f6e6f8416863ed (cherry picked from commit 732d6264210513b971205b5c9f1b2f49b9cafdf3)
* | Merge "Remove global state from apex modules" am: 43159bd1b7 am: 21bb1d491c ↵Colin Cross2020-10-071-2/+5
|\| | | | | | | | | | | | | | | am: 2c76247f51 am: 393b394b85 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1428815 Change-Id: I264afeceec4bdbc344ba812b1c5fd88fed043214
| * Remove global state from apex modulesColin Cross2020-10-061-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | A global variant was used to store the global mapping between modules and APEXes. Replace it with storing pointers to APEX contents inside each module so that they can query the contents of any APEXes they belong to. Bug: 146393795 Test: all Soong tests Test: single line change to build.ninja host install dependency ordering Test: no Android-${TARGET_PRODUCT}.mk, make_vars-${TARGET_PRODUCT}.mk or late-${TARGET_PRODUCT}.mk Change-Id: Id2d7b73ea27f8c3b41d30820bdd86b65c539bfa4
| * Track allowed transitive deps in any updatable module.Artur Satayev2020-09-301-17/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of tracking per module and per module variant, track allowed list of dependecies for all modules combined. This avoids issues with different products and different downstream branches having different build graphs. To compare allowed_deps.txt vs head, run: :; m -j out/soong/apex/depsinfo/new-allowed-deps.txt.check To update source allowed_deps.txt, run: :; build/soong/scripts/update-apex-allowed-deps.sh Bug: 149622332 Test: m Change-Id: Ic518fbd9ebfe1b46aaf9a58df731780a7e5a676b Merged-In: Ic518fbd9ebfe1b46aaf9a58df731780a7e5a676b (cherry picked from commit 453555083b86ff35d874df08f68bf6252fc12fd1) (cherry picked from commit e5207cd9a62f0cf521e95257720529392134a603)
| * Revert "Track allowed transitive deps in any updatable module."satayev2020-07-231-57/+17
| | | | | | | | | | | | | | | | | | | | | | Revert submission 1312796-apex-allowed-deps Reason for revert: b/161974327 Reverted Changes: I52a4be72e:Add a check for apex/allowed_deps.txt to droidcore... I56771ba3f:Track allowed transitive deps in any updatable mod... Change-Id: I3be0a1b0dd824dafeadb485daca8e58b81a3ec5c
| * Track allowed transitive deps in any updatable module.Artur Satayev2020-07-201-17/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of tracking per module and per module variant, track allowed list of dependecies for all modules combined. This avoids issues with different products and different downstream branches having different build graphs. To compare allowed_deps.txt vs head, run: :; m -j out/soong/apex/depsinfo/new-allowed-deps.txt.check To update source allowed_deps.txt, run: :; build/soong/scripts/update-apex-allowed-deps.sh Bug: 149622332 Test: m Change-Id: I56771ba3fea748de8e9c58c80758670572f7af53 Merged-In: Ic518fbd9ebfe1b46aaf9a58df731780a7e5a676b
* | Add PHONY for apex-allowed-deps check.Artur Satayev2020-08-031-0/+2
| | | | | | | | | | | | Bug: 149622332 Test: m apex-allowed-deps-check Change-Id: I5848779b4ad04dd4c95e2667f7f62dd2949ac95e
* | Revert^2 Track allowed transitive deps in any updatable modules.Artur Satayev2020-07-031-15/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of tracking per module and per module variant, track allowed list of dependecies for all modules combined. This avoids issues with different products and different downstream branches having different build graphs. Revert submission 11972727-revert-11883270-apex-allowed-deps-FUBLDERIYT Reason for revert: revert^2 with a fix. Reverted Changes: Iefd8a8b21:Revert "Track allowed transitive deps in any updat... If416513fb:Revert "Add a check for apex/allowed_deps.txt to d... Bug: 149622332 Test: m (with different products) Change-Id: Ic518fbd9ebfe1b46aaf9a58df731780a7e5a676b
* | Revert "Track allowed transitive deps in any updatable module."Artur Satayev2020-06-241-97/+16
| | | | | | | | | | | | | | | | | | | | | | Revert submission 11883270-apex-allowed-deps Reason for revert: b/159762187 broken build Reverted Changes: I56771ba3f:Track allowed transitive deps in any updatable mod... I52a4be72e:Add a check for apex/allowed_deps.txt to droidcore... Change-Id: Iefd8a8b21c4eba6ef8dfcb3aeb5a86b9d8357255
* | Track allowed transitive deps in any updatable module.Artur Satayev2020-06-231-16/+97
|/ | | | | | | | | | | | | To compare allowed_deps.txt vs head, run: :; m -j out/soong/apex/depsinfo/filtered-updatable-flatlists.txt.check To update source allowed_deps.txt, run: :; build/soong/scripts/update-apex-allowed-deps.sh Bug: 149622332 Test: m Change-Id: I56771ba3fea748de8e9c58c80758670572f7af53 (cherry picked from commit 8d6085d38934dc43f17b47c2961727766e87bfa2)
* Generate combined deps-info for all updatable modules.Artur Satayev2020-05-151-0/+65
Introduce a singleton apex rule to merge contents of individual deps-info results into a single output file. Bug: 149622332 Test: m Change-Id: I4ab7e1a3527fead97a81a5a2cb0e1e93a429117c