blob: 0aff4678adcc86218b875766ad5a21dbbc893e23 [file] [log] [blame]
Mulugeta Engdawef0bb5a2020-05-06 16:49:13 -07001soong_config_module_type {
2 name: "qssi_vs_vendor_cc_base",
3 module_type: "cc_defaults",
4 config_namespace: "qssi_vs_vendor",
5 variables: ["qssi_or_vendor"],
6 properties: ["header_libs",
7 "cflags",
8 "ldflags",
9 "srcs",
10 "shared_libs",
11 "static_libs"
12 ],
13}
14
15soong_config_string_variable {
16 name: "qssi_or_vendor",
17 values: ["qssi", "vendor"],
18}
19
20//================Usage Example===================//
21
22//in your Android.bp file, you must import this file so that your
23//Android.bp domain is aware of the module_type as follows
24
25//soong_config_module_type_import {
26// from: "vendor/qcom/opensource/core-utils/Android.bp",
27// module_types: ["qssi_vs_vendor_cc_base"],
28//}
29
30
31//After importing it, your subsequent modules can use it as follows
32
33//qssi_vs_vendor_cc_base {
34// name: "<your module name>_defaults",
35// soong_config_variables: {
36// qssi_or_vendor: {
37// vendor : {
38// header_libs: ["some header only for vendor"], //can also add all the properties listed in the module type
39// },
40// qssi : {
41// header_libs: ["some header only for qssi"],
42// },
43// },
44// },
45//}