spl-core 7.2.6__py3-none-any.whl → 7.3.0rc1__py3-none-any.whl
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/__init__.py +1 -1
- spl_core/common.cmake +75 -3
- {spl_core-7.2.6.dist-info → spl_core-7.3.0rc1.dist-info}/METADATA +1 -1
- {spl_core-7.2.6.dist-info → spl_core-7.3.0rc1.dist-info}/RECORD +7 -7
- {spl_core-7.2.6.dist-info → spl_core-7.3.0rc1.dist-info}/LICENSE +0 -0
- {spl_core-7.2.6.dist-info → spl_core-7.3.0rc1.dist-info}/WHEEL +0 -0
- {spl_core-7.2.6.dist-info → spl_core-7.3.0rc1.dist-info}/entry_points.txt +0 -0
spl_core/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "7.
|
|
1
|
+
__version__ = "7.3.0-rc.1"
|
spl_core/common.cmake
CHANGED
|
@@ -183,9 +183,9 @@ macro(spl_create_component)
|
|
|
183
183
|
\"reports_output_dir\": \"\"
|
|
184
184
|
}")
|
|
185
185
|
|
|
186
|
-
|
|
187
|
-
list(APPEND target_include_directories__INCLUDES ${
|
|
188
|
-
|
|
186
|
+
# handle include directories with global variable
|
|
187
|
+
#list(APPEND target_include_directories__INCLUDES ${CMAKE_CURRENT_LIST_DIR}/src)
|
|
188
|
+
#list(APPEND target_include_directories__INCLUDES ${CMAKE_CURRENT_BINARY_DIR})
|
|
189
189
|
list(APPEND target_include_directories__INCLUDES ${INCLUDES})
|
|
190
190
|
list(REMOVE_DUPLICATES target_include_directories__INCLUDES)
|
|
191
191
|
set(target_include_directories__INCLUDES ${target_include_directories__INCLUDES} PARENT_SCOPE)
|
|
@@ -355,6 +355,10 @@ Code Coverage
|
|
|
355
355
|
endif(EXISTS ${_component_doc_file})
|
|
356
356
|
endif(BUILD_KIT STREQUAL prod)
|
|
357
357
|
|
|
358
|
+
# handle include directories with spl_macros
|
|
359
|
+
spl_add_provided_interfaces("${CMAKE_CURRENT_LIST_DIR}/src")
|
|
360
|
+
spl_add_provided_interfaces("${CMAKE_CURRENT_BINARY_DIR}")
|
|
361
|
+
|
|
358
362
|
# Collect all component info for later usage (e.g., in an extension)
|
|
359
363
|
list(APPEND COMPONENTS_INFO ${_component_info})
|
|
360
364
|
set(COMPONENTS_INFO ${COMPONENTS_INFO} PARENT_SCOPE)
|
|
@@ -740,3 +744,71 @@ macro(_spl_create_build_info_file)
|
|
|
740
744
|
]
|
|
741
745
|
}")
|
|
742
746
|
endmacro()
|
|
747
|
+
|
|
748
|
+
macro(spl_add_provided_interfaces list_of_directories)
|
|
749
|
+
# Collect all provided interfaces for later usage (e.g., in an extension)
|
|
750
|
+
if(TARGET ${component_name})
|
|
751
|
+
get_target_property(provided_interfaces ${component_name} PROVIDED_INTERFACES)
|
|
752
|
+
if(provided_interfaces STREQUAL "provided_interfaces-NOTFOUND")
|
|
753
|
+
set_target_properties(${component_name} PROPERTIES PROVIDED_INTERFACES "${list_of_directories}")
|
|
754
|
+
else()
|
|
755
|
+
list(APPEND provided_interfaces ${list_of_directories})
|
|
756
|
+
set_target_properties(${component_name} PROPERTIES PROVIDED_INTERFACES "${provided_interfaces}")
|
|
757
|
+
endif()
|
|
758
|
+
endif()
|
|
759
|
+
list(APPEND target_include_directories__INCLUDES ${list_of_directories})
|
|
760
|
+
list(REMOVE_DUPLICATES target_include_directories__INCLUDES)
|
|
761
|
+
set(target_include_directories__INCLUDES ${target_include_directories__INCLUDES} PARENT_SCOPE)
|
|
762
|
+
endmacro()
|
|
763
|
+
|
|
764
|
+
macro(spl_add_required_interfaces list_of_interfaces)
|
|
765
|
+
if(TARGET ${component_name})
|
|
766
|
+
get_target_property(required_interfaces ${component_name} REQUIRED_INTERFACES)
|
|
767
|
+
if(required_interfaces STREQUAL "required_interfaces-NOTFOUND")
|
|
768
|
+
set_target_properties(${component_name} PROPERTIES REQUIRED_INTERFACES "${list_of_interfaces}")
|
|
769
|
+
else()
|
|
770
|
+
list(APPEND required_interfaces ${list_of_interfaces})
|
|
771
|
+
set_target_properties(${component_name} PROPERTIES REQUIRED_INTERFACES "${required_interfaces}")
|
|
772
|
+
endif()
|
|
773
|
+
endif()
|
|
774
|
+
endmacro()
|
|
775
|
+
|
|
776
|
+
macro(spl_resolve_interfaces)
|
|
777
|
+
foreach(component_name ${COMPONENT_NAMES})
|
|
778
|
+
if(TARGET ${component_name})
|
|
779
|
+
# get provided interfaces
|
|
780
|
+
get_target_property(COMP_PROVIDED_INTERFACES ${component_name} PROVIDED_INTERFACES)
|
|
781
|
+
if(NOT COMP_PROVIDED_INTERFACES STREQUAL "COMP_PROVIDED_INTERFACES-NOTFOUND")
|
|
782
|
+
target_include_directories(${component_name} PUBLIC ${COMP_PROVIDED_INTERFACES})
|
|
783
|
+
endif()
|
|
784
|
+
|
|
785
|
+
# get required interfaces
|
|
786
|
+
set(COMP_REQUIRED_INTERFACES "")
|
|
787
|
+
get_target_property(REQUIRED_INTERFACES ${component_name} REQUIRED_INTERFACES)
|
|
788
|
+
if(NOT REQUIRED_INTERFACES STREQUAL "REQUIRED_INTERFACES-NOTFOUND")
|
|
789
|
+
foreach(interface ${REQUIRED_INTERFACES})
|
|
790
|
+
if (TARGET ${interface})
|
|
791
|
+
# if the interface is a target, we can get the provided interfaces
|
|
792
|
+
get_target_property(IF_PROVIDED_INTERFACES ${interface} PROVIDED_INTERFACES)
|
|
793
|
+
list(APPEND COMP_REQUIRED_INTERFACES ${IF_PROVIDED_INTERFACES})
|
|
794
|
+
else()
|
|
795
|
+
# if the interface is not a target, we assume it is a path to an include directory
|
|
796
|
+
_spl_get_absolute_path(absolute_interface ${interface})
|
|
797
|
+
if(EXISTS "${absolute_interface}" AND IS_DIRECTORY "${absolute_interface}")
|
|
798
|
+
list(APPEND COMP_REQUIRED_INTERFACES ${absolute_interface})
|
|
799
|
+
# support the old way of handling includes
|
|
800
|
+
list(APPEND target_include_directories__INCLUDES ${absolute_interface})
|
|
801
|
+
else()
|
|
802
|
+
message(WARNING "Required interface ${interface} not found for component ${component_name}.")
|
|
803
|
+
endif()
|
|
804
|
+
endif()
|
|
805
|
+
endforeach()
|
|
806
|
+
list(REMOVE_DUPLICATES target_include_directories__INCLUDES)
|
|
807
|
+
else()
|
|
808
|
+
set(COMP_REQUIRED_INTERFACES ${target_include_directories__INCLUDES})
|
|
809
|
+
endif()
|
|
810
|
+
# add the include directories to the component
|
|
811
|
+
target_include_directories(${component_name} PUBLIC ${COMP_REQUIRED_INTERFACES})
|
|
812
|
+
endif()
|
|
813
|
+
endforeach()
|
|
814
|
+
endmacro()
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
spl_core/__init__.py,sha256=
|
|
1
|
+
spl_core/__init__.py,sha256=pcZqImwEeeM3HF5nKn0a3vnNloNDkk2WAoxb5Uol4x8,27
|
|
2
2
|
spl_core/__run.py,sha256=DphnN7_Bjiw_mOOztsHxTDHS8snz1g2MMWAaJpZxPKM,361
|
|
3
3
|
spl_core/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
spl_core/common/command_line_executor.py,sha256=GHIMpNiMD_eP44vq7L_HiC08aKt7lgW_wn_omU6REwQ,2217
|
|
5
5
|
spl_core/common/path.py,sha256=sDujd3n4XP1XGjHc7ImXEdjihO6A8BOIDbKCf7HgQ0Y,462
|
|
6
|
-
spl_core/common.cmake,sha256=
|
|
6
|
+
spl_core/common.cmake,sha256=gyKql9oSldlqrVSQewibzZe5u8XPncBKi4jddje0IhE,37371
|
|
7
7
|
spl_core/conan.cmake,sha256=i1AuyN-e8cczX7TI1nl6e3Y8N-EP-QXPVY7LG6NUyJY,41958
|
|
8
8
|
spl_core/config/KConfig,sha256=atlUwl0kPIdoGjbOI2PoaCQ2wgao7-mblZKn3dXUCxI,1755
|
|
9
9
|
spl_core/gcov_maid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -61,8 +61,8 @@ spl_core/main.py,sha256=_hL4j155WZMXog_755bgAH1PeUwvTdJZvVdVw9EWhvo,1225
|
|
|
61
61
|
spl_core/spl.cmake,sha256=W8h-Zj-N302qxMrRG8MhoEkJ0io92bWGp4Y5r8LBQnc,4535
|
|
62
62
|
spl_core/test_utils/base_variant_test_runner.py,sha256=E5EtAX5qTLQbofIZ9eZoCx2SNd1CTm1HtEKqEn014fA,3493
|
|
63
63
|
spl_core/test_utils/spl_build.py,sha256=OO7rIZpBb7EP87D39NeTK4XH17x3xNfwRI5YHPBvGgY,6041
|
|
64
|
-
spl_core-7.
|
|
65
|
-
spl_core-7.
|
|
66
|
-
spl_core-7.
|
|
67
|
-
spl_core-7.
|
|
68
|
-
spl_core-7.
|
|
64
|
+
spl_core-7.3.0rc1.dist-info/LICENSE,sha256=UjjA0o8f5tT3wVm7qodTLAhPWLl6kgVyn9FPAd1VeYY,1099
|
|
65
|
+
spl_core-7.3.0rc1.dist-info/METADATA,sha256=NVaL4u2SfX_NA1SZHHpldKNcRvreWrJRvsTfURBv1uo,5159
|
|
66
|
+
spl_core-7.3.0rc1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
67
|
+
spl_core-7.3.0rc1.dist-info/entry_points.txt,sha256=18_sdVY93N1GVBiAHxQ_F9ZM-bBvOmVMOMn7PNe2EqU,45
|
|
68
|
+
spl_core-7.3.0rc1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|