aboutsummaryrefslogtreecommitdiffstats
path: root/android/register.go
Commit message (Collapse)AuthorAgeFilesLines
* Use a minimal set of mutators, module types, and singletons for testsColin Cross2017-03-161-17/+2
| | | | | | | | | | | | Calling android.NewContext() in tests results in a context that contains all the mutators, module types, and singletons, which causes unexpected interactions in unit tests. Create an empty context instead, and add in only the necessary mutators, module types, and singletons. Bug: 36366816 Test: soong tests Change-Id: Ic61262c37e3436b3ad4ccaca18b737021c304be6
* Add support for CMakefile generationFabien Sanglard2017-02-071-0/+1
| | | | | | Test: Manually generated CMakeLists.txt for gui/ui/aapt2. Change-Id: I7dedc300c1e50b8e39bc58091b650c0bbe2c62da
* Only register mutators onceColin Cross2016-10-131-2/+8
| | | | | | | | | | Mutators are registered into a global variable, and then into the context when it is created. Only call registerMutators once so that the same mutator is not listed multiple times in the global variable when multiple contexts are created. Test: go test -v android/soong/android Change-Id: Ie9e3ed09a89b848462b898476cdfb81a90c64bd3
* Control mutator orderColin Cross2016-10-121-0/+2
| | | | | | | | Register mutators inside lambdas that are called in a defined order to correctly order mutators before and after the arch and deps mutators. Test: build.ninja identical Change-Id: Iefe2a3515aee8570e76a6e76925db4cda0e9e822
* Move registration into android packageandroid-n-mr1-preview-2android-n-mr1-preview-1Colin Cross2016-10-121-0/+74
Mutator registration is tightly coupled with the android package, move all registration from the soong package to the android package. Test: build.ninja identical Change-Id: Ie183d0b52cc7431c9e05b231934d189208ef1efe