Including some fixes: *Allow record-finalized-flags to take as input the non-api finalized flags list. Debating just adding to the finalized-flags list, but I think having separate intermediate objects will make debugging a lot easier. *Remove unnecessary arg from finalize-non-api-flags. *Make the exception list arg optional, to allow just loading from the path. *Print flags to stdout. Test: Manual using m all_aconfig_declarations (with lunch next)] NOTE: There was some issue getting the env variable. Since this was already going to use the hard-coded path, just went fully to use CP2A to unblock getting the rest of this in on time. Test: Manual using m all_aconfig_declarations (with lunch next)] Bug: 445461092 Flag: build.RELEASE_ACONFIG_FINALIZE_NON_API_FLAGS Change-Id: I14febf12a7177fd340ccc14cc2c48a2ff86eb0c5
41 lines
921 B
Plaintext
41 lines
921 B
Plaintext
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
default_team: "trendy_team_android_core_experiments",
|
|
}
|
|
|
|
rust_defaults {
|
|
name: "finalize-non-api-flags-defaults",
|
|
edition: "2021",
|
|
clippy_lints: "android",
|
|
lints: "android",
|
|
rustlibs: [
|
|
"libaconfig_protos",
|
|
"libanyhow",
|
|
"libclap",
|
|
"libregex",
|
|
],
|
|
}
|
|
|
|
rust_binary_host {
|
|
name: "finalize-non-api-flags",
|
|
defaults: ["finalize-non-api-flags-defaults"],
|
|
crate_root: "src/main.rs",
|
|
srcs: [
|
|
"src/*.rs",
|
|
":non_api_flags_list",
|
|
],
|
|
use_expansive_default_srcs: false,
|
|
}
|
|
|
|
rust_test_host {
|
|
name: "finalize-non-api-flags-test",
|
|
defaults: ["finalize-non-api-flags-defaults"],
|
|
crate_root: "src/main.rs",
|
|
srcs: [
|
|
"src/*.rs",
|
|
"tests/non_api_flags_list.txt",
|
|
],
|
|
use_expansive_default_srcs: false,
|
|
test_suites: ["general-tests"],
|
|
}
|