aboutsummaryrefslogtreecommitdiff
path: root/pw_thread_embos/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'pw_thread_embos/BUILD.bazel')
-rw-r--r--pw_thread_embos/BUILD.bazel76
1 files changed, 24 insertions, 52 deletions
diff --git a/pw_thread_embos/BUILD.bazel b/pw_thread_embos/BUILD.bazel
index e4329bd5a..83e080408 100644
--- a/pw_thread_embos/BUILD.bazel
+++ b/pw_thread_embos/BUILD.bazel
@@ -22,7 +22,7 @@ package(default_visibility = ["//visibility:public"])
licenses(["notice"])
pw_cc_library(
- name = "id_headers",
+ name = "id",
hdrs = [
"id_public_overrides/pw_thread_backend/id_inline.h",
"id_public_overrides/pw_thread_backend/id_native.h",
@@ -36,20 +36,18 @@ pw_cc_library(
target_compatible_with = [
"//pw_build/constraints/rtos:embos",
],
-)
-
-pw_cc_library(
- name = "id",
deps = [
- ":id_headers",
"//pw_thread:id_facade",
],
- # TODO(b/234876414): This should depend on embOS but our third parties
+ # TODO: b/234876414 - This should depend on embOS but our third parties
# currently do not have Bazel support.
)
pw_cc_library(
- name = "sleep_headers",
+ name = "sleep",
+ srcs = [
+ "sleep.cc",
+ ],
hdrs = [
"public/pw_thread_embos/sleep_inline.h",
"sleep_public_overrides/pw_thread_backend/sleep_inline.h",
@@ -58,30 +56,23 @@ pw_cc_library(
"public",
"sleep_public_overrides",
],
- deps = [
- "//pw_chrono:system_clock",
- ],
-)
-
-pw_cc_library(
- name = "sleep",
- srcs = [
- "sleep.cc",
+ target_compatible_with = [
+ "//pw_build/constraints/rtos:embos",
],
deps = [
- ":sleep_headers",
"//pw_assert",
"//pw_chrono:system_clock",
- "//pw_chrono_embos:system_clock_headers",
"//pw_thread:sleep_facade",
],
- # TODO(b/234876414): This should depend on embOS but our third parties
+ # TODO: b/234876414 - This should depend on embOS but our third parties
# currently do not have Bazel support.
)
-# This target provides the embOS specific headers needs for thread creation.
pw_cc_library(
- name = "thread_headers",
+ name = "thread",
+ srcs = [
+ "thread.cc",
+ ],
hdrs = [
"public/pw_thread_embos/config.h",
"public/pw_thread_embos/context.h",
@@ -101,42 +92,28 @@ pw_cc_library(
"//pw_string",
"//pw_thread:thread_facade",
],
- # TODO(b/234876414): This should depend on embOS but our third parties
+ # TODO: b/234876414 - This should depend on embOS but our third parties
# currently do not have Bazel support.
)
pw_cc_library(
- name = "thread",
- srcs = [
- "thread.cc",
- ],
- deps = [
- ":id",
- ":thread_headers",
- "//pw_assert",
- ],
- # TODO(b/234876414): This should depend on embOS but our third parties
- # currently do not have Bazel support.
-)
-
-pw_cc_library(
- name = "test_threads",
+ name = "non_portable_test_thread_options",
srcs = [
"test_threads.cc",
],
includes = ["public"],
- # TODO(b/260637734): This target doesn't build
+ # TODO: b/260637734 - This target doesn't build
tags = ["manual"],
deps = [
"//pw_chrono:system_clock",
+ "//pw_thread:non_portable_test_thread_options",
"//pw_thread:sleep",
- "//pw_thread:test_threads_header",
"//pw_thread:thread_facade",
],
)
pw_cc_library(
- name = "yield_headers",
+ name = "yield",
hdrs = [
"public/pw_thread_embos/yield_inline.h",
"yield_public_overrides/pw_thread_backend/yield_inline.h",
@@ -145,16 +122,11 @@ pw_cc_library(
"public",
"yield_public_overrides",
],
- # TODO(b/234876414): This should depend on embOS but our third parties
- # currently do not have Bazel support.
-)
-
-pw_cc_library(
- name = "yield",
deps = [
- ":yield_headers",
"//pw_thread:yield_facade",
],
+ # TODO: b/234876414 - This should depend on embOS but our third parties
+ # currently do not have Bazel support.
)
pw_cc_library(
@@ -166,13 +138,13 @@ pw_cc_library(
"public/pw_thread_embos/util.h",
],
includes = ["public"],
- # TODO(b/260637734): This target doesn't build
+ # TODO: b/260637734 - This target doesn't build
tags = ["manual"],
deps = [
"//pw_function",
"//pw_status",
],
- # TODO(b/234876414): This should depend on embOS but our third parties
+ # TODO: b/234876414 - This should depend on embOS but our third parties
# currently do not have Bazel support.
)
@@ -185,7 +157,7 @@ pw_cc_library(
"public/pw_thread_embos/snapshot.h",
],
includes = ["public"],
- # TODO(b/260637734): This target doesn't build
+ # TODO: b/260637734 - This target doesn't build
tags = ["manual"],
deps = [
":util",
@@ -196,6 +168,6 @@ pw_cc_library(
"//pw_status",
"//pw_thread:snapshot",
],
- # TODO(b/234876414): This should depend on embOS but our third parties
+ # TODO: b/234876414 - This should depend on embOS but our third parties
# currently do not have Bazel support.
)