@@ -85,32 +85,20 @@ if (BPLIB_ENABLE_UNIT_TESTS AND BPLIB_STANDALONE_BUILD_MODE AND NOT CMAKE_CROSSC
85
85
enable_testing ()
86
86
endif ()
87
87
88
- add_subdirectory (os)
89
- add_subdirectory (common)
90
- add_subdirectory (lib)
91
- add_subdirectory (mpool)
92
- add_subdirectory (cache )
93
- add_subdirectory (v7)
88
+ add_subdirectory (cla)
89
+ add_subdirectory (aa/as)
90
+
94
91
95
92
# v7 implementation parts
96
93
list (APPEND BPLIB_SRC
97
- store/file_offload.c
98
-
99
- $<TARGET_OBJECTS:bplib_os>
100
- $<TARGET_OBJECTS:bplib_common>
101
- $<TARGET_OBJECTS:bplib_cache>
102
- $<TARGET_OBJECTS:bplib_v7>
103
- $<TARGET_OBJECTS:bplib_mpool>
104
- $<TARGET_OBJECTS:bplib_base>
94
+ $<TARGET_OBJECTS:bplib_cla>
95
+ $<TARGET_OBJECTS:bplib_as>
105
96
)
106
97
107
98
list (APPEND BPLIB_PRIVATE_INCLUDE_DIRS
108
- $<TARGET_PROPERTY:bplib_os,INTERFACE_INCLUDE_DIRECTORIES >
109
- $<TARGET_PROPERTY:bplib_base,INTERFACE_INCLUDE_DIRECTORIES >
110
- $<TARGET_PROPERTY:bplib_v7,INTERFACE_INCLUDE_DIRECTORIES >
111
- $<TARGET_PROPERTY:bplib_mpool,INTERFACE_INCLUDE_DIRECTORIES >
112
- $<TARGET_PROPERTY:bplib_cache,INTERFACE_INCLUDE_DIRECTORIES >
113
- $<TARGET_PROPERTY:bplib_common,INTERFACE_INCLUDE_DIRECTORIES >
99
+ $<TARGET_PROPERTY:bplib_cla,INTERFACE_INCLUDE_DIRECTORIES >
100
+ $<TARGET_PROPERTY:bplib_as,INTERFACE_INCLUDE_DIRECTORIES >
101
+
114
102
)
115
103
116
104
# If building as part of CFE/CFS, then the "IS_CFS_ARCH_BUILD" should be set
@@ -122,8 +110,6 @@ if (IS_CFS_ARCH_BUILD)
122
110
# The CFE build system determines whether to create a shared or static object inside this routine
123
111
add_cfe_app(bplib ${BPLIB_SRC} )
124
112
125
- target_link_libraries (bplib ${TINYCBOR_LDFLAGS} )
126
-
127
113
else ()
128
114
129
115
# Building as a standalone library
@@ -132,9 +118,6 @@ else()
132
118
# This directory may be built twice, setting this option differently to build both flavors
133
119
add_library (bplib ${BPLIB_SRC} )
134
120
135
- # link with the requisite dependencies
136
- target_link_libraries (bplib ${TINYCBOR_LDFLAGS} )
137
-
138
121
# Add in the required link libraries based on OS adapter selection
139
122
# this should preferably be in OS subdirectory, but it needs to be done
140
123
# at the bplib target which is created here.
@@ -185,13 +168,13 @@ endif()
185
168
get_target_property (IS_PIC bplib POSITION_INDEPENDENT_CODE )
186
169
if (IS_PIC)
187
170
set_target_properties (
188
- bplib_base bplib_common bplib_mpool bplib_cache bplib_v7 bplib_os
171
+ bplib_cla bplib_as
189
172
PROPERTIES POSITION_INDEPENDENT_CODE ${IS_PIC}
190
173
)
191
174
endif ()
192
175
193
176
# Set the standard compile options for all submodules (c99, full warnings)
194
- foreach (TGT bplib bplib_base bplib_common bplib_mpool bplib_cache bplib_v7 bplib_os )
177
+ foreach (TGT bplib bplib_cla bplib_as )
195
178
target_compile_features (${TGT} PRIVATE c_std_99)
196
179
target_compile_options (${TGT} PRIVATE ${BPLIB_COMMON_COMPILE_OPTIONS} )
197
180
endforeach ()
@@ -207,12 +190,8 @@ target_include_directories(bplib PUBLIC
207
190
$<INSTALL_INTERFACE:include /bplib>
208
191
)
209
192
210
- if (BPLIB_ENABLE_UNIT_TESTS)
211
- add_subdirectory (ut-stubs)
212
-
213
- # BPLib Sanity checks are only for standalone builds, sanity checks
214
- # for CFE/CFS builds should be part of the BP app, as opposed to BPLib
215
- if (NOT IS_CFS_ARCH_BUILD)
216
- add_subdirectory (ut-functional)
217
- endif (NOT IS_CFS_ARCH_BUILD)
218
- endif (BPLIB_ENABLE_UNIT_TESTS)
193
+ # BPLib Sanity checks are only for standalone builds, sanity checks
194
+ # for CFE/CFS builds should be part of the BP app, as opposed to BPLib
195
+ if (BPLIB_ENABLE_UNIT_TESTS AND NOT IS_CFS_ARCH_BUILD)
196
+ add_subdirectory (ut-functional)
197
+ endif ()
0 commit comments