diff --git a/mobile/library/jni/BUILD b/mobile/library/jni/BUILD index 991f12f8637a0..6fe0b4017c73e 100644 --- a/mobile/library/jni/BUILD +++ b/mobile/library/jni/BUILD @@ -15,7 +15,8 @@ genrule( genrule( name = "jni_md_h", srcs = select({ - "//conditions:default": ["@bazel_tools//tools/jdk:jni_md_header-linux"], + "//conditions:default": [], + "@platforms//os:linux": ["@bazel_tools//tools/jdk:jni_md_header-linux"], "@platforms//os:windows": ["@bazel_tools//tools/jdk:jni_md_header-windows"], "@platforms//os:macos": ["@bazel_tools//tools/jdk:jni_md_header-darwin"], }), @@ -30,6 +31,8 @@ envoy_cc_library( ], hdrs = [ "jni_utility.h", + ":jni_h", + ":jni_md_h", ], repository = "@envoy", deps = [