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",
|
name = "TfLiteCameraDemo",
|
||||||
srcs = glob(["java/**/*.java"]),
|
srcs = glob(["java/**/*.java"]),
|
||||||
assets = [
|
assets = [
|
||||||
":assets",
|
"@tflite_mobilenet//:labels.txt",
|
||||||
|
"@tflite_mobilenet//:mobilenet_quant_v1_224.tflite",
|
||||||
],
|
],
|
||||||
assets_dir = "",
|
assets_dir = "",
|
||||||
custom_package = "com.example.android.tflitecamerademo",
|
custom_package = "com.example.android.tflitecamerademo",
|
||||||
@ -27,13 +28,6 @@ android_binary(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "assets",
|
|
||||||
srcs = [
|
|
||||||
"@tflite_mobilenet//:model_files",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
name = "all_files",
|
name = "all_files",
|
||||||
srcs = glob(
|
srcs = glob(
|
||||||
|
@ -2,15 +2,13 @@ package(default_visibility = ["//visibility:private"])
|
|||||||
|
|
||||||
licenses(["notice"]) # Apache 2.0
|
licenses(["notice"]) # Apache 2.0
|
||||||
|
|
||||||
filegroup(
|
exports_files(
|
||||||
name = "assets_files",
|
glob(
|
||||||
srcs = glob(
|
|
||||||
["**/*"],
|
["**/*"],
|
||||||
exclude = [
|
exclude = [
|
||||||
"BUILD",
|
"BUILD",
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
visibility = ["//visibility:public"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
filegroup(
|
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
|
licenses(["notice"]) # Apache 2.0
|
||||||
|
|
||||||
filegroup(
|
exports_files(
|
||||||
name = "model_files",
|
glob(
|
||||||
srcs = glob(
|
|
||||||
["**/*"],
|
["**/*"],
|
||||||
exclude = [
|
exclude = [
|
||||||
"BUILD",
|
"BUILD",
|
||||||
|
Loading…
Reference in New Issue
Block a user