aboutsummaryrefslogtreecommitdiff
path: root/pw_sync_stl/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'pw_sync_stl/BUILD.bazel')
-rw-r--r--pw_sync_stl/BUILD.bazel88
1 files changed, 17 insertions, 71 deletions
diff --git a/pw_sync_stl/BUILD.bazel b/pw_sync_stl/BUILD.bazel
index d0e62b86c..f8ec59b6b 100644
--- a/pw_sync_stl/BUILD.bazel
+++ b/pw_sync_stl/BUILD.bazel
@@ -26,7 +26,10 @@ package(default_visibility = ["//visibility:public"])
licenses(["notice"])
pw_cc_library(
- name = "binary_semaphore_headers",
+ name = "binary_semaphore",
+ srcs = [
+ "binary_semaphore.cc",
+ ],
hdrs = [
"public/pw_sync_stl/binary_semaphore_inline.h",
"public/pw_sync_stl/binary_semaphore_native.h",
@@ -39,18 +42,6 @@ pw_cc_library(
],
target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
deps = [
- "//pw_chrono:system_clock",
- ],
-)
-
-pw_cc_library(
- name = "binary_semaphore",
- srcs = [
- "binary_semaphore.cc",
- ],
- target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
- deps = [
- ":binary_semaphore_headers",
"//pw_assert",
"//pw_chrono:system_clock",
"//pw_sync:binary_semaphore_facade",
@@ -58,7 +49,10 @@ pw_cc_library(
)
pw_cc_library(
- name = "counting_semaphore_headers",
+ name = "counting_semaphore",
+ srcs = [
+ "counting_semaphore.cc",
+ ],
hdrs = [
"public/pw_sync_stl/counting_semaphore_inline.h",
"public/pw_sync_stl/counting_semaphore_native.h",
@@ -71,18 +65,6 @@ pw_cc_library(
],
target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
deps = [
- "//pw_chrono:system_clock",
- ],
-)
-
-pw_cc_library(
- name = "counting_semaphore",
- srcs = [
- "counting_semaphore.cc",
- ],
- target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
- deps = [
- ":counting_semaphore_headers",
"//pw_assert",
"//pw_chrono:system_clock",
"//pw_sync:counting_semaphore_facade",
@@ -90,7 +72,8 @@ pw_cc_library(
)
pw_cc_library(
- name = "mutex_headers",
+ name = "mutex",
+ srcs = ["mutex.cc"],
hdrs = [
"public/pw_sync_stl/mutex_inline.h",
"public/pw_sync_stl/mutex_native.h",
@@ -102,22 +85,14 @@ pw_cc_library(
"public_overrides",
],
target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
- deps = ["//pw_sync:mutex_facade"],
-)
-
-pw_cc_library(
- name = "mutex",
- srcs = ["mutex.cc"],
- target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
deps = [
- ":mutex_headers",
"//pw_assert",
"//pw_sync:mutex_facade",
],
)
pw_cc_library(
- name = "timed_mutex_headers",
+ name = "timed_mutex",
hdrs = [
"public/pw_sync_stl/timed_mutex_inline.h",
"public_overrides/pw_sync_backend/timed_mutex_inline.h",
@@ -129,20 +104,12 @@ pw_cc_library(
target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
deps = [
"//pw_chrono:system_clock",
- ],
-)
-
-pw_cc_library(
- name = "timed_mutex",
- target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
- deps = [
- ":timed_mutex_headers",
"//pw_sync:timed_mutex_facade",
],
)
pw_cc_library(
- name = "recursive_mutex_headers",
+ name = "recursive_mutex",
hdrs = [
"public/pw_sync_stl/recursive_mutex_inline.h",
"public/pw_sync_stl/recursive_mutex_native.h",
@@ -154,20 +121,14 @@ pw_cc_library(
"public_overrides",
],
target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
- deps = ["//pw_assert"],
-)
-
-pw_cc_library(
- name = "recursive_mutex",
- target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
deps = [
- ":recursive_mutex_headers",
+ "//pw_assert",
"//pw_sync:recursive_mutex_facade",
],
)
pw_cc_library(
- name = "interrupt_spin_lock_headers",
+ name = "interrupt_spin_lock",
hdrs = [
"public/pw_sync_stl/interrupt_spin_lock_inline.h",
"public/pw_sync_stl/interrupt_spin_lock_native.h",
@@ -180,22 +141,13 @@ pw_cc_library(
],
target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
deps = [
- "//pw_sync:yield_core",
- ],
-)
-
-pw_cc_library(
- name = "interrupt_spin_lock",
- target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
- deps = [
- ":interrupt_spin_lock_headers",
"//pw_sync:interrupt_spin_lock_facade",
"//pw_sync:yield_core",
],
)
pw_cc_library(
- name = "condition_variable_headers",
+ name = "condition_variable",
hdrs = [
"public/pw_sync_stl/condition_variable_inline.h",
"public/pw_sync_stl/condition_variable_native.h",
@@ -207,22 +159,16 @@ pw_cc_library(
"public_overrides",
],
target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
-)
-
-pw_cc_library(
- name = "condition_variable",
- target_compatible_with = select(TARGET_COMPATIBLE_WITH_HOST_SELECT),
deps = [
- ":condition_variable_headers",
"//pw_sync:condition_variable_facade",
],
)
-# TODO(b/228998350): Figure out how to conditionally enable this test like GN
+# TODO: b/228998350 - Figure out how to conditionally enable this test like GN
# pw_cc_test(
# name = "condition_variable_test",
# deps = [
# "//pw_sync:condition_variable_test",
-# "//pw_thread_stl:test_threads",
+# "//pw_thread_stl:non_portable_test_thread_options",
# ]
# )