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


-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to