blob: 86b3e21da346a09e43b9162b1c191b9b074f53fa [file] [log] [blame]
Subash Abhinov Kasiviswanathan2745d132019-12-11 16:53:08 -07001cc_library_headers {
2 name: "librmnetctl_headers",
3 export_include_dirs: ["inc"],
4 vendor: true,
5}
6
7cc_defaults {
8 name: "librmnetctl_defaults",
9 cflags: [
10 "-Wall",
11 "-Werror",
12 ],
13 header_libs: ["librmnetctl_headers"],
14 vendor: true,
15}
16
LuK1337c93907e2019-10-27 14:15:01 +010017soong_config_module_type {
18 name: "librmnetctl_defaults_pre_uplink",
19 module_type: "cc_defaults",
20 config_namespace: "DATASERVICES",
21 bool_variables: ["USES_PRE_UPLINK_FEATURES_NETMGRD"],
22 properties: ["cflags"],
23}
24
25librmnetctl_defaults_pre_uplink {
26 name: "librmnetctl_pre_uplink",
27 soong_config_variables: {
28 USES_PRE_UPLINK_FEATURES_NETMGRD: {
29 cflags: ["-DNO_UPLINK_FEATURES"],
30 }
31 }
32}
33
Subash Abhinov Kasiviswanathan2745d132019-12-11 16:53:08 -070034cc_library_shared {
35 name: "librmnetctl",
Han Wangb30e1222018-11-02 13:02:38 +020036 header_libs: ["generated_kernel_headers"],
LuK1337c93907e2019-10-27 14:15:01 +010037 defaults: ["librmnetctl_defaults", "librmnetctl_pre_uplink"],
Subash Abhinov Kasiviswanathan2745d132019-12-11 16:53:08 -070038 srcs: ["src/librmnetctl.c"],
39}
40
41cc_binary {
42 name: "rmnetcli",
43 shared_libs: ["librmnetctl"],
44 defaults: ["librmnetctl_defaults"],
45 srcs: ["cli/rmnetcli.c"],
46}