• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_applicable_licenses: ["external_wmediumd_license"],
3}
4
5license {
6    name: "external_wmediumd_license",
7    visibility: [":__subpackages__"],
8    license_kinds: [
9        "SPDX-license-identifier-GPL-2.0",
10    ],
11    license_text: [
12        "LICENSE",
13    ],
14}
15
16wmediumd_version = "0.3.1"
17
18cc_binary_host {
19    name: "wmediumd_gen_config",
20    srcs: [
21        "util/wmediumd_gen_config.c",
22    ],
23    static_libs: [
24        "libconfig",
25    ],
26    visibility: [
27       "//device/google/cuttlefish/build",
28    ],
29}
30
31cc_binary_host {
32    name: "wmediumd",
33    srcs: [
34        "wmediumd/*.c",
35        "wmediumd/lib/*.c",
36    ],
37    local_include_dirs: [
38        "wmediumd/inc",
39    ],
40    cflags: [
41        "-g",
42        "-Wno-unused-parameter",
43        "-Wno-format-zero-length",
44        "-DCONFIG_LIBNL30",
45        "-DVERSION_STR=\"" + wmediumd_version + "\"",
46        "-Wno-pointer-arith",
47        "-Wno-unused-result",
48        "-Wno-gnu-variable-sized-type-not-at-end",
49        "-Wno-unused-function",
50    ],
51    static_libs: [
52        "libnl",
53        "libconfig",
54    ],
55    visibility: [
56       "//device/google/cuttlefish/build",
57    ],
58    stl: "none",
59    static_executable: true,
60}
61
62cc_binary_host {
63    name: "wmediumd_ack_test_client",
64    srcs: [
65        "tests/wmediumd_ack_test_client.c",
66    ],
67    local_include_dirs: [
68        "wmediumd/inc",
69    ],
70    visibility: [
71       "//device/google/cuttlefish/build",
72    ],
73    stl: "none",
74    static_executable: true,
75}
76
77cc_library_headers {
78    name: "wmediumd_headers",
79    export_include_dirs: [
80        ".",
81    ],
82    visibility: [
83        "//device/google/cuttlefish/host/libs/wmediumd_controller",
84        "//device/google/cuttlefish/host/commands/wmediumd_control",
85    ],
86    stl: "none",
87    host_supported: true,
88    vendor_available: true,
89}
90