From d059cbc157d601dec06ffbf26c3edbe2f55e9159 Mon Sep 17 00:00:00 2001 From: David Vo Date: Tue, 29 Apr 2025 08:46:22 +1000 Subject: [PATCH] [bazel] Hide wpinet implementation headers (#7941) The headers in wpinet/src/main/native/cpp/*.h aren't intended to be used by dependents, so they shouldn't get propagated. --- wpinet/BUILD.bazel | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wpinet/BUILD.bazel b/wpinet/BUILD.bazel index eaaab42d24..f271ebc0b1 100644 --- a/wpinet/BUILD.bazel +++ b/wpinet/BUILD.bazel @@ -120,6 +120,9 @@ cc_library( ":tcpsockets-srcs", ] + ["native-srcs"], hdrs = glob(["src/main/native/include/**/*"]), + implementation_deps = [ + ":private_includes", + ], includes = ["src/main/native/include"], linkopts = select({ "@bazel_tools//src/conditions:linux": ["-ldl"], @@ -129,7 +132,6 @@ cc_library( visibility = ["//visibility:public"], deps = [ ":libuv-headers", - ":private_includes", ":tcpsockets-headers", "//wpiutil:wpiutil.static", ], @@ -153,6 +155,7 @@ cc_test( ]), tags = ["no-asan"], deps = [ + ":private_includes", ":wpinet.static", "//thirdparty/googletest:googletest.static", "//wpiutil:wpiutil-testlib",