spl-core 7.1.1rc1__py3-none-any.whl → 7.2.1__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "7.1.1-rc.1"
1
+ __version__ = "7.2.1"
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(_spl_add_test_suite COMPONENT_NAME PROD_SRC TEST_SOURCES)
509
- _spl_set_coverage_create_overall_report_is_necessary()
510
-
511
- set(exe_name ${COMPONENT_NAME}_test)
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
- target_compile_options(${COMPONENT_NAME} PRIVATE --coverage -fcondition-coverage ${TEST_COMPILE_OPTIONS})
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
- target_compile_definitions(${exe_name} PRIVATE ${TEST_COMPILE_DEFINITIONS})
533
+ set(TEST_LINK_OPTIONS -ggdb --coverage)
546
534
 
547
- target_compile_definitions(${COMPONENT_NAME} PRIVATE ${TEST_COMPILE_DEFINITIONS})
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)
544
+
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)
548
551
 
549
- target_link_options(${exe_name}
550
- PRIVATE -ggdb --coverage -fcondition-coverage
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})
@@ -684,13 +701,13 @@ macro(spl_run_conan)
684
701
  endmacro(spl_run_conan)
685
702
 
686
703
  macro(_spl_set_ninja_wrapper_as_cmake_make)
687
- # if BUILD_TYPE is not empty, NINJA_WRAPPER should be placed in the build directory with build type
688
-
689
- if(BUILD_TYPE)
690
- set(NINJA_WRAPPER ${CMAKE_SOURCE_DIR}/build/${VARIANT}/${BUILD_KIT}/${BUILD_TYPE}/ninja_wrapper.bat)
704
+ # if CMAKE_BUILD_TYPE is not empty, NINJA_WRAPPER should be placed in the build directory with build type
705
+ if(CMAKE_BUILD_TYPE)
706
+ set(NINJA_WRAPPER ${CMAKE_SOURCE_DIR}/build/${VARIANT}/${BUILD_KIT}/${CMAKE_BUILD_TYPE}/ninja_wrapper.bat)
691
707
  else()
692
708
  set(NINJA_WRAPPER ${CMAKE_SOURCE_DIR}/build/${VARIANT}/${BUILD_KIT}/ninja_wrapper.bat)
693
709
  endif()
