spl-core 7.9.0__tar.gz → 7.10.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {spl_core-7.9.0 → spl_core-7.10.0}/PKG-INFO +1 -1
- {spl_core-7.9.0 → spl_core-7.10.0}/pyproject.toml +1 -1
- spl_core-7.10.0/src/spl_core/__init__.py +1 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/common.cmake +91 -13
- spl_core-7.9.0/src/spl_core/__init__.py +0 -1
- {spl_core-7.9.0 → spl_core-7.10.0}/LICENSE +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/README.md +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/__run.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/common/__init__.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/common/path.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/conan.cmake +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/config/KConfig +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/gcov_maid/__init__.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/gcov_maid/gcov_maid.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kconfig/__init__.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kconfig/kconfig.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kconfig.cmake +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/__init__.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/create.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/.vscode/cmake-variants.json +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/KConfig +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/src/greeter/CMakeLists.txt +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/src/greeter/doc/_images/screenshot.png +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/src/greeter/doc/index.rst +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/src/greeter/src/greeter.c +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/src/greeter/src/greeter.h +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/src/greeter/test/test_greeter.cc +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/src/main/CMakeLists.txt +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/src/main/doc/index.rst +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/src/main/src/main.c +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/test/EnglishVariant/test__EnglishVariant.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/test/German/test__GermanVariant.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/variants/EnglishVariant/config.cmake +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/variants/EnglishVariant/parts.cmake +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/variants/GermanVariant/config.cmake +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/variants/GermanVariant/config.txt +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/variants/GermanVariant/parts.cmake +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/.gitignore +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/.vscode/cmake-kits.json +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/.vscode/extensions.json +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/.vscode/launch.json +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/.vscode/settings.json +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/.vscode/tasks.json +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/CMakeLists.txt +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/README.md +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/bootstrap.json +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/build.bat +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/build.ps1 +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/conf.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/doc/Doxyfile.in +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/doc/common/index.rst +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/doc/components/index.rst +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/doc/doxygen-awesome/LICENSE +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/doc/doxygen-awesome/doxygen-awesome.css +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/doc/software_architecture/index.rst +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/doc/software_requirements/index.rst +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/doc/test_report_template.txt +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/index.rst +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/pypeline.yaml +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/pyproject.toml +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/pytest.ini +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/scoopfile.json +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/tools/toolchains/clang/toolchain.cmake +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/tools/toolchains/gcc/toolchain.cmake +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/main.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/spl.cmake +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/steps/collect_pr_changes.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/test_utils/archive_artifacts_collection.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/test_utils/base_variant_test_runner.py +0 -0
- {spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/test_utils/spl_build.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "7.10.0"
|
|
@@ -10,31 +10,81 @@ macro(_spl_get_absolute_path out in)
|
|
|
10
10
|
endif()
|
|
11
11
|
endmacro()
|
|
12
12
|
|
|
13
|
+
# SPL_ADD_COMPONENT
|
|
14
|
+
#
|
|
15
|
+
# Arguments:
|
|
16
|
+
#
|
|
17
|
+
# component_path - the path to the component's directory
|
|
18
|
+
# [target_executable] - (optional) name of the target executable. This is the second argument of the macro.
|
|
19
|
+
#
|
|
20
|
+
# Needs to know:
|
|
21
|
+
#
|
|
22
|
+
# component_path - because it must call add_subdirectory to the component's directory
|
|
23
|
+
# target_executable
|
|
24
|
+
# - required to determine the build directory for the component (one can not call add_subdirectory
|
|
25
|
+
# for the same component multiple times with the same build directory)
|
|
26
|
+
# - must be set to the "global" scope because it is required in spl_create_component to append it to the component name.
|
|
27
|
+
# spl_create_component gets to decide the component name and will make it "global" for this macro to read it back.
|
|
28
|
+
#
|
|
13
29
|
macro(spl_add_component component_path)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
add_subdirectory(${CMAKE_SOURCE_DIR}/${component_path})
|
|
30
|
+
set(target_executable "${ARGV1}")
|
|
31
|
+
message(DEBUG "spl_add_component: component_path=${component_path}, target_executable=${target_executable}")
|
|
17
32
|
|
|
18
|
-
|
|
33
|
+
# Set global variables for spl_create_component
|
|
34
|
+
unset(GLOBAL__SPL_ADD_COMPONENT__TARGET_EXECUTABLE)
|
|
35
|
+
if("${target_executable}" STREQUAL "")
|
|
36
|
+
set(target_executable ${LINK_TARGET_NAME})
|
|
37
|
+
add_subdirectory(${CMAKE_SOURCE_DIR}/${component_path})
|
|
38
|
+
else()
|
|
39
|
+
set(GLOBAL__SPL_ADD_COMPONENT__TARGET_EXECUTABLE "${target_executable}")
|
|
40
|
+
add_subdirectory(${CMAKE_SOURCE_DIR}/${component_path} "${CMAKE_BINARY_DIR}/${target_executable}/${component_path}")
|
|
41
|
+
endif()
|
|
42
|
+
# Add the newly created component to the linked libraries
|
|
43
|
+
if(TARGET ${GLOBAL__SPL_CREATE_COMPONENT__NEW_COMPONENT_NAME})
|
|
19
44
|
if(BUILD_KIT STREQUAL prod)
|
|
20
|
-
target_link_libraries(${
|
|
45
|
+
target_link_libraries(${target_executable} ${GLOBAL__SPL_CREATE_COMPONENT__NEW_COMPONENT_NAME})
|
|
21
46
|
endif()
|
|
22
47
|
endif()
|
|
23
48
|
endmacro()
|
|
24
49
|
|
|
50
|
+
# SPL_ADD_NAMED_COMPONENT
|
|
51
|
+
#
|
|
52
|
+
# Arguments:
|
|
53
|
+
#
|
|
54
|
+
# component_name - the name of the component. (!) This macro expects that a CMake variable with this name holds the component path.
|
|
55
|
+
# This means that ${${component_name}} is the component path.
|
|
56
|
+
# [target_executable] - (optional) name of the target executable.
|
|
57
|
+
#
|
|
58
|
+
# Needs to know:
|
|
59
|
+
#
|
|
60
|
+
# component_path - because it must call add_subdirectory to the component's directory
|
|
61
|
+
# target_executable
|
|
62
|
+
# - required to determine the build directory for the component (one can not call add_subdirectory
|
|
63
|
+
# for the same component multiple times without specifying the build directory)
|
|
64
|
+
# - must be set to the "global" scope because it is required in spl_create_component to append it to the component name
|
|
65
|
+
#
|
|
25
66
|
macro(spl_add_named_component component_name)
|
|
26
|
-
|
|
67
|
+
set(target_executable "${ARGV1}")
|
|
27
68
|
set(component_path ${${component_name}})
|
|
69
|
+
if(NOT IS_ABSOLUTE ${component_path})
|
|
70
|
+
set(component_path ${CMAKE_SOURCE_DIR}/${component_path})
|
|
71
|
+
endif()
|
|
72
|
+
message(DEBUG "spl_add_named_component: component_name=${component_name}, component_path=${component_path}, target_executable=${target_executable}")
|
|
28
73
|
|
|
29
|
-
|
|
74
|
+
# Set global variables for spl_create_component
|
|
75
|
+
unset(GLOBAL__SPL_ADD_COMPONENT__TARGET_EXECUTABLE)
|
|
76
|
+
if("${target_executable}" STREQUAL "")
|
|
77
|
+
set(target_executable ${LINK_TARGET_NAME})
|
|
30
78
|
add_subdirectory(${component_path})
|
|
31
79
|
else()
|
|
32
|
-
|
|
80
|
+
set(GLOBAL__SPL_ADD_COMPONENT__TARGET_EXECUTABLE "${target_executable}")
|
|
81
|
+
add_subdirectory(${component_path} "${CMAKE_BINARY_DIR}/${target_executable}/${component_name}")
|
|
33
82
|
endif()
|
|
34
83
|
|
|
35
|
-
|
|
84
|
+
# Add the newly created component to the linked libraries
|
|
85
|
+
if(TARGET ${GLOBAL__SPL_CREATE_COMPONENT__NEW_COMPONENT_NAME})
|
|
36
86
|
if(BUILD_KIT STREQUAL prod)
|
|
37
|
-
target_link_libraries(${
|
|
87
|
+
target_link_libraries(${target_executable} ${GLOBAL__SPL_CREATE_COMPONENT__NEW_COMPONENT_NAME})
|
|
38
88
|
endif()
|
|
39
89
|
endif()
|
|
40
90
|
endmacro()
|
|
@@ -121,6 +171,20 @@ macro(_spl_get_google_test)
|
|
|
121
171
|
enable_testing()
|
|
122
172
|
endmacro(_spl_get_google_test)
|
|
123
173
|
|
|
174
|
+
# SPL_CREATE_COMPONENT
|
|
175
|
+
#
|
|
176
|
+
# Arguments (they are all optional):
|
|
177
|
+
#
|
|
178
|
+
# NAME - Use this as component name instead of define it from the component path.
|
|
179
|
+
# LONG_NAME - A longer name of the component to be used in reports.
|
|
180
|
+
# LIBRARY_TYPE - The type of library to create (e.g., STATIC, SHARED, OBJECT)
|
|
181
|
+
#
|
|
182
|
+
# Needs to know:
|
|
183
|
+
# - target_executable - global variable set by the spl_add_component macros to make sure different component
|
|
184
|
+
# names are used for different executables
|
|
185
|
+
#
|
|
186
|
+
# The component name will be made "global" such that the spl_add_compoent macro can add it to the executable
|
|
187
|
+
#
|
|
124
188
|
macro(spl_create_component)
|
|
125
189
|
cmake_parse_arguments(CREATE_COMPONENT "" "NAME;LONG_NAME;LIBRARY_TYPE" "" ${ARGN})
|
|
126
190
|
|
|
@@ -132,11 +196,22 @@ macro(spl_create_component)
|
|
|
132
196
|
# Determine the unique component name based on the relative path of the component
|
|
133
197
|
file(RELATIVE_PATH component_path ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_LIST_DIR})
|
|
134
198
|
|
|
199
|
+
unset(GLOBAL__SPL_CREATE_COMPONENT__NEW_COMPONENT_NAME)
|
|
135
200
|
if(NOT CREATE_COMPONENT_NAME)
|
|
201
|
+
# The component relative path to the project root dictates the component name
|
|
136
202
|
_spl_slash_to_underscore(component_name ${component_path})
|
|
137
203
|
else()
|
|
204
|
+
# Explicit name provided - use it as-is
|
|
138
205
|
set(component_name ${CREATE_COMPONENT_NAME})
|
|
139
206
|
endif()
|
|
207
|
+
# If there is a custom target executable, prefix the component name
|
|
208
|
+
if(GLOBAL__SPL_ADD_COMPONENT__TARGET_EXECUTABLE)
|
|
209
|
+
set(component_name ${GLOBAL__SPL_ADD_COMPONENT__TARGET_EXECUTABLE}_${component_name})
|
|
210
|
+
endif()
|
|
211
|
+
# Make the component name public
|
|
212
|
+
set(GLOBAL__SPL_CREATE_COMPONENT__NEW_COMPONENT_NAME ${component_name} PARENT_SCOPE)
|
|
213
|
+
|
|
214
|
+
message(DEBUG "spl_create_component: component_name=${component_name}")
|
|
140
215
|
|
|
141
216
|
# Collect all productive sources for later usage (e.g., in an extension)
|
|
142
217
|
list(APPEND PROD_SOURCES ${SOURCES})
|
|
@@ -193,8 +268,9 @@ macro(spl_create_component)
|
|
|
193
268
|
\"reports_output_dir\": \"\"
|
|
194
269
|
}")
|
|
195
270
|
set(_component_is_header_only FALSE)
|
|
271
|
+
|
|
196
272
|
# If prod and sources or test and test_sources define library. Else make it an interface and set the flag
|
|
197
|
-
if
|
|
273
|
+
if((BUILD_KIT STREQUAL prod AND SOURCES) OR
|
|
198
274
|
(BUILD_KIT STREQUAL test AND TEST_SOURCES))
|
|
199
275
|
add_library(${component_name} ${CREATE_COMPONENT_LIBRARY_TYPE} ${SOURCES})
|
|
200
276
|
else()
|
|
@@ -367,6 +443,7 @@ Code Coverage
|
|
|
367
443
|
# Implicitly add default include directories to provided interfaces
|
|
368
444
|
list(APPEND PROVIDED_INTERFACES ${CMAKE_CURRENT_LIST_DIR}/src)
|
|
369
445
|
list(APPEND PROVIDED_INTERFACES ${CMAKE_CURRENT_BINARY_DIR})
|
|
446
|
+
|
|
370
447
|
# Get rid of duplicates, in case the default directories where explicitly defined
|
|
371
448
|
list(REMOVE_DUPLICATES PROVIDED_INTERFACES)
|
|
372
449
|
|
|
@@ -382,12 +459,13 @@ Code Coverage
|
|
|
382
459
|
# Define the target public interfaces to be used instead of the global include directories.
|
|
383
460
|
if(TARGET ${component_name})
|
|
384
461
|
foreach(interfaceDir IN LISTS PROVIDED_INTERFACES)
|
|
385
|
-
if
|
|
462
|
+
if(_component_is_header_only)
|
|
386
463
|
target_include_directories(${component_name} INTERFACE ${interfaceDir})
|
|
387
464
|
else()
|
|
388
465
|
target_include_directories(${component_name} PUBLIC ${interfaceDir})
|
|
389
466
|
endif()
|
|
390
467
|
endforeach()
|
|
468
|
+
|
|
391
469
|
foreach(component IN LISTS REQUIRED_INTERFACES)
|
|
392
470
|
if(_component_is_header_only)
|
|
393
471
|
target_link_libraries(${component_name} INTERFACE ${component})
|
|
@@ -740,7 +818,7 @@ macro(spl_run_conan)
|
|
|
740
818
|
endmacro(spl_run_conan)
|
|
741
819
|
|
|
742
820
|
macro(_spl_set_ninja_wrapper_as_cmake_make)
|
|
743
|
-
set
|
|
821
|
+
set(NINJA_WRAPPER ${CMAKE_CURRENT_BINARY_DIR}/ninja_wrapper.bat)
|
|
744
822
|
file(WRITE ${NINJA_WRAPPER}
|
|
745
823
|
"@echo off
|
|
746
824
|
@call %~dp0%/activate_run.bat
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "7.9.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/application/src/main/src/main.c
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/.vscode/cmake-kits.json
RENAMED
|
File without changes
|
{spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/.vscode/extensions.json
RENAMED
|
File without changes
|
{spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/.vscode/launch.json
RENAMED
|
File without changes
|
{spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/.vscode/settings.json
RENAMED
|
File without changes
|
{spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/.vscode/tasks.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/doc/common/index.rst
RENAMED
|
File without changes
|
{spl_core-7.9.0 → spl_core-7.10.0}/src/spl_core/kickstart/templates/project/doc/components/index.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|