Skip to content

Commit 448122d

Browse files
committed
🎨 Split interrupt into a separate library
1 parent 1573805 commit 448122d

File tree

2 files changed

+27
-19
lines changed

2 files changed

+27
-19
lines changed

CMakeLists.txt

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,35 @@ target_sources(
7373
include/match/simplify.hpp
7474
include/match/sum_of_products.hpp)
7575

76+
add_library(cib_interrupt INTERFACE)
77+
target_compile_features(cib_interrupt INTERFACE cxx_std_20)
78+
target_link_libraries_system(cib_interrupt INTERFACE cib_sc concurrency stdx)
79+
80+
target_sources(
81+
cib_interrupt
82+
INTERFACE FILE_SET
83+
interrupt
84+
TYPE
85+
HEADERS
86+
BASE_DIRS
87+
include
88+
FILES
89+
include/interrupt/concepts.hpp
90+
include/interrupt/config.hpp
91+
include/interrupt/dynamic_controller.hpp
92+
include/interrupt/fwd.hpp
93+
include/interrupt/hal.hpp
94+
include/interrupt/impl.hpp
95+
include/interrupt/manager.hpp
96+
include/interrupt/policies.hpp)
97+
7698
add_library(cib INTERFACE)
7799
target_compile_features(cib INTERFACE cxx_std_20)
78100
target_link_libraries_system(
79101
cib
80102
INTERFACE
81103
async
104+
cib_interrupt
82105
cib_match
83106
cib_sc
84107
concurrency
@@ -132,24 +155,6 @@ target_sources(
132155
include/flow/run.hpp
133156
include/flow/step.hpp)
134157

135-
target_sources(
136-
cib
137-
INTERFACE FILE_SET
138-
interrupt
139-
TYPE
140-
HEADERS
141-
BASE_DIRS
142-
include
143-
FILES
144-
include/interrupt/concepts.hpp
145-
include/interrupt/config.hpp
146-
include/interrupt/dynamic_controller.hpp
147-
include/interrupt/fwd.hpp
148-
include/interrupt/hal.hpp
149-
include/interrupt/impl.hpp
150-
include/interrupt/manager.hpp
151-
include/interrupt/policies.hpp)
152-
153158
target_sources(
154159
cib
155160
INTERFACE FILE_SET
@@ -224,6 +229,9 @@ target_sources(
224229
if(PROJECT_IS_TOP_LEVEL)
225230
add_docs(docs)
226231
clang_tidy_interface(cib)
232+
clang_tidy_interface(cib_interrupt)
233+
clang_tidy_interface(cib_match)
234+
clang_tidy_interface(cib_sc)
227235

228236
# Enable functional and performance test suites.
229237
add_subdirectory(test)

test/interrupt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ add_tests(
88
sub_irq_impl
99
policies
1010
LIBRARIES
11-
cib)
11+
cib_interrupt)

0 commit comments

Comments
 (0)