710
+
694
711
  file(WRITE ${NINJA_WRAPPER}
695
712
  "@echo off
696
713
  @call %~dp0%/activate_run.bat
@@ -4,12 +4,8 @@ from pathlib import Path
4
4
 
5
5
  def main() -> None:
6
6
  parser = argparse.ArgumentParser(description="Script with command line options")
7
- parser.add_argument(
8
- "--working-dir", help="Working directory", required=True
9
- ) # Make the option mandatory
10
- parser.add_argument(
11
- "--wipe-all-gcda", action="store_true", help="Wipe all gcda files recursively"
12
- )
7
+ parser.add_argument("--working-dir", help="Working directory", required=True) # Make the option mandatory
8
+ parser.add_argument("--wipe-all-gcda", action="store_true", help="Wipe all gcda files recursively")
13
9
  parser.add_argument(
14
10
  "--wipe-orphaned-gcno",
15
11
  action="store_true",
@@ -1,45 +1,45 @@
1
- {
2
- "python.testing.pytestEnabled": true,
3
- "python.testing.pytestArgs": [
4
- "test"
5
- ],
6
- "python.testing.unittestEnabled": false,
7
- "python.analysis.extraPaths": [
8
- "test"
9
- ],
10
- "cmake.configureOnOpen": false,
11
- "cmake.buildDirectory": "${workspaceFolder}/build/${variant:variant}/${buildKit}",
12
- "cmake.configureSettings": {
13
- "BUILD_KIT": "${buildKit}",
14
- "CMAKE_MESSAGE_LOG_LEVEL": "STATUS"
15
- },
16
- "cmake.generator": "Ninja",
17
- "cmake.debugConfig": {
18
- "MIMode": "gdb",
19
- "miDebuggerPath": "gdb",
20
- "stopAtEntry": true
21
- },
22
- "cmake.configureOnEdit": false,
23
- "cmake.buildBeforeRun": false,
24
- "cmake.environment": {
25
- "PIPENV_VERBOSITY": "-1",
26
- "PIPENV_VENV_IN_PROJECT": "1"
27
- },
28
- "cmake.buildToolArgs": [],
29
- "git.ignoreLimitWarning": true,
30
- "C_Cpp.errorSquiggles": "enabled",
31
- "C_Cpp.default.cStandard": "gnu17",
32
- "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
33
- "C_Cpp.formatting": "vcFormat",
34
- "files.associations": {
35
- "*.h": "c",
36
- "*.c": "c",
37
- "Jenkinsfile": "groovy",
38
- "*.py": "python"
39
- },
40
- "git.repositoryScanMaxDepth": 3,
41
- "git-graph.maxDepthOfRepoSearch": 3,
42
- "[python]": {
43
- "editor.defaultFormatter": "ms-python.black-formatter"
44
- }
45
- }
1
+ {
2
+ "python.testing.pytestEnabled": true,
3
+ "python.testing.pytestArgs": [
4
+ "test"
5
+ ],
6
+ "python.testing.unittestEnabled": false,
7
+ "python.analysis.extraPaths": [
8
+ "test"
9
+ ],
10
+ "cmake.configureOnOpen": false,
11
+ "cmake.buildDirectory": "${workspaceFolder}/build/${variant:variant}/${buildKit}",
12
+ "cmake.configureSettings": {
13
+ "BUILD_KIT": "${buildKit}",
14
+ "CMAKE_MESSAGE_LOG_LEVEL": "STATUS"
15
+ },
16
+ "cmake.generator": "Ninja",
17
+ "cmake.debugConfig": {
18
+ "MIMode": "gdb",
19
+ "miDebuggerPath": "gdb",
20
+ "stopAtEntry": true
21
+ },
22
+ "cmake.configureOnEdit": false,
23
+ "cmake.buildBeforeRun": false,
24
+ "cmake.environment": {
25
+ "PIPENV_VERBOSITY": "-1",
26
+ "PIPENV_VENV_IN_PROJECT": "1"
27
+ },
28
+ "cmake.buildToolArgs": [],
29
+ "git.ignoreLimitWarning": true,
30
+ "C_Cpp.errorSquiggles": "enabled",
31
+ "C_Cpp.default.cStandard": "gnu17",
32
+ "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
33
+ "C_Cpp.formatting": "vcFormat",
34
+ "files.associations": {
35
+ "*.h": "c",
36
+ "*.c": "c",
37
+ "Jenkinsfile": "groovy",
38
+ "*.py": "python"
39
+ },
40
+ "git.repositoryScanMaxDepth": 3,
41
+ "git-graph.maxDepthOfRepoSearch": 3,
42
+ "[python]": {
43
+ "editor.defaultFormatter": "charliermarsh.ruff"
44
+ }
45
+ }
spl_core/spl.cmake CHANGED
@@ -16,7 +16,7 @@ string(REPLACE "/" "_" BINARY_BASENAME ${VARIANT})
16
16
  # Set SPL relevant variables as environment variables.
17
17
  # Can easily be extended in CMakeLists.txt of project.
18
18
  # Also used for KConfig variable expansion.
19
- list(APPEND ENVVARS FLAVOR SUBSYSTEM VARIANT BUILD_KIT BUILD_TYPE BINARY_BASENAME CMAKE_SOURCE_DIR)
19
+ list(APPEND ENVVARS FLAVOR SUBSYSTEM VARIANT BUILD_KIT CMAKE_BUILD_TYPE BINARY_BASENAME CMAKE_SOURCE_DIR)
20
20
 
21
21
  foreach(ENVVAR IN LISTS ENVVARS)
22
22
  set(ENV{${ENVVAR}} "${${ENVVAR}}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: spl-core
3
- Version: 7.1.1rc1
3
+ Version: 7.2.1
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.4.1,<0.5.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,13 +1,13 @@
1
- spl_core/__init__.py,sha256=zjofqj5FFM5hVea8cl5H1RFofrW0yh8i0p1RHDAu68c,27
1
+ spl_core/__init__.py,sha256=5HkC96OIlIn2QaEoaF1aGy7IrAcyzQSiHxoFr7pNa8s,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=TDfYEZoon39z4-tddVTqmWZTCwDoVFvwm_Yz9e997as,32717
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
10
- spl_core/gcov_maid/gcov_maid.py,sha256=5rPIeL9daQDm5ad9xzaIhlDf_0H5g6r2zHo8WN8T4-8,1455
10
+ spl_core/gcov_maid/gcov_maid.py,sha256=EYhpQnv9u4T--9O9Ox2F4JcAqum26GKV5ZP7SJYG4ic,1427
11
11
  spl_core/kconfig/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  spl_core/kconfig/kconfig.py,sha256=JLBSUvPnc5dEZNWHeuMTFgP9iBgtzEV6tnrhE4-5oCg,9795
13
13
  spl_core/kconfig.cmake,sha256=5S8MeW9RAl1jZHxSUzZFmbPaaCI5EPbfwyQErl0auvs,1845
@@ -35,7 +35,7 @@ spl_core/kickstart/templates/project/.gitignore,sha256=Ibd6YbqO2UPfauJzrdgY7z4ar
35
35
  spl_core/kickstart/templates/project/.vscode/cmake-kits.json,sha256=oLn_-InkXE3Th6OL5hlSxBZsx2dBaKShrHZVcyAcfFU,269
36
36
  spl_core/kickstart/templates/project/.vscode/extensions.json,sha256=49RYati_P9i3zdiKuaTIkNQnA1uH1eIUd6DusIa9TT0,624
37
37
  spl_core/kickstart/templates/project/.vscode/launch.json,sha256=30-tsNapUNNIvVDohdIf4SEnHrHh8qbWuTjLJjsMcEY,1103
38
- spl_core/kickstart/templates/project/.vscode/settings.json,sha256=w2zAkNk4P0eZC5zDxiG7jKy35Jl37TyVDg38lXjq3hw,1369
38
+ spl_core/kickstart/templates/project/.vscode/settings.json,sha256=84PASkysrQEcl9NZNJrYvWH-KqOd9HnAbTj0Hpa1SQM,1319
39
39
  spl_core/kickstart/templates/project/.vscode/tasks.json,sha256=fPaiY-vpI-3wMK0dpc3LZma4-YYyaI_xc6uQrEUf6sw,3434
40
40
  spl_core/kickstart/templates/project/CMakeLists.txt,sha256=xLLmYujryWwBrIZTONzR88qSFx0VmgPGkt5xPszsMXA,1454
41
41
  spl_core/kickstart/templates/project/README.md,sha256=k-P_SycFIRnRmjjUoAiDrRF8Gg1Te-qErAX-pgtYuqg,310
@@ -57,11 +57,11 @@ spl_core/kickstart/templates/project/scoopfile.json,sha256=DcfZ8jYf9hmPHM-AWwnPK
57
57
  spl_core/kickstart/templates/project/tools/toolchains/clang/toolchain.cmake,sha256=fDD-eb6DeqmAYkCbILL2V5PLnCPRdTu1Tpg0WfDC_dE,713
58
58
  spl_core/kickstart/templates/project/tools/toolchains/gcc/toolchain.cmake,sha256=AmLzPyhTgfc_Dsre4AlsvSOkVGW6VswWvrEnUL8JLhA,183
59
59
  spl_core/main.py,sha256=_hL4j155WZMXog_755bgAH1PeUwvTdJZvVdVw9EWhvo,1225
60
- spl_core/spl.cmake,sha256=W8h-Zj-N302qxMrRG8MhoEkJ0io92bWGp4Y5r8LBQnc,4535
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.1.1rc1.dist-info/LICENSE,sha256=UjjA0o8f5tT3wVm7qodTLAhPWLl6kgVyn9FPAd1VeYY,1099
64
- spl_core-7.1.1rc1.dist-info/METADATA,sha256=aEXZb7gAqkXVy6Jy-lWThPmNRIhPrEWp9vlrNkbFaFc,5163
65
- spl_core-7.1.1rc1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
66
- spl_core-7.1.1rc1.dist-info/entry_points.txt,sha256=18_sdVY93N1GVBiAHxQ_F9ZM-bBvOmVMOMn7PNe2EqU,45
67
- spl_core-7.1.1rc1.dist-info/RECORD,,
63
+ spl_core-7.2.1.dist-info/LICENSE,sha256=UjjA0o8f5tT3wVm7qodTLAhPWLl6kgVyn9FPAd1VeYY,1099
64
+ spl_core-7.2.1.dist-info/METADATA,sha256=VKULb736PWzT_rzMduaDb0HanWd48VmUyLxPO9zLQGM,5156
65
+ spl_core-7.2.1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
66
+ spl_core-7.2.1.dist-info/entry_points.txt,sha256=18_sdVY93N1GVBiAHxQ_F9ZM-bBvOmVMOMn7PNe2EqU,45
67
+ spl_core-7.2.1.dist-info/RECORD,,