Add aconfig storage API deps to codegened lib

Change-Id: I4991c9fccb0a0bab15457883cf20aacb3142c4cf
This commit is contained in:
Ted Bauer
2024-04-23 18:25:26 +00:00
parent a4362b937a
commit f0f18591a5
4 changed files with 123 additions and 0 deletions

View File

@@ -58,6 +58,26 @@ func testCCCodegenModeHelper(t *testing.T, bpMode string, ruleMode string) {
srcs: ["server_configurable_flags.cc"],
}
cc_library {
name: "libbase",
srcs: ["libbase.cc"],
}
cc_library {
name: "liblog",
srcs: ["liblog.cc"],
}
cc_library {
name: "libaconfig_storage_read_api_cc",
srcs: ["libaconfig_storage_read_api_cc.cc"],
}
cc_library {
name: "libaconfig_storage_protos_cc",
srcs: ["libaconfig_storage_protos_cc.cc"],
}
cc_aconfig_library {
name: "my_cc_aconfig_library",
aconfig_declarations: "my_aconfig_declarations",
@@ -100,6 +120,27 @@ func testIncorrectCCCodegenModeHelper(t *testing.T, bpMode string, err string) {
srcs: ["server_configurable_flags.cc"],
}
cc_library {
name: "libbase",
srcs: ["libbase.cc"],
}
cc_library {
name: "liblog",
srcs: ["liblog.cc"],
}
cc_library {
name: "libaconfig_storage_read_api_cc",
srcs: ["libaconfig_storage_read_api_cc.cc"],
}
cc_library {
name: "libaconfig_storage_protos_cc",
srcs: ["libaconfig_storage_protos_cc.cc"],
}
cc_aconfig_library {
name: "my_cc_aconfig_library",
aconfig_declarations: "my_aconfig_declarations",
@@ -152,6 +193,30 @@ func TestAndroidMkCcLibrary(t *testing.T) {
srcs: ["server_configurable_flags.cc"],
vendor_available: true,
}
cc_library {
name: "libbase",
srcs: ["libbase.cc"],
vendor_available: true,
}
cc_library {
name: "liblog",
srcs: ["liblog.cc"],
vendor_available: true,
}
cc_library {
name: "libaconfig_storage_read_api_cc",
srcs: ["libaconfig_storage_read_api_cc.cc"],
vendor_available: true,
}
cc_library {
name: "libaconfig_storage_protos_cc",
srcs: ["libaconfig_storage_protos_cc.cc"],
vendor_available: true,
}
`
result := android.GroupFixturePreparers(
PrepareForTestWithAconfigBuildComponents,