diff options
Diffstat (limited to 'third_party/stm32cube/BUILD.bazel')
-rw-r--r-- | third_party/stm32cube/BUILD.bazel | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/stm32cube/BUILD.bazel b/third_party/stm32cube/BUILD.bazel index 81a3ff78c..94e3537f4 100644 --- a/third_party/stm32cube/BUILD.bazel +++ b/third_party/stm32cube/BUILD.bazel @@ -21,10 +21,24 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) +# NOTE: To depend on this target, you must set the STM32CUBE_HEADER +# preprocessor variable, perhaps using copts associated with the target +# platform. See the module documentation for details. pw_cc_library( name = "stm32cube", hdrs = [ "public/stm32cube/init.h", "public/stm32cube/stm32cube.h", ], + includes = ["public"], + deps = [ + ":hal_driver", + ], +) + +# This label_flag introduces a layer of indirection useful when building a +# project that requires more than one STM32Cube MCU Package. +label_flag( + name = "hal_driver", + build_setting_default = "@hal_driver", ) |