• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("@bazel_skylib//rules:build_test.bzl", "build_test")
2load("//tensorflow/lite/ios:ios.bzl", "TFL_MINIMUM_OS_VERSION")
3load("@build_bazel_rules_apple//apple:ios.bzl", "ios_static_framework")
4
5package(
6    licenses = ["notice"],  # Apache 2.0
7)
8
9# Main target for the benchmark tool iOS framework.
10# bazel build --config=ios_fat -c opt //tensorflow/lite/tools/benchmark/experimental/ios:TensorFlowLiteBenchmarkC_framework
11ios_static_framework(
12    name = "TensorFlowLiteBenchmarkC_framework",
13    hdrs = [
14        "//tensorflow/lite/tools:logging.h",
15        "//tensorflow/lite/tools/benchmark/experimental/c:benchmark_c_api.h",
16    ],
17    bundle_name = "TensorFlowLiteBenchmarkC",
18    minimum_os_version = TFL_MINIMUM_OS_VERSION,
19    deps = [
20        "//tensorflow/lite/tools/benchmark/experimental/c:benchmark_c_api",
21    ],
22)
23
24# Used for building TensorFlowLiteBenchmarkC_framework framework.
25build_test(
26    name = "framework_build_test",
27    tags = [
28        "nomsan",  # b/145205324
29        "notsan",  # b/145205324
30    ],
31    targets = [
32        ":TensorFlowLiteBenchmarkC_framework",
33    ],
34)
35