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
43 lines
950 B
Python
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",
|
|
],
|
|
)
|