| package { |
| default_applicable_licenses: ["external_wmediumd_license"], |
| } |
| |
| license { |
| name: "external_wmediumd_license", |
| visibility: [":__subpackages__"], |
| license_kinds: [ |
| "SPDX-license-identifier-GPL-2.0", |
| ], |
| license_text: [ |
| "LICENSE", |
| ], |
| } |
| |
| wmediumd_version = "0.3.1" |
| |
| cc_binary_host { |
| name: "wmediumd_gen_config", |
| srcs: [ |
| "util/wmediumd_gen_config.c", |
| ], |
| static_libs: [ |
| "libconfig", |
| ], |
| visibility: [ |
| "//device/google/cuttlefish/build", |
| ], |
| } |
| |
| cc_binary_host { |
| name: "wmediumd", |
| srcs: [ |
| "wmediumd/*.c", |
| "wmediumd/lib/*.c", |
| ], |
| local_include_dirs: [ |
| "wmediumd/inc", |
| ], |
| cflags: [ |
| "-g", |
| "-Wno-unused-parameter", |
| "-Wno-format-zero-length", |
| "-DCONFIG_LIBNL30", |
| "-DVERSION_STR=\"" + wmediumd_version + "\"", |
| "-Wno-pointer-arith", |
| "-Wno-unused-result", |
| "-Wno-gnu-variable-sized-type-not-at-end", |
| "-Wno-unused-function", |
| ], |
| static_libs: [ |
| "libnl", |
| "libconfig", |
| ], |
| visibility: [ |
| "//device/google/cuttlefish/build", |
| ], |
| stl: "none", |
| static_executable: true, |
| } |
| |
| cc_binary_host { |
| name: "wmediumd_ack_test_client", |
| srcs: [ |
| "tests/wmediumd_ack_test_client.c", |
| ], |
| local_include_dirs: [ |
| "wmediumd/inc", |
| ], |
| visibility: [ |
| "//device/google/cuttlefish/build", |
| ], |
| stl: "none", |
| static_executable: true, |
| } |
| |
| cc_library_headers { |
| name: "wmediumd_headers", |
| export_include_dirs: [ |
| ".", |
| ], |
| visibility: [ |
| "//device/google/cuttlefish/host/libs/wmediumd_controller", |
| "//device/google/cuttlefish/host/commands/wmediumd_control", |
| ], |
| stl: "none", |
| host_supported: true, |
| vendor_available: true, |
| } |