Hello,
I am working on the project, which is build as part of whole AOSP.
I have noticed that many levels of our build files repeat same compiler flags, multilib config, they are all vendor etc.
So I tried to create sth like:
cc_defaults {
name: "product_defaults",
compile_multilib: "64",
cflags: ["-fexceptions", "-Wall", "-Wextra"],
vendor: true,
}
optional_subdirs = ["*"]
but I am not able to references it out of the top level projects:
error: vendor/product/submodule/Android.bp:14:1: "target_library" depends on undefined module "product_defaults"
Is it possible to share common configuration using cc_defaults module outside single Android.bp? And if not what would be the best equivalent?
Best Regards,
Krzysztof Wesolowski