STT-tensorflow/tensorflow/lite/c/BUILD
Jared Duke 04e311bf76 Use a genrule rather than symlink for c_api_types.h
Not all platforms can handle symlinks.

Note that this also removes the experimental C API from Makefile builds.
The Makefile targets may be deprecated in the near future.

Fixes #27282

PiperOrigin-RevId: 254492041
2019-06-21 16:44:25 -07:00

43 lines
950 B
Python

package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
cc_library(
name = "c_api_internal",
srcs = ["c_api_internal.c"],
hdrs = [
"builtin_op_data.h",
"c_api_internal.h",
],
visibility = [
"//learning/brain/mobile/kernel_test:__subpackages__",
"//tensorflow/lite:__subpackages__",
],
)
# For use with library targets that can't use relative paths.
exports_files(["c_api_internal.h"])
# Test the C extension API code.
cc_test(
name = "c_api_internal_test",
size = "small",
srcs = ["c_api_internal_test.cc"],
deps = [
":c_api_internal",
"@com_google_googletest//:gtest",
],
)
cc_test(
name = "builtin_op_data_test",
size = "small",
srcs = ["builtin_op_data_test.cc"],
copts = ["-Wno-unused-variable"],
deps = [
":c_api_internal",
"@com_google_googletest//:gtest",
],
)