Explicitly specify TFLite demo assets in BUILD file
PiperOrigin-RevId: 175617982
This commit is contained in:
parent
58c1aaf777
commit
f92692223d
@ -6,7 +6,8 @@ android_binary(
|
||||
name = "TfLiteCameraDemo",
|
||||
srcs = glob(["java/**/*.java"]),
|
||||
assets = [
|
||||
":assets",
|
||||
"@tflite_mobilenet//:labels.txt",
|
||||
"@tflite_mobilenet//:mobilenet_quant_v1_224.tflite",
|
||||
],
|
||||
assets_dir = "",
|
||||
custom_package = "com.example.android.tflitecamerademo",
|
||||
@ -27,13 +28,6 @@ android_binary(
|
||||
],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "assets",
|
||||
srcs = [
|
||||
"@tflite_mobilenet//:model_files",
|
||||
],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "all_files",
|
||||
srcs = glob(
|
||||
|
@ -2,15 +2,13 @@ package(default_visibility = ["//visibility:private"])
|
||||
|
||||
licenses(["notice"]) # Apache 2.0
|
||||
|
||||
filegroup(
|
||||
name = "assets_files",
|
||||
srcs = glob(
|
||||
exports_files(
|
||||
glob(
|
||||
["**/*"],
|
||||
exclude = [
|
||||
"BUILD",
|
||||
],
|
||||
),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
|
5
third_party/tflite_mobilenet.BUILD
vendored
5
third_party/tflite_mobilenet.BUILD
vendored
@ -2,9 +2,8 @@ package(default_visibility = ["//visibility:public"])
|
||||
|
||||
licenses(["notice"]) # Apache 2.0
|
||||
|
||||
filegroup(
|
||||
name = "model_files",
|
||||
srcs = glob(
|
||||
exports_files(
|
||||
glob(
|
||||
["**/*"],
|
||||
exclude = [
|
||||
"BUILD",
|
||||
|
Loading…
Reference in New Issue
Block a user