Skip to content

Instantly share code, notes, and snippets.

@byronyi
Last active July 11, 2017 16:39
Show Gist options
  • Save byronyi/10ad69ee39b688ec58f30857d513b76e to your computer and use it in GitHub Desktop.
Save byronyi/10ad69ee39b688ec58f30857d513b76e to your computer and use it in GitHub Desktop.
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # OpenIB.org BSD license (MIT variant)
exports_files(["COPYING"])
cc_library(
name = "ibverbs",
hdrs = [
"include/infiniband/sa.h",
"include/infiniband/verbs.h",
],
defines = [
"_GNU_SOURCE",
"NRESOLVE_NEIGH=1",
"STREAM_CLOEXEC=\\\"e\\\"",
"IBV_CONFIG_DIR=\\\"/etc/libibverbs.d\\\"",
],
srcs = [
"src/cmd.c",
"src/compat-1_0.c",
"src/device.c",
"src/enum_strs.c",
"src/ibverbs.h",
"src/init.c",
"src/marshall.c",
"src/memory.c",
"src/sysfs.c",
"src/verbs.c",
],
includes = ["include"],
include_prefix = "infiniband",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment