mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Add load() statements for the builtin Bazel java rules
Loads are being added in preparation for moving the rules out of Bazel and into `rules_java`. PiperOrigin-RevId: 622055151
This commit is contained in:
parent
a700cea6b2
commit
6733b822d2
|
|
@ -14,6 +14,12 @@ http_archive(
|
|||
],
|
||||
)
|
||||
|
||||
http_archive(
|
||||
name = "rules_java",
|
||||
sha256 = "c73336802d0b4882e40770666ad055212df4ea62cfa6edf9cb0f9d29828a0934",
|
||||
url = "https://github.com/bazelbuild/rules_java/releases/download/5.3.5/rules_java-5.3.5.tar.gz",
|
||||
)
|
||||
|
||||
http_archive(
|
||||
name = "rules_python",
|
||||
sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b",
|
||||
|
|
|
|||
|
|
@ -64,7 +64,10 @@ bzl_library(
|
|||
name = "cc_library_with_tflite_bzl",
|
||||
srcs = ["cc_library_with_tflite.bzl"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["//tensorflow/lite:build_def_bzl"],
|
||||
deps = [
|
||||
"//tensorflow/lite:build_def_bzl",
|
||||
"@rules_java//java:rules",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library_with_tflite_test_suite(name = "cc_library_with_tflite_test_suite")
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
load("@bazel_skylib//rules:build_test.bzl", "build_test")
|
||||
load("@build_bazel_rules_android//android:rules.bzl", "android_binary", "android_library")
|
||||
load("@rules_java//java:defs.bzl", "java_library", "java_test")
|
||||
load("//tensorflow:tensorflow.bzl", "clean_dep")
|
||||
load(
|
||||
"//tensorflow/lite:build_def.bzl",
|
||||
|
|
@ -317,7 +318,7 @@ def java_library_with_tflite(
|
|||
'cc_library_with_tflite' / 'java_library_with_tflite'.
|
||||
**kwargs: Additional java_library parameters.
|
||||
"""
|
||||
native.java_library(
|
||||
java_library(
|
||||
name = name,
|
||||
exports = exports + tflite_exports,
|
||||
deps = deps + tflite_deps + tflite_jni_binaries,
|
||||
|
|
@ -352,7 +353,7 @@ def java_test_with_tflite(
|
|||
using 'jni_binary_with_tflite'.
|
||||
**kwargs: Additional java_library parameters.
|
||||
"""
|
||||
native.java_test(
|
||||
java_test(
|
||||
name = name,
|
||||
deps = deps + tflite_deps,
|
||||
runtime_deps = deps + tflite_jni_binaries,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user