cppcheck-py 2.9__tar.gz → 2.18.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.
@@ -3,8 +3,8 @@ name: Build + Release Wheels
3
3
  on:
4
4
  push:
5
5
  tags:
6
- - 'v?[0-9]+.[0-9]+'
7
6
  - 'v?[0-9]+.[0-9]+.[0-9]+'
7
+ - 'v?[0-9]+.[0-9]+.[0-9]+.[0-9]+'
8
8
  workflow_dispatch:
9
9
  inputs:
10
10
  cppcheck_version:
@@ -74,9 +74,9 @@ jobs:
74
74
  #- os: windows-latest
75
75
  # platform: "win"
76
76
  # arch: "x86"
77
- #- os: windows-11-arm
78
- # platform: "win"
79
- # arch: "ARM64"
77
+ - os: windows-11-arm
78
+ platform: "win"
79
+ arch: "ARM64"
80
80
  # macos
81
81
  - os: macos-15-intel
82
82
  platform: "macos"
@@ -3,12 +3,27 @@ project(${SKBUILD_PROJECT_NAME} VERSION ${SKBUILD_PROJECT_VERSION})
3
3
 
4
4
  message(STATUS "cppcheck-wheel version: ${SKBUILD_PROJECT_VERSION}")
5
5
  string(
6
- REGEX MATCH "^([0-9]+)\.([0-9]+)"
6
+ REGEX MATCH "^([0-9]+)\.([0-9]+)\.([0-9]+)"
7
7
  CPPCHECK_VERSION
8
8
  "${SKBUILD_PROJECT_VERSION}"
9
9
  )
10
10
  message(STATUS "cppcheck version: ${CPPCHECK_VERSION}")
11
11
 
12
+ include(CheckIncludeFileCXX)
13
+ # Check for the execinfo header, needed for backtraces support.
14
+ check_include_file_cxx("execinfo.h" HAVE_EXECINFO_H)
15
+
16
+ set(CMAKE_ARGS
17
+ -DCMAKE_BUILD_TYPE=Release
18
+ -U
19
+ FILESDIR
20
+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
21
+ )
22
+ if(NOT HAVE_EXECINFO_H)
23
+ message(STATUS "execinfo.h not found, disabling backtrace support")
24
+ list(APPEND CMAKE_ARGS -DNO_UNIX_BACKTRACE_SUPPORT=ON)
25
+ endif()
26
+
12
27
  # Define a build rule for cppcheck
13
28
  set(CPPCHECK_DOWNLOAD_URL
14
29
  "https://github.com/cppcheck-opensource/cppcheck/archive/refs/tags/${CPPCHECK_VERSION}.tar.gz"
@@ -25,9 +40,7 @@ ExternalProject_Add(
25
40
  USES_TERMINAL_DOWNLOAD 1
26
41
  USES_TERMINAL_CONFIGURE 1
27
42
  USES_TERMINAL_BUILD 1
28
- CMAKE_ARGS
29
- -DCMAKE_BUILD_TYPE=Release -U FILESDIR
30
- -DCMAKE_POLICY_VERSION_MINIMUM=3.5
43
+ CMAKE_ARGS ${CMAKE_ARGS}
31
44
  BUILD_COMMAND ${CMAKE_COMMAND} --build . --target cppcheck --config Release
32
45
  )
33
46
  set(config-subfolder "")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: cppcheck-py
3
- Version: 2.9
3
+ Version: 2.18.0
4
4
  Summary: Static analysis of C/C++ code
5
5
  License: Apache 2.0
6
6
  Classifier: Programming Language :: C
@@ -0,0 +1 @@
1
+ 2.18.0.0
@@ -22,7 +22,7 @@ classifiers = [
22
22
  [[tool.dynamic-metadata]]
23
23
  provider = "scikit_build_core.metadata.regex"
24
24
  field = "version"
25
- regex = '^(?P<value>\d+\.\d+(\.[1-9]\d*)?)'
25
+ regex = '^(?P<value>\d+\.\d+\.\d+(\.[1-9]\d*)?)'
26
26
  input = "cppcheck_version.txt"
27
27
 
28
28
  [project.urls]
@@ -1 +0,0 @@
1
- 2.9.0
File without changes
File without changes
File without changes
File without changes