1 # Copyright 2020 The Pigweed Authors
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 # use this file except in compliance with the License. You may obtain a copy of
7 # https://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations under
16 "//pw_build:pigweed.bzl",
20 package(default_visibility = ["//visibility:public"])
22 licenses(["notice"]) # Apache License 2.0
25 name = "binary_semaphore_headers",
27 "public/pw_sync_threadx/binary_semaphore_inline.h",
28 "public/pw_sync_threadx/binary_semaphore_native.h",
29 "public_overrides/pw_sync_backend/binary_semaphore_inline.h",
30 "public_overrides/pw_sync_backend/binary_semaphore_native.h",
37 # TODO: This should depend on ThreadX but our third parties currently
38 # do not have Bazel support.
39 "//pw_chrono:system_clock",
44 name = "binary_semaphore",
46 "binary_semaphore.cc",
49 ":binary_semaphore_headers",
50 "//pw_chrono_threadx:system_clock_headers",
51 "//pw_interrupt:context",
52 "//pw_sync:binary_semaphore_facade",
57 name = "counting_semaphore_headers",
59 "public/pw_sync_threadx/counting_semaphore_inline.h",
60 "public/pw_sync_threadx/counting_semaphore_native.h",
61 "public_overrides/pw_sync_backend/counting_semaphore_inline.h",
62 "public_overrides/pw_sync_backend/counting_semaphore_native.h",
69 # TODO: This should depend on ThreadX but our third parties currently
70 # do not have Bazel support.
71 "//pw_chrono:system_clock",
76 name = "counting_semaphore",
78 "counting_semaphore.cc",
81 ":counting_semaphore_headers",
82 "//pw_chrono_threadx:system_clock_headers",
83 "//pw_interrupt:context",
84 "//pw_sync:counting_semaphore_facade",
89 name = "mutex_headers",
91 "public/pw_sync_threadx/mutex_inline.h",
92 "public/pw_sync_threadx/mutex_native.h",
93 "public_overrides/pw_sync_backend/mutex_inline.h",
94 "public_overrides/pw_sync_backend/mutex_native.h",
101 # TODO: This should depend on ThreadX but our third parties currently
102 # do not have Bazel support.
103 "//pw_chrono:system_clock",
114 "//pw_chrono_threadx:system_clock_headers",
115 "//pw_interrupt:context",
116 "//pw_sync:mutex_facade",
121 name = "spin_lock_headers",
123 "public/pw_sync_threadx/spin_lock_inline.h",
124 "public/pw_sync_threadx/spin_lock_native.h",
125 "public_overrides/pw_sync_backend/spin_lock_inline.h",
126 "public_overrides/pw_sync_backend/spin_lock_native.h",
132 # TODO: This should depend on ThreadX but our third parties currently
133 # do not have Bazel support.
142 ":spin_lock_headers",
143 "//pw_sync:spin_lock_facade",