Jeongik Cha | 63dd8ea | 2021-07-21 16:48:09 +0900 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["external_wmediumd_license"], |
| 3 | } |
| 4 | |
| 5 | license { |
| 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 | |
| 16 | wmediumd_version = "0.3.1" |
| 17 | |
| 18 | cc_binary_host { |
JaeMan Park | 9c3286f | 2021-08-03 13:27:32 +0900 | [diff] [blame] | 19 | name: "wmediumd_gen_config", |
| 20 | srcs: [ |
| 21 | "util/wmediumd_gen_config.c", |
| 22 | ], |
| 23 | static_libs: [ |
| 24 | "libconfig", |
| 25 | ], |
| 26 | visibility: [ |
Jooyung Han | 025f857 | 2021-09-06 17:25:52 +0900 | [diff] [blame] | 27 | "//device/google/cuttlefish/build", |
JaeMan Park | 9c3286f | 2021-08-03 13:27:32 +0900 | [diff] [blame] | 28 | ], |
| 29 | } |
| 30 | |
| 31 | cc_binary_host { |
Jeongik Cha | 63dd8ea | 2021-07-21 16:48:09 +0900 | [diff] [blame] | 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", |
Jeongik Cha | 63dd8ea | 2021-07-21 16:48:09 +0900 | [diff] [blame] | 42 | "-Wno-unused-parameter", |
Jeongik Cha | 63dd8ea | 2021-07-21 16:48:09 +0900 | [diff] [blame] | 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: [ |
Jooyung Han | 025f857 | 2021-09-06 17:25:52 +0900 | [diff] [blame] | 56 | "//device/google/cuttlefish/build", |
Jeongik Cha | 63dd8ea | 2021-07-21 16:48:09 +0900 | [diff] [blame] | 57 | ], |
Jeongik Cha | 4d98b0f | 2021-08-10 14:01:42 +0900 | [diff] [blame] | 58 | stl: "none", |
Jeongik Cha | 6d0f5f2 | 2021-07-31 00:54:43 +0900 | [diff] [blame] | 59 | static_executable: true, |
| 60 | } |
JaeMan Park | 1acf4f5 | 2021-10-05 17:10:09 +0900 | [diff] [blame] | 61 | |
| 62 | cc_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 Park | ab76216 | 2022-02-21 14:46:27 +0900 | [diff] [blame] | 76 | |
| 77 | cc_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 | } |