1cc_library( 2 name = "libnos_transport", 3 srcs = [ 4 "transport.c", 5 "crc16.c", 6 "crc16.h", 7 ], 8 hdrs = [ 9 "include/nos/transport.h", 10 ], 11 includes = [ 12 "./include", 13 ], 14 visibility = ["//visibility:public"], 15 deps = [ 16 "@nugget_host_generic//:nos_headers", 17 "@nugget_host_generic_libnos_datagram//:libnos_datagram", 18 ], 19) 20 21cc_test( 22 name = "libnos_transport_test", 23 srcs = [ 24 "test/test.cpp", 25 "crc16.c", 26 "crc16.h", 27 ], 28 copts = ["-fsanitize=address"], 29 linkopts = ["-fsanitize=address"], 30 deps = [ 31 ":libnos_transport", 32 "@gtest//:gtest", 33 "@nugget_host_generic//:nos_headers", 34 ], 35) 36