-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathBUILD
More file actions
33 lines (29 loc) · 1.16 KB
/
BUILD
File metadata and controls
33 lines (29 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
load("@rules_python//python:defs.bzl", "py_library")
# `bazel run` this target to generate compile_commands.json, which can be used
# by various tools like editors and LSPs to provide features like intelligent
# navigation and autocompletion based on the source graph and compiler commands.
alias(
name = "refresh_compile_commands",
actual = "@wolfd_bazel_compile_commands//:generate_compile_commands",
)
bool_flag(
name = "with_compression",
build_setting_default = False,
)
config_setting(
name = "with_compression_enabled",
flag_values = {
":with_compression": "True",
},
)
# Synthesizes the "tflite_micro" top-level package namespace at import time, so
# that `from tflite_micro...` imports resolve (see tflite_micro.py). Necessary
# because Bzlmod fixes the main repo's runfiles root to "_main" rather than the
# module name. Targets should generally not depend on this directly: use the
# tflm_py_* wrappers in //python:py_rules.bzl, which add it automatically.
py_library(
name = "tflite_micro_shim",
srcs = ["tflite_micro.py"],
visibility = ["//visibility:public"],
)