STT-tensorflow/tensorflow/lite/tools/versioning/BUILD
Thai Nguyen e887f933e4 Add the missing versions to runtime version
This cl also add a new unit test to ensure new version
got reflected in runtime version.

PiperOrigin-RevId: 316630739
Change-Id: I139ecf3077b2eec9bcc13ea5bb9030199d29203a
2020-06-16 00:43:59 -07:00

47 lines
1.1 KiB
Python

load(
"//tensorflow:tensorflow.bzl",
"tf_cc_test",
)
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
cc_library(
name = "versioning",
srcs = [
"op_version.cc",
"runtime_version.cc",
],
hdrs = [
"op_version.h",
"runtime_version.h",
],
deps = [
"//tensorflow/core:tflite_portable_logging",
"//tensorflow/lite:minimal_logging",
"//tensorflow/lite/kernels/internal:compatibility",
"//tensorflow/lite/schema:schema_fbs",
"//tensorflow/lite/schema:schema_fbs_with_mutable",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/strings",
"@flatbuffers",
],
)
tf_cc_test(
name = "versioning_test",
srcs = [
"op_version_test.cc",
"runtime_version_test.cc",
],
deps = [
":versioning",
"//tensorflow/lite/kernels:builtin_ops",
"//tensorflow/lite/schema:schema_fbs",
"//tensorflow/lite/schema:schema_fbs_with_mutable",
"@com_google_googletest//:gtest_main",
],
)