aboutsummaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorFabian Meumertzheim <meumertzheim@code-intelligence.com>2021-04-23 21:53:27 +0200
committerFabian Meumertzheim <fabian@meumertzhe.im>2021-04-26 13:46:36 +0200
commit371d0e4f9ce44279a94f787e69393cd4238181a7 (patch)
tree8b10ddd14d4d64bfb2d323d24c3c663880e4dc49 /third_party
parent374f7aea691a0725b98e4abcc7a4914ca2c41bef (diff)
downloadjazzer-api-371d0e4f9ce44279a94f787e69393cd4238181a7.tar.gz
Fix header layering violations
Diffstat (limited to 'third_party')
-rw-r--r--third_party/jni/BUILD.bazel13
1 files changed, 6 insertions, 7 deletions
diff --git a/third_party/jni/BUILD.bazel b/third_party/jni/BUILD.bazel
index 3cbaba61..21f3fe1f 100644
--- a/third_party/jni/BUILD.bazel
+++ b/third_party/jni/BUILD.bazel
@@ -3,10 +3,9 @@ load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
cc_library(
name = "jni",
+ hdrs = [":jni_headers"],
visibility = ["//visibility:public"],
- deps = [
- ":jni_headers",
- ] + select({
+ deps = select({
"@platforms//os:osx": [":libjvm_osx"],
"//conditions:default": [":libjvm_linux"],
}),
@@ -14,10 +13,10 @@ cc_library(
cc_library(
name = "jni_headers_only",
- visibility = ["//visibility:public"],
- deps = [
+ hdrs = [
":jni_headers",
],
+ visibility = ["//visibility:public"],
)
genrule(
@@ -38,9 +37,9 @@ genrule(
cmd = "cp -f $< $@",
)
-cc_import(
+filegroup(
name = "jni_headers",
- hdrs = [
+ srcs = [
":jni_header",
":jni_md_header",
],