Subash Abhinov Kasiviswanathan | 2745d13 | 2019-12-11 16:53:08 -0700 | [diff] [blame] | 1 | cc_library_headers { |
| 2 | name: "librmnetctl_headers", |
| 3 | export_include_dirs: ["inc"], |
| 4 | vendor: true, |
| 5 | } |
| 6 | |
| 7 | cc_defaults { |
| 8 | name: "librmnetctl_defaults", |
| 9 | cflags: [ |
| 10 | "-Wall", |
| 11 | "-Werror", |
| 12 | ], |
| 13 | header_libs: ["librmnetctl_headers"], |
| 14 | vendor: true, |
| 15 | } |
| 16 | |
LuK1337 | c93907e | 2019-10-27 14:15:01 +0100 | [diff] [blame^] | 17 | soong_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 | |
| 25 | librmnetctl_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 Kasiviswanathan | 2745d13 | 2019-12-11 16:53:08 -0700 | [diff] [blame] | 34 | cc_library_shared { |
| 35 | name: "librmnetctl", |
Han Wang | b30e122 | 2018-11-02 13:02:38 +0200 | [diff] [blame] | 36 | header_libs: ["generated_kernel_headers"], |
LuK1337 | c93907e | 2019-10-27 14:15:01 +0100 | [diff] [blame^] | 37 | defaults: ["librmnetctl_defaults", "librmnetctl_pre_uplink"], |
Subash Abhinov Kasiviswanathan | 2745d13 | 2019-12-11 16:53:08 -0700 | [diff] [blame] | 38 | srcs: ["src/librmnetctl.c"], |
| 39 | } |
| 40 | |
| 41 | cc_binary { |
| 42 | name: "rmnetcli", |
| 43 | shared_libs: ["librmnetctl"], |
| 44 | defaults: ["librmnetctl_defaults"], |
| 45 | srcs: ["cli/rmnetcli.c"], |
| 46 | } |