代码拉取完成,页面将自动刷新
同步操作将从 p4lang-mirror/PI 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package(
default_visibility = ["//visibility:public"],
)
filegroup(
name = "pihdrs",
srcs = glob(["include/**/*.h"]),
visibility = ["//:__subpackages__"],
)
cc_library(
name = "piutils",
srcs = glob(["src/utils/*.c"]) + ["//:pihdrs"],
hdrs = glob(["src/utils/*.h"]),
includes = ["src/utils", "include"],
deps = [],
visibility = ["//:__subpackages__"],
)
cc_library(
name = "pip4info",
srcs = ["src/p4info_int.h", ":pihdrs"]
+ glob(["src/p4info/*.c", "src/p4info/*.h"])
+ glob(["src/config_readers/*.c", "src/config_readers/*.h"]),
hdrs = glob(["include/PI/p4info/*.h"]),
includes = ["include", "src"],
copts = ["-DPI_LOG_ON"],
deps = ["//third_party/cJSON:picjson",
"//third_party:piuthash",
"//lib:pitoolkit",
":piutils"],
)
# using glob looks a bit nasty because of the files we have to exclude, but in
# the absence of a CI for the Bazel build, it is less error-prone that listing
# all files manually.
cc_library(
name = "pi",
srcs = [":pihdrs"]
+ glob(["src/*.c"], exclude=[
"src/pi_notifications_pub.c", "src/pi_rpc_server.c"])
+ glob(["src/*.h"], exclude=[
"src/p4info_int.h", "src/pi_notifications_pub.h"]),
hdrs = glob(["include/PI/*.h", "include/PI/target/*.h"])
+ ["include/PI/int/pi_int.h", "include/PI/int/serialize.h"],
includes = ["include"],
deps = [":pip4info"],
)
cc_library(
name = "pifegeneric",
srcs = ["src/frontends/generic/pi.c"],
hdrs = ["include/PI/frontends/generic/pi.h"],
includes = ["include"],
copts = ["-DPI_LOG_ON"],
deps = [":pi"],
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。