@@ -6,12 +6,16 @@ load("@rules_cc//cc:cc_test.bzl", "cc_test")
66
77# Placeholder: load proto_library
88load ("//tensorflow_text:tftext.bzl" , "tf_cc_library" , "tflite_cc_library" )
9+ load ("//tools/build_defs/license:license.bzl" , "license" )
910# [internal] load cc_proto_library.bzl
1011
1112licenses (["notice" ])
1213
1314# Visibility rules
14- package (default_visibility = ["//visibility:public" ])
15+ package (
16+ default_applicable_licenses = ["//tensorflow_text/core/kernels:license" ],
17+ default_visibility = ["//visibility:public" ],
18+ )
1519
1620exports_files (["LICENSE" ])
1721
@@ -238,7 +242,6 @@ tf_cc_library(
238242 "@com_google_absl//absl/status" ,
239243 "@com_google_absl//absl/status:statusor" ,
240244 "@com_google_absl//absl/strings" ,
241- "//third_party/icu/data:icu_normalization_data" ,
242245 "@icu//:common" ,
243246 "@icu//:nfkc_cf" , # Needed for NFKC_Casefold Unicode Normalization form.
244247 "@com_googlesource_code_re2//:re2" ,
@@ -413,7 +416,7 @@ cc_test(
413416 ":fast_wordpiece_tokenizer_model_builder" ,
414417 "@com_google_googletest//:gtest_main" ,
415418 "@com_google_absl//absl/flags:flag" ,
416- "//third_party/icu :headers" ,
419+ "@icu// :headers" ,
417420 # tf:lib tensorflow dep,
418421 ],
419422)
@@ -681,7 +684,6 @@ tf_cc_library(
681684 ],
682685 deps = [
683686 ":edit_changes_cc_proto" ,
684- "//third_party/icu/data:icu_normalization_data" ,
685687 "@com_google_absl//absl/strings" ,
686688 "@icu//:nfkc" ,
687689 "@icu//:nfkc_cf" ,
@@ -1407,3 +1409,8 @@ cc_test(
14071409 "//tensorflow_text:wordpiece_tokenizer_cc" ,
14081410 ],
14091411)
1412+
1413+ license (
1414+ name = "license" ,
1415+ package_name = "kernels" ,
1416+ )
0 commit comments