Merge pull request from keith:ks/add-ios_static_framework-bazel-target-for-swift

PiperOrigin-RevId: 313323111
Change-Id: If099b8e134bea9e269e00ee5af0d1d06e9d7b902
This commit is contained in:
TensorFlower Gardener 2020-05-26 21:19:32 -07:00
commit 1aef0ba436

View File

@ -2,7 +2,7 @@
load("//tensorflow/lite:special_rules.bzl", "ios_visibility_whitelist", "tflite_ios_lab_runner")
load("//tensorflow/lite/experimental/ios:ios.bzl", "TFL_DEFAULT_TAGS", "TFL_DISABLED_SANITIZER_TAGS", "TFL_MINIMUM_OS_VERSION")
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_application", "ios_unit_test")
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_application", "ios_static_framework", "ios_unit_test")
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
package(
@ -40,6 +40,19 @@ swift_library(
],
)
# bazel build -c opt --config=ios_fat //tensorflow/lite/experimental/swift:TensorFlowLite_framework
ios_static_framework(
name = "TensorFlowLite_framework",
avoid_deps = [
"//tensorflow/lite/experimental/ios:tensorflow_lite_c",
],
bundle_name = "TensorFlowLite",
minimum_os_version = TFL_MINIMUM_OS_VERSION,
deps = [
":TensorFlowLite",
],
)
ios_unit_test(
name = "Tests",
size = "small",