aboutsummaryrefslogtreecommitdiff
path: root/aconfig/aconfig_declarations.go
Commit message (Collapse)AuthorAgeFilesLines
* Add property Exportable to aconfig_declarationsZi Wang2024-02-071-0/+4
| | | | | | | | | | | | | | | 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 SetAconfigFileMkEntries to androidLaMont Jones2024-01-101-15/+0
| | | | | | | | This will need to be called by some modules handled in android. Bug: 308625757 Test: manual Change-Id: Ic56e8ef3a453c59866aab6d39a21108cf8536b56
* move CollectDependencyAconfigFiles to androidLaMont Jones2023-12-191-64/+1
| | | | | | | | This needs to be called by some modules in android. Bug: 308625757 Test: manual Change-Id: I389fcfd88a3f4bd85a9218fdd4dd66d8a239bb67
* Merge "Properly package aconfig files for product and system_ext partitions" ↵Yu Liu2023-12-191-5/+11
|\ | | | | | | into main
| * Properly package aconfig files for product and system_ext partitionsYu Liu2023-12-181-5/+11
| | | | | | | | | | | | Bug: 311173471 Test: Unit tests Change-Id: Iac60695beb6529139965e4bb24024df6ce278fb2
* | Convert OtherModuleProvider to generic providers APIColin Cross2023-12-141-12/+9
| | | | | | | | | | | | | | | | | | Convert all of the callers of OtherModuleProvider/OtherModuleHasProvider to use the type-safe android.OtherModuleProvider API. Bug: 316410648 Test: builds Change-Id: Id77f514d68761a262d9ea830a601dbed804bbbe5
* | Convert SetProvider to generic providers APIColin Cross2023-12-141-2/+2
|/ | | | | | | | | Convert all of the callers of SetProvider to use the type-safe android.SetProvider API. Bug: 316410648 Test: builds Change-Id: If58f4b5355264ddab2045bc3591a4eac19cd58fc
* Convert NewProvider/NewMutatorProvider to generic providers APIColin Cross2023-12-141-2/+2
| | | | | | | | | Convert all of the callers to NewProvider and NewMutatorProvider to use a generic type parameter instead of an example object. Bug: 316410648 Test: builds Change-Id: Ic9cdafc87336e26730d3fd596df05de0e7267542
* Properly package aconfig files for vendor partitionYu Liu2023-12-141-0/+9
| | | | | | Bug: 311173471 Test: Unit tests Change-Id: Ibb857b69c3f83326a9ff5732e11dd09887e4ba6e
* Support rust modules when packaging aconfig files in apex.Yu Liu2023-12-111-0/+1
| | | | | | | | | | Also remove the code to package aconfig files for transitive dependencies since those files should have already been included in the direct dependencies. Bug: 311173471 Test: Unit tests Change-Id: I25637af9381f71a78b70a8de9894618188c9735d
* Remove ConvertWithBp2build implementationsColin Cross2023-12-081-26/+0
| | | | | | | | | Remove the ConvertWithBp2build implementations from all the module types, along with the related code. Bug: 315353489 Test: m blueprint_tests Change-Id: I212672286686a318893bc7348ddd5a5ec51e77a7
* Add aconfig flag value text file in aconfig_declarations providerJihoon Kang2023-12-071-10/+21
| | | | | | | | | | | | | | | | | | | | | | | 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
* Merge aconfig files per-moduleColin Cross2023-12-071-21/+30
| | | | | | | | | | | Passing the list of all transitive aconfig files to Make causes extra Kati analysis runs when dependencies are changed in Android.bp files. Since Make is going to merge them anyways, merge them per-module and pass a single aconfig file to Make for each module. Fixes: 313698230 Test: m out/target/product/vsoc_x86_64/system/etc/aconfig_flags.pb Change-Id: Ifde4826bc93bc06e40338f72b4cb39eed26ca08d
* Add container property to aconfig_declarations.Yu Liu2023-11-281-3/+53
| | | | | | Bug: 311155208 Test: Unit test Change-Id: I7b187138856d0144203961e82b6dad5e2f8eed9d
* Handle the case where the release value set is a list.Yu Liu2023-10-131-2/+2
| | | | | | | | | Bug: 304814040 Test: CI, unit test, b build build/make/tools/aconfig:aconfig.test.cpp b test build/make/tools/aconfig:AconfigJavaHostTest Change-Id: I9ca939348a063c39e9528f24e788f9757458d30c
* Have ConvertWBp2build use Bp2buildMutatorContextChris Parsons2023-09-201-1/+1
| | | | | | | | | | | | | 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
* Support aconfig_declarations, aconfig_values and aconfig_value_setYu Liu2023-09-091-4/+30
| | | | | | Bug: 297356603 Test: Unit tests Change-Id: I2f797578a35322440db0f281b4d46b6652512e00
* Add missing dependency for cache files on the aconfig filesJoe Onorato2023-08-201-4/+10
| | | | | | Bug: 293899028 Test: manual Change-Id: I6399a2228cbe9a1b8d79383000dd30e43e73c603
* Merge "Support default-permission in aconfig_declarations" into mainZhi Dou2023-08-141-4/+15
|\
| * Support default-permission in aconfig_declarationsZhi Dou2023-08-101-4/+15
| | | | | | | | | | | | | | | | | | | | Aconfig provides new argument, default-permission, for create-cache. When buld aconfig_declarations, aconfig_declarations will read the value from release configuration to pass this value to aconfig. Bug: 294417368 Test: presubmit Change-Id: Id55dab1d757e2366a62449c73e2497cc958c5e78
* | Implement rust_aconfig_libraryVinh Tran2023-08-081-1/+2
|/ | | | | | | rust_aconfig_library generates src/lib.rs and uses it to build library variants (dylib, rlib-rlib_std, and rlib-dylib_std) as of what `rust_library` produces Test: go test Change-Id: I6c4603691d4306c463c2e9521f5c11c30765b1e3
* Pass declarations as separate argumentsZhi Dou2023-07-191-1/+1
| | | | | | | | | 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/+143
Bug: 285303012 Test: for x in next trunk trunk_food trunk_staging ; do lunch aosp_panther-$x-eng ; m nothing ; done Change-Id: I3375f46b3ecbbc516d1bee6ab3f80725fcccde8f