blob: 97dbe73d721adef277aadc7547f27ca0db7885ee [file] [log] [blame]
Jeongik Cha63dd8ea2021-07-21 16:48:09 +09001package {
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 {
JaeMan Park9c3286f2021-08-03 13:27:32 +090019 name: "wmediumd_gen_config",
20 srcs: [
21 "util/wmediumd_gen_config.c",
22 ],
23 static_libs: [
24 "libconfig",
25 ],
26 visibility: [
Jooyung Han025f8572021-09-06 17:25:52 +090027 "//device/google/cuttlefish/build",
JaeMan Park9c3286f2021-08-03 13:27:32 +090028 ],
29}
30
31cc_binary_host {
Jeongik Cha63dd8ea2021-07-21 16:48:09 +090032 name: "wmediumd",
33 srcs: [
34 "wmediumd/*.c",
35 "wmediumd/lib/*.c",
36 ],
37 local_include_dirs: [
38 "wmediumd/inc",
39 ],
40 cflags: [
41 "-g",
Jeongik Cha63dd8ea2021-07-21 16:48:09 +090042 "-Wno-unused-parameter",
Jeongik Cha63dd8ea2021-07-21 16:48:09 +090043 "-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: [
Jooyung Han025f8572021-09-06 17:25:52 +090056 "//device/google/cuttlefish/build",
Jeongik Cha63dd8ea2021-07-21 16:48:09 +090057 ],
Jeongik Cha4d98b0f2021-08-10 14:01:42 +090058 stl: "none",
Jeongik Cha6d0f5f22021-07-31 00:54:43 +090059 static_executable: true,
60}
JaeMan Park1acf4f52021-10-05 17:10:09 +090061
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}
JaeMan Parkab762162022-02-21 14:46:27 +090076
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}