blob: 153af3924323265226c19cc49cce4162456eac43 [file] [log] [blame]
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -08001# Copyright 2020 The Pigweed Authors
2#
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
5# the License at
6#
7# https://www.apache.org/licenses/LICENSE-2.0
8#
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
13# the License.
14
15load(
16 "//pw_build:pigweed.bzl",
17 "pw_cc_library",
18)
19
20package(default_visibility = ["//visibility:public"])
21
Rob Mohr5fc25412021-06-23 09:35:23 -070022licenses(["notice"])
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -080023
24pw_cc_library(
Ewout van Bekkum242a27c2021-12-20 08:59:35 -080025 name = "context_headers",
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -080026 hdrs = [
Ewout van Bekkumc4237482020-12-17 09:52:06 -080027 "public/pw_interrupt_cortex_m/context_inline.h",
28 "public_overrides/pw_interrupt_backend/context_inline.h",
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -080029 ],
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -080030 includes = [
31 "public",
32 "public_overrides",
33 ],
Ewout van Bekkum242a27c2021-12-20 08:59:35 -080034 deps = [
Ted Pudlik64110f52022-01-14 21:09:44 +000035 "//pw_preprocessor:cortex_m",
Ewout van Bekkum242a27c2021-12-20 08:59:35 -080036 ],
37)
38
39pw_cc_library(
40 name = "context",
41 deps = [
42 ":context_headers",
43 "//pw_interrupt:context_facade",
44 ],
45)
46
47# The following targets are deprecated, depend on ":context" instead.
48pw_cc_library(
49 name = "context_armv7m_headers",
50 deps = [
51 ":context_headers",
52 ],
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -080053)
54
55pw_cc_library(
56 name = "context_armv7m",
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -080057 deps = [
Ewout van Bekkum242a27c2021-12-20 08:59:35 -080058 ":context",
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -080059 ],
60)
61
62pw_cc_library(
63 name = "context_armv8m_headers",
Ewout van Bekkum242a27c2021-12-20 08:59:35 -080064 deps = [
65 ":context_headers",
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -080066 ],
67)
68
69pw_cc_library(
70 name = "context_armv8m",
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -080071 deps = [
Ewout van Bekkum242a27c2021-12-20 08:59:35 -080072 ":context",
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -080073 ],
74)