• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("@build_bazel_rules_android//android:rules.bzl", "android_binary")
2
3# Sample app for OVIC benchmarking.
4licenses(["notice"])  # Apache 2.0
5
6android_binary(
7    name = "ovic_benchmarker_binary",
8    srcs = [
9        "OvicBenchmarkerActivity.java",
10    ],
11    aapt_version = "aapt",
12    assets = [
13        "//tensorflow/lite/java/ovic/src/testdata:coco_labels.txt",
14        "//tensorflow/lite/java/ovic/src/testdata:labels.txt",
15        "//tensorflow/lite/java/ovic/src/testdata:ovic_testdata",
16    ],
17    assets_dir = "",
18    custom_package = "ovic.demo.app",
19    manifest = "AndroidManifest.xml",
20    nocompress_extensions = [
21        ".lite",
22        ".tflite",
23    ],
24    resource_files = glob(["res/**"]),
25    tags = ["manual"],
26    deps = [
27        "//tensorflow/lite/java:tensorflowlite",
28        "//tensorflow/lite/java/ovic:ovicbenchmarkerlib",
29        "//tensorflow/lite/java/ovic:ovicdetectionbenchmarkerlib",
30        "@androidsdk//com.android.support:support-v13-25.2.0",
31        "@androidsdk//com.android.support:support-v4-25.2.0",
32    ],
33)
34