spl-core 7.1.0__py3-none-any.whl → 7.2.0__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 +40 -22
- {spl_core-7.1.0.dist-info → spl_core-7.2.0.dist-info}/METADATA +2 -2
- {spl_core-7.1.0.dist-info → spl_core-7.2.0.dist-info}/RECORD +7 -7
- {spl_core-7.1.0.dist-info → spl_core-7.2.0.dist-info}/LICENSE +0 -0
- {spl_core-7.1.0.dist-info → spl_core-7.2.0.dist-info}/WHEEL +0 -0
- {spl_core-7.1.0.dist-info → spl_core-7.2.0.dist-info}/entry_points.txt +0 -0
spl_core/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "7.
|
|
1
|
+
__version__ = "7.2.0"
|
spl_core/common.cmake
CHANGED
|
@@ -505,30 +505,18 @@ function(_spl_coverage_create_overall_report)
|
|
|
505
505
|
endif(_SPL_COVERAGE_CREATE_OVERALL_REPORT_IS_NECESSARY)
|
|
506
506
|
endfunction(_spl_coverage_create_overall_report)
|
|
507
507
|
|
|
508
|
-
macro(
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
set(PROD_PARTIAL_LINK prod_partial_${COMPONENT_NAME}.obj)
|
|
513
|
-
set(MOCK_SRC mockup_${COMPONENT_NAME}.cc)
|
|
514
|
-
|
|
515
|
-
add_executable(${exe_name}
|
|
516
|
-
${TEST_SOURCES}
|
|
517
|
-
${MOCK_SRC}
|
|
518
|
-
)
|
|
519
|
-
|
|
520
|
-
# Create the component library
|
|
521
|
-
add_library(${COMPONENT_NAME} OBJECT ${SOURCES})
|
|
508
|
+
macro(_spl_set_test_compile_and_link_options compilerId compilerVersion)
|
|
509
|
+
if(NOT ${compilerId} STREQUAL "GNU")
|
|
510
|
+
message(FATAL_ERROR "Unsupported compiler: ${compilerId} ${compilerVersion}")
|
|
511
|
+
endif()
|
|
522
512
|
|
|
523
513
|
# Define list of test specific compile options for all sources
|
|
524
514
|
# -ggdb: Produce debugging information to be able to set breakpoints.
|
|
525
515
|
# -save-temps: save temporary files like preprocessed ones for debugging purposes
|
|
526
516
|
set(TEST_COMPILE_OPTIONS -ggdb -save-temps)
|
|
527
517
|
|
|
528
|
-
target_compile_options(${exe_name} PRIVATE ${TEST_COMPILE_OPTIONS})
|
|
529
|
-
|
|
530
518
|
# Coverage data is only generated for the component's sources
|
|
531
|
-
|
|
519
|
+
set(COMPONENT_TEST_COMPILE_OPTIONS --coverage ${TEST_COMPILE_OPTIONS})
|
|
532
520
|
|
|
533
521
|
# Define list of test specific compile options for all sources
|
|
534
522
|
# SPLE_UNIT_TESTING: add possibility to configure the code for unit testing
|
|
@@ -542,14 +530,43 @@ macro(_spl_add_test_suite COMPONENT_NAME PROD_SRC TEST_SOURCES)
|
|
|
542
530
|
static_scope_file=
|
|
543
531
|
)
|
|
544
532
|
|
|
545
|
-
|
|
533
|
+
set(TEST_LINK_OPTIONS -ggdb --coverage)
|
|
546
534
|
|
|
547
|
-
|
|
535
|
+
if(${compilerVersion} VERSION_GREATER_EQUAL 14.2)
|
|
536
|
+
# -fcondition-coverage: generate coverage data for conditionals
|
|
537
|
+
list(APPEND COMPONENT_TEST_COMPILE_OPTIONS -fcondition-coverage)
|
|
538
|
+
list(APPEND TEST_LINK_OPTIONS -fcondition-coverage)
|
|
539
|
+
message(STATUS "Condition coverage is enabled.")
|
|
540
|
+
else()
|
|
541
|
+
message(STATUS "Condition coverage is not supported by this compiler version.")
|
|
542
|
+
endif()
|
|
543
|
+
endmacro(_spl_set_test_compile_and_link_options)
|
|
548
544
|
|
|
549
|
-
|
|
550
|
-
|
|
545
|
+
macro(_spl_add_test_suite COMPONENT_NAME PROD_SRC TEST_SOURCES)
|
|
546
|
+
_spl_set_coverage_create_overall_report_is_necessary()
|
|
547
|
+
|
|
548
|
+
set(exe_name ${COMPONENT_NAME}_test)
|
|
549
|
+
set(PROD_PARTIAL_LINK prod_partial_${COMPONENT_NAME}.obj)
|
|
550
|
+
set(MOCK_SRC mockup_${COMPONENT_NAME}.cc)
|
|
551
|
+
|
|
552
|
+
_spl_set_test_compile_and_link_options(${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION})
|
|
553
|
+
|
|
554
|
+
add_executable(${exe_name}
|
|
555
|
+
${TEST_SOURCES}
|
|
556
|
+
${MOCK_SRC}
|
|
551
557
|
)
|
|
552
558
|
|
|
559
|
+
target_compile_options(${exe_name} PRIVATE ${TEST_COMPILE_OPTIONS})
|
|
560
|
+
target_compile_definitions(${exe_name} PRIVATE ${TEST_COMPILE_DEFINITIONS})
|
|
561
|
+
target_link_options(${exe_name} PRIVATE ${TEST_LINK_OPTIONS})
|
|
562
|
+
|
|
563
|
+
# Create the component library for its productive sources
|
|
564
|
+
add_library(${COMPONENT_NAME} OBJECT ${SOURCES})
|
|
565
|
+
|
|
566
|
+
target_compile_options(${COMPONENT_NAME} PRIVATE ${COMPONENT_TEST_COMPILE_OPTIONS})
|
|
567
|
+
|
|
568
|
+
target_compile_definitions(${COMPONENT_NAME} PRIVATE ${TEST_COMPILE_DEFINITIONS})
|
|
569
|
+
|
|
553
570
|
add_custom_command(
|
|
554
571
|
OUTPUT ${PROD_PARTIAL_LINK}
|
|
555
572
|
COMMAND ${CMAKE_CXX_COMPILER} -r -nostdlib -o ${PROD_PARTIAL_LINK} $<TARGET_OBJECTS:${COMPONENT_NAME}>
|
|
@@ -626,7 +643,7 @@ macro(_spl_add_test_suite COMPONENT_NAME PROD_SRC TEST_SOURCES)
|
|
|
626
643
|
)
|
|
627
644
|
|
|
628
645
|
gtest_discover_tests(${exe_name})
|
|
629
|
-
endmacro()
|
|
646
|
+
endmacro(_spl_add_test_suite)
|
|
630
647
|
|
|
631
648
|
macro(spl_add_conan_requires requirement)
|
|
632
649
|
list(APPEND CONAN__REQUIRES ${requirement})
|
|
@@ -690,6 +707,7 @@ macro(_spl_set_ninja_wrapper_as_cmake_make)
|
|
|
690
707
|
else()
|
|
691
708
|
set(NINJA_WRAPPER ${CMAKE_SOURCE_DIR}/build/${VARIANT}/${BUILD_KIT}/ninja_wrapper.bat)
|
|
692
709
|
endif()
|
|
710
|
+
|
|
693
711
|
file(WRITE ${NINJA_WRAPPER}
|
|
694
712
|
"@echo off
|
|
695
713
|
@call %~dp0%/activate_run.bat
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: spl-core
|
|
3
|
-
Version: 7.
|
|
3
|
+
Version: 7.2.0
|
|
4
4
|
Summary: Software Product Line Support for CMake
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Avengineers
|
|
@@ -18,7 +18,7 @@ Classifier: Topic :: Software Development :: Libraries
|
|
|
18
18
|
Requires-Dist: cookiecutter (==2.1.1)
|
|
19
19
|
Requires-Dist: doxysphinx (>=3.3,<4.0)
|
|
20
20
|
Requires-Dist: gcovr (>=8.3,<9.0)
|
|
21
|
-
Requires-Dist: hammocking (>=0.
|
|
21
|
+
Requires-Dist: hammocking (>=0.5,<0.6)
|
|
22
22
|
Requires-Dist: kconfiglib (>=14.1,<15.0)
|
|
23
23
|
Requires-Dist: mlx-traceability (>=10.0,<11.0)
|
|
24
24
|
Requires-Dist: myst-parser (>=0.16)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
spl_core/__init__.py,sha256=
|
|
1
|
+
spl_core/__init__.py,sha256=LltgKarREAvEui2nrEP4Zpe6CPFpqvS_Hp12Nz9Xgi4,22
|
|
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=6Ug5U2sbkoFwurfETARq6vFFmiJw3IHithJHbxJvfWQ,33638
|
|
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
|
|
@@ -60,8 +60,8 @@ spl_core/main.py,sha256=_hL4j155WZMXog_755bgAH1PeUwvTdJZvVdVw9EWhvo,1225
|
|
|
60
60
|
spl_core/spl.cmake,sha256=42gb79k9nNklSdlx9F-yr-DDkGGxB56FnAnX35thvco,4541
|
|
61
61
|
spl_core/test_utils/base_variant_test_runner.py,sha256=E5EtAX5qTLQbofIZ9eZoCx2SNd1CTm1HtEKqEn014fA,3493
|
|
62
62
|
spl_core/test_utils/spl_build.py,sha256=OO7rIZpBb7EP87D39NeTK4XH17x3xNfwRI5YHPBvGgY,6041
|
|
63
|
-
spl_core-7.
|
|
64
|
-
spl_core-7.
|
|
65
|
-
spl_core-7.
|
|
66
|
-
spl_core-7.
|
|
67
|
-
spl_core-7.
|
|
63
|
+
spl_core-7.2.0.dist-info/LICENSE,sha256=UjjA0o8f5tT3wVm7qodTLAhPWLl6kgVyn9FPAd1VeYY,1099
|
|
64
|
+
spl_core-7.2.0.dist-info/METADATA,sha256=5O6xH4a0rUiJU2TY-B51wRqozSQEB6-Mr__tDxfuq-U,5156
|
|
65
|
+
spl_core-7.2.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
66
|
+
spl_core-7.2.0.dist-info/entry_points.txt,sha256=18_sdVY93N1GVBiAHxQ_F9ZM-bBvOmVMOMn7PNe2EqU,45
|
|
67
|
+
spl_core-7.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|