aboutsummaryrefslogtreecommitdiff
path: root/aconfig/aconfig_declarations_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Add property Exportable to aconfig_declarationsZi Wang2024-02-071-0/+21
| | | | | | | | | | | | | | | Only when aconfig_declarations explicitly set this property true, its flags will be repackaged. If a java_aconfig_library has mode "exported", its corresponding aconfig_declarations must have exportable prop set to true. Test: Added unit tests and CI Bug: 310504781 Ignore-AOSP-First: this change will be cherry picked to aosp Change-Id: Ie9526e3755a6e7d142b377d5dd85a1bc60ffabc5
* move CollectDependencyAconfigFiles to androidLaMont Jones2023-12-191-1/+1
| | | | | | | | This needs to be called by some modules in android. Bug: 308625757 Test: manual Change-Id: I389fcfd88a3f4bd85a9218fdd4dd66d8a239bb67
* 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
* Add aconfig flag value text file in aconfig_declarations providerJihoon Kang2023-12-071-2/+5
| | | | | | | | | | | | | | | | | | | | | | | Alongside with the generated proto file, the aconfig_declaration now also outputs a text file that lists aconfig flags and values of its corresponding proto file, in the format as shown below: ``` my.flag1=true my.flag2=false ... ``` To prevent confusion between the preexisting proto file and the newly introduced text file, the change also renames the variables of the proto file from `intermediatePath` to `intermediateCacheOutputPath` and likewise. The utilization of the generated text file will be done in the child changes. Test: m out/soong/.intermediates/build/make/tools/aconfig/aconfig.test.flags/intermediate.txt && inspect output Bug: 306024510 Change-Id: Iee16ad57bb87e992a477fc96502f79e971d01233
* Add container property to aconfig_declarations.Yu Liu2023-11-281-1/+3
| | | | | | Bug: 311155208 Test: Unit test Change-Id: I7b187138856d0144203961e82b6dad5e2f8eed9d
* Pass declarations as separate argumentsZhi Dou2023-07-191-1/+4
| | | | | | | | | Aconfig take declarations as separate arguments if there are multiple declaration files. Bug: 291926035 Test: build flags Change-Id: Ic0d069184f48ceaf8947acc5b951eecff7c308f9
* Rename device_config --> aconfig and definitions --> declarationsJoe Onorato2023-06-211-0/+42
Bug: 285303012 Test: for x in next trunk trunk_food trunk_staging ; do lunch aosp_panther-$x-eng ; m nothing ; done Change-Id: I3375f46b3ecbbc516d1bee6ab3f80725fcccde8f