James Kuszmaul | bc02ff4 | 2021-01-15 20:41:30 -0800 | [diff] [blame^] | 1 | # usrsctp is only actually being used for the CRC function, and getting |
| 2 | # the entire library building was being obnoxious. |
| 3 | cc_library( |
| 4 | name = "usrsctp_crc32", |
| 5 | srcs = ["usrsctplib/netinet/sctp_crc32.c"], |
| 6 | hdrs = glob(["usrsctplib/**/*.h"]), |
| 7 | copts = [ |
| 8 | "-Wno-cast-qual", |
| 9 | "-Wno-cast-align", |
| 10 | "-Wno-unused-parameter", |
| 11 | "-Wno-incompatible-pointer-types-discards-qualifiers", |
| 12 | ], |
| 13 | defines = [ |
| 14 | "__Userspace_os_Linux", |
| 15 | "__Userspace__", |
| 16 | "SCTP_SIMPLE_ALLOCATOR", |
| 17 | ], |
| 18 | includes = ["usrsctplib/"], |
| 19 | target_compatible_with = ["@platforms//os:linux"], |
| 20 | visibility = ["//visibility:public"], |
| 21 | ) |