cppcheck 1.5.0__tar.gz → 1.5.1__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.
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.copier-answers.yml +1 -1
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.github/workflows/cd.yml +4 -4
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.github/workflows/ci.yml +10 -10
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.github/workflows/codeql.yml +5 -5
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.github/workflows/pages.yml +4 -4
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.github/workflows/renovate.yml +4 -4
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.github/workflows/reuseable_cibuildwheel.yml +22 -6
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.github/workflows/semantic-release.yml +3 -3
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.pre-commit-config.yaml +4 -4
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.renovaterc.json +5 -5
- {cppcheck-1.5.0 → cppcheck-1.5.1}/PKG-INFO +1 -1
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/vcpkg/bootstrap/vcpkg_bootstrap.cmake +40 -0
- cppcheck-1.5.1/cmake/vcpkg/bootstrap/vcpkg_chainload_toolchain.cmake +55 -0
- cppcheck-1.5.1/cmake/vcpkg/ports/README.md +19 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/vcpkg/ports/cppcheck/portfile.cmake +1 -1
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/vcpkg/ports/cppcheck/vcpkg.json +1 -1
- cppcheck-1.5.1/cmake/vcpkg/scripts/build_type.cmake +34 -0
- cppcheck-1.5.1/cmake/vcpkg/triplets/README.md +32 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/vcpkg/vcpkg.toolchain.cmake +3 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/pyproject.toml +13 -12
- {cppcheck-1.5.0 → cppcheck-1.5.1}/src/cppcheck/_version.py +2 -2
- {cppcheck-1.5.0 → cppcheck-1.5.1}/vcpkg.json +2 -2
- cppcheck-1.5.0/cmake/vcpkg/bootstrap/vcpkg_chainload_toolchain.cmake +0 -45
- cppcheck-1.5.0/cmake/vcpkg/ports/README.md +0 -3
- cppcheck-1.5.0/cmake/vcpkg/scripts/build_type.cmake +0 -26
- cppcheck-1.5.0/cmake/vcpkg/triplets/README.md +0 -22
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.devcontainer/devcontainer.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.editorconfig +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.gitattributes +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.github/codecov.yml +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.github/codeql-config.yml +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.github/matchers/pylint.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.github/workflows/ports.yml +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.gitignore +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.markdownlint.yaml +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.pre-commit-hooks.yaml +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.releaserc.js +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.vscode/launch.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/.vscode/settings.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/CMakeLists.txt +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/CMakePresets.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/LICENSE +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/README.md +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/ProjectOptions.cmake +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/arch/x64.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/base.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/compilers/gcc.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/compilers/llvm.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/compilers/mingw.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/compilers/msvc.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/default.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/generators/ninja.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/os/darwin.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/os/linux.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/os/windows.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/toolchains/vcpkg.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/triplets/x64-linux.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/triplets/x64-mingw-dynamic.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/triplets/x64-mingw-static.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/triplets/x64-osx.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/triplets/x64-windows.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/x64-linux-gcc.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/x64-linux-llvm.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/x64-mingw-dynamic-windows-mingw.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/x64-mingw-static-windows-mingw.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/x64-osx-gcc.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/x64-osx-llvm.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/x64-windows-llvm.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/presets/x64-windows-msvc.json +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/vcpkg/bootstrap/vcpkg-config.cmake +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/vcpkg/bootstrap/vcpkg_configure.cmake +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/vcpkg/bootstrap/vcpkg_export_mode.cmake +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/vcpkg/bootstrap/vcpkg_load_triplet.cmake +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/vcpkg/scripts/toolchains/README.md +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/docs/api/index.md +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/docs/conf.py +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/docs/index.md +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/noxfile.py +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/src/cppcheck/__init__.py +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/src/cppcheck/__main__.py +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/src/cppcheck/_version.pyi +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/src/cppcheck/py.typed +0 -0
- {cppcheck-1.5.0 → cppcheck-1.5.1}/tests/test_package.py +0 -0
|
@@ -20,14 +20,14 @@ jobs:
|
|
|
20
20
|
name: Build SDist
|
|
21
21
|
runs-on: ubuntu-24.04
|
|
22
22
|
steps:
|
|
23
|
-
- uses: actions/checkout@
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
24
|
with:
|
|
25
25
|
fetch-depth: 0
|
|
26
26
|
|
|
27
27
|
- name: Build SDist
|
|
28
28
|
run: pipx run build --sdist
|
|
29
29
|
|
|
30
|
-
- uses: actions/upload-artifact@
|
|
30
|
+
- uses: actions/upload-artifact@v4
|
|
31
31
|
with:
|
|
32
32
|
name: cibw-sdist
|
|
33
33
|
path: dist/*.tar.gz
|
|
@@ -46,7 +46,7 @@ jobs:
|
|
|
46
46
|
needs: [build_wheels, build_sdist]
|
|
47
47
|
runs-on: ubuntu-24.04
|
|
48
48
|
steps:
|
|
49
|
-
- uses: actions/download-artifact@
|
|
49
|
+
- uses: actions/download-artifact@v4
|
|
50
50
|
with:
|
|
51
51
|
pattern: cibw-*
|
|
52
52
|
path: dist
|
|
@@ -66,7 +66,7 @@ jobs:
|
|
|
66
66
|
if: github.event_name == 'release' && github.event.action == 'published'
|
|
67
67
|
|
|
68
68
|
steps:
|
|
69
|
-
- uses: actions/download-artifact@
|
|
69
|
+
- uses: actions/download-artifact@v4
|
|
70
70
|
with:
|
|
71
71
|
pattern: cibw-*
|
|
72
72
|
path: dist
|
|
@@ -23,15 +23,15 @@ jobs:
|
|
|
23
23
|
pre-commit:
|
|
24
24
|
runs-on: ubuntu-24.04
|
|
25
25
|
steps:
|
|
26
|
-
- uses: actions/checkout@
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
27
|
with:
|
|
28
28
|
fetch-depth: 0
|
|
29
29
|
|
|
30
|
-
- uses: actions/setup-python@
|
|
30
|
+
- uses: actions/setup-python@v5
|
|
31
31
|
with:
|
|
32
32
|
python-version: 3.x
|
|
33
33
|
|
|
34
|
-
- uses: pre-commit/action@
|
|
34
|
+
- uses: pre-commit/action@v3.0.1
|
|
35
35
|
with:
|
|
36
36
|
extra_args: --hook-stage manual --all-files
|
|
37
37
|
|
|
@@ -55,12 +55,12 @@ jobs:
|
|
|
55
55
|
needs: [pre-commit]
|
|
56
56
|
|
|
57
57
|
steps:
|
|
58
|
-
- uses: actions/checkout@
|
|
58
|
+
- uses: actions/checkout@v4
|
|
59
59
|
with:
|
|
60
60
|
fetch-depth: 0
|
|
61
61
|
|
|
62
62
|
- name: Cache
|
|
63
|
-
uses: actions/cache@
|
|
63
|
+
uses: actions/cache@v4
|
|
64
64
|
with:
|
|
65
65
|
path: |
|
|
66
66
|
~/vcpkg
|
|
@@ -69,7 +69,7 @@ jobs:
|
|
|
69
69
|
key: codecov-${{ hashFiles('vcpkg.json') }}
|
|
70
70
|
restore-keys: codecov-${{ hashFiles('vcpkg.json') }}
|
|
71
71
|
|
|
72
|
-
- uses: actions/setup-python@
|
|
72
|
+
- uses: actions/setup-python@v5
|
|
73
73
|
with:
|
|
74
74
|
python-version: 3.x
|
|
75
75
|
|
|
@@ -82,7 +82,7 @@ jobs:
|
|
|
82
82
|
--durations=20
|
|
83
83
|
|
|
84
84
|
- name: Upload coverage report
|
|
85
|
-
uses: codecov/codecov-action@
|
|
85
|
+
uses: codecov/codecov-action@v5
|
|
86
86
|
with:
|
|
87
87
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
88
88
|
|
|
@@ -92,12 +92,12 @@ jobs:
|
|
|
92
92
|
needs: [pre-commit]
|
|
93
93
|
|
|
94
94
|
steps:
|
|
95
|
-
- uses: actions/checkout@
|
|
95
|
+
- uses: actions/checkout@v4
|
|
96
96
|
with:
|
|
97
97
|
fetch-depth: 0
|
|
98
98
|
|
|
99
99
|
- name: Cache
|
|
100
|
-
uses: actions/cache@
|
|
100
|
+
uses: actions/cache@v4
|
|
101
101
|
with:
|
|
102
102
|
path: |
|
|
103
103
|
~/vcpkg
|
|
@@ -106,7 +106,7 @@ jobs:
|
|
|
106
106
|
key: docs-${{ hashFiles('vcpkg.json') }}
|
|
107
107
|
restore-keys: docs-${{ hashFiles('vcpkg.json') }}
|
|
108
108
|
|
|
109
|
-
- uses: actions/setup-python@
|
|
109
|
+
- uses: actions/setup-python@v5
|
|
110
110
|
with:
|
|
111
111
|
python-version: 3.x
|
|
112
112
|
|
|
@@ -44,18 +44,18 @@ jobs:
|
|
|
44
44
|
|
|
45
45
|
steps:
|
|
46
46
|
- name: Checkout repository
|
|
47
|
-
uses: actions/checkout@
|
|
47
|
+
uses: actions/checkout@v4
|
|
48
48
|
with:
|
|
49
49
|
fetch-depth: 0
|
|
50
50
|
|
|
51
51
|
- name: Initialize CodeQL
|
|
52
|
-
uses: github/codeql-action/init@
|
|
52
|
+
uses: github/codeql-action/init@v3
|
|
53
53
|
with:
|
|
54
54
|
languages: ${{ matrix.language }}
|
|
55
55
|
config-file: ./.github/codeql-config.yml
|
|
56
56
|
|
|
57
57
|
- name: Cache
|
|
58
|
-
uses: actions/cache@
|
|
58
|
+
uses: actions/cache@v4
|
|
59
59
|
with:
|
|
60
60
|
path: |
|
|
61
61
|
~/vcpkg
|
|
@@ -63,7 +63,7 @@ jobs:
|
|
|
63
63
|
key: codeql-${{ hashFiles('vcpkg.json') }}
|
|
64
64
|
restore-keys: codeql-${{ hashFiles('vcpkg.json') }}
|
|
65
65
|
|
|
66
|
-
- uses: actions/setup-python@
|
|
66
|
+
- uses: actions/setup-python@v5
|
|
67
67
|
with:
|
|
68
68
|
python-version: 3.x
|
|
69
69
|
|
|
@@ -71,4 +71,4 @@ jobs:
|
|
|
71
71
|
run: python -m pip install .[test]
|
|
72
72
|
|
|
73
73
|
- name: Perform CodeQL Analysis
|
|
74
|
-
uses: github/codeql-action/analyze@
|
|
74
|
+
uses: github/codeql-action/analyze@v3
|
|
@@ -30,13 +30,13 @@ jobs:
|
|
|
30
30
|
id-token: write
|
|
31
31
|
|
|
32
32
|
steps:
|
|
33
|
-
- uses: actions/checkout@
|
|
33
|
+
- uses: actions/checkout@v4
|
|
34
34
|
with:
|
|
35
35
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
36
36
|
ref: ${{ github.head_ref }}
|
|
37
37
|
|
|
38
38
|
- name: Cache
|
|
39
|
-
uses: actions/cache@
|
|
39
|
+
uses: actions/cache@v4
|
|
40
40
|
with:
|
|
41
41
|
path: |
|
|
42
42
|
~/vcpkg
|
|
@@ -45,7 +45,7 @@ jobs:
|
|
|
45
45
|
key: cd-pages-${{ hashFiles('vcpkg.json') }}
|
|
46
46
|
restore-keys: cd-pages-${{ hashFiles('vcpkg.json') }}
|
|
47
47
|
|
|
48
|
-
- uses: actions/setup-python@
|
|
48
|
+
- uses: actions/setup-python@v5
|
|
49
49
|
with:
|
|
50
50
|
python-version: 3.x
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@ jobs:
|
|
|
53
53
|
run: pipx run nox -s docs
|
|
54
54
|
|
|
55
55
|
- name: Deploy to GitHub Pages
|
|
56
|
-
uses: peaceiris/actions-gh-pages@
|
|
56
|
+
uses: peaceiris/actions-gh-pages@v4
|
|
57
57
|
with:
|
|
58
58
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
59
59
|
publish_dir: ./docs/_build/html
|
|
@@ -2,8 +2,8 @@ name: Renovate
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
schedule:
|
|
5
|
-
# Match renovate schedule
|
|
6
|
-
- cron: '*/15 0-3
|
|
5
|
+
# Match renovate schedule and automergeSchedule
|
|
6
|
+
- cron: '*/15 0-3 1-7 * *'
|
|
7
7
|
workflow_dispatch:
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
RENOVATE_PLATFORM: github
|
|
20
20
|
RENOVATE_REPOSITORIES: '["${{ github.repository }}"]'
|
|
21
21
|
RENOVATE_REPOSITORY_CACHE: enabled
|
|
22
|
-
image: ghcr.io/renovatebot/renovate:39.
|
|
22
|
+
image: ghcr.io/renovatebot/renovate:39.233.5@sha256:84b33fa815229cd70dabb3ac4a0abd96515933038bfb20b2bad13ed06bace951
|
|
23
23
|
options: --user root
|
|
24
24
|
runs-on: ubuntu-24.04
|
|
25
25
|
steps:
|
|
@@ -28,7 +28,7 @@ jobs:
|
|
|
28
28
|
- name: Generate a token with GitHub App if App ID exists
|
|
29
29
|
id: generate-token
|
|
30
30
|
if: vars.BOT_APP_ID
|
|
31
|
-
uses: actions/create-github-app-token@
|
|
31
|
+
uses: actions/create-github-app-token@v2
|
|
32
32
|
with:
|
|
33
33
|
app-id: ${{ vars.BOT_APP_ID }}
|
|
34
34
|
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
|
|
@@ -14,7 +14,7 @@ on:
|
|
|
14
14
|
|
|
15
15
|
jobs:
|
|
16
16
|
build_wheels:
|
|
17
|
-
name:
|
|
17
|
+
name: ${{ matrix.os }}, ${{ matrix.arch }}, ${{ matrix.build }} wheels
|
|
18
18
|
runs-on: ${{ matrix.os }}
|
|
19
19
|
|
|
20
20
|
strategy:
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
- {os: macos-14, arch: arm64, build: macos}
|
|
32
32
|
|
|
33
33
|
steps:
|
|
34
|
-
- uses: actions/checkout@
|
|
34
|
+
- uses: actions/checkout@v4
|
|
35
35
|
if: >
|
|
36
36
|
inputs.auto && !contains(matrix.qemu_arch, matrix.arch) ||
|
|
37
37
|
inputs.extra && contains(matrix.qemu_arch, matrix.arch)
|
|
@@ -40,28 +40,44 @@ jobs:
|
|
|
40
40
|
|
|
41
41
|
- name: Set up msvc on Windows
|
|
42
42
|
if: runner.os == 'Windows' && inputs.auto && !contains(matrix.qemu_arch, matrix.arch)
|
|
43
|
-
uses: ilammy/msvc-dev-cmd@
|
|
43
|
+
uses: ilammy/msvc-dev-cmd@v1
|
|
44
44
|
with:
|
|
45
45
|
arch: ${{ matrix.arch }}
|
|
46
46
|
|
|
47
47
|
- name: Set up QEMU
|
|
48
|
-
uses: docker/setup-qemu-action@
|
|
48
|
+
uses: docker/setup-qemu-action@v3
|
|
49
49
|
if: runner.os == 'Linux' && inputs.extra && contains(matrix.qemu_arch, matrix.arch)
|
|
50
50
|
|
|
51
|
+
- name: Cache
|
|
52
|
+
if: >
|
|
53
|
+
inputs.auto && !contains(matrix.qemu_arch, matrix.arch) ||
|
|
54
|
+
inputs.extra && contains(matrix.qemu_arch, matrix.arch)
|
|
55
|
+
uses: actions/cache@v4
|
|
56
|
+
with:
|
|
57
|
+
path: |
|
|
58
|
+
~/.cache/vcpkg
|
|
59
|
+
~/AppData/Local/vcpkg
|
|
60
|
+
key: cache-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.build }}-${{ hashFiles('vcpkg.json') }}
|
|
61
|
+
restore-keys: cache-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.build }}-${{ hashFiles('vcpkg.json') }}
|
|
62
|
+
|
|
51
63
|
- name: Build wheels
|
|
52
64
|
if: >
|
|
53
65
|
inputs.auto && !contains(matrix.qemu_arch, matrix.arch) ||
|
|
54
66
|
inputs.extra && contains(matrix.qemu_arch, matrix.arch)
|
|
55
|
-
uses: pypa/cibuildwheel@
|
|
67
|
+
uses: pypa/cibuildwheel@v2.23.2
|
|
56
68
|
env:
|
|
57
69
|
CIBW_ARCHS: ${{ matrix.arch }}
|
|
58
70
|
CIBW_BUILD: cp39-${{ matrix.build }}*
|
|
71
|
+
CIBW_BEFORE_ALL_LINUX: >
|
|
72
|
+
mkdir -p ~/.cache || true &&
|
|
73
|
+
mkdir -p /host/home/runner/.cache/vcpkg || true &&
|
|
74
|
+
ln -s /host/home/runner/.cache/vcpkg ~/.cache/vcpkg || true
|
|
59
75
|
|
|
60
76
|
- name: Upload wheels
|
|
61
77
|
if: >
|
|
62
78
|
inputs.auto && !contains(matrix.qemu_arch, matrix.arch) ||
|
|
63
79
|
inputs.extra && contains(matrix.qemu_arch, matrix.arch)
|
|
64
|
-
uses: actions/upload-artifact@
|
|
80
|
+
uses: actions/upload-artifact@v4
|
|
65
81
|
with:
|
|
66
82
|
name: cibw-${{ matrix.os }}-${{ matrix.build }}-${{ matrix.arch }}
|
|
67
83
|
path: wheelhouse/*.whl
|
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
- name: Generate a bot token with BOT_APP_ID
|
|
25
25
|
id: bot_token
|
|
26
26
|
if: vars.BOT_APP_ID && env.BOT_PRIVATE_KEY != null
|
|
27
|
-
uses: actions/create-github-app-token@
|
|
27
|
+
uses: actions/create-github-app-token@v2
|
|
28
28
|
env:
|
|
29
29
|
BOT_PRIVATE_KEY: ${{ secrets.BOT_PRIVATE_KEY }}
|
|
30
30
|
with:
|
|
@@ -40,13 +40,13 @@ jobs:
|
|
|
40
40
|
echo "# :warning: GITHUB_TOKEN is used" >> $GITHUB_STEP_SUMMARY
|
|
41
41
|
echo "The GITHUB_TOKEN is used instead of a bot token or PAT that will not emit the released publish event for triggering a released workflow." >> $GITHUB_STEP_SUMMARY
|
|
42
42
|
|
|
43
|
-
- uses: actions/checkout@
|
|
43
|
+
- uses: actions/checkout@v4
|
|
44
44
|
with:
|
|
45
45
|
fetch-depth: 0
|
|
46
46
|
token: ${{ steps.bot_token.outputs.token || secrets.PAT || secrets.GITHUB_TOKEN }}
|
|
47
47
|
|
|
48
48
|
- name: Setup Node.js
|
|
49
|
-
uses: actions/setup-node@
|
|
49
|
+
uses: actions/setup-node@v4
|
|
50
50
|
with:
|
|
51
51
|
node-version: lts/*
|
|
52
52
|
|
|
@@ -48,7 +48,7 @@ repos:
|
|
|
48
48
|
|
|
49
49
|
# Strong lint from ruff
|
|
50
50
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
51
|
-
rev: v0.
|
|
51
|
+
rev: v0.11.4
|
|
52
52
|
hooks:
|
|
53
53
|
- id: ruff
|
|
54
54
|
args: [--fix, --show-fixes]
|
|
@@ -101,14 +101,14 @@ repos:
|
|
|
101
101
|
|
|
102
102
|
# Check pyproject
|
|
103
103
|
- repo: https://github.com/abravalheri/validate-pyproject
|
|
104
|
-
rev: v0.
|
|
104
|
+
rev: v0.24.1
|
|
105
105
|
hooks:
|
|
106
106
|
- id: validate-pyproject
|
|
107
107
|
additional_dependencies: ['validate-pyproject-schema-store[all]>=2024.10.21']
|
|
108
108
|
|
|
109
109
|
# Check jsonschema
|
|
110
110
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
111
|
-
rev: 0.
|
|
111
|
+
rev: 0.32.1
|
|
112
112
|
hooks:
|
|
113
113
|
- id: check-dependabot
|
|
114
114
|
- id: check-github-workflows
|
|
@@ -138,7 +138,7 @@ repos:
|
|
|
138
138
|
|
|
139
139
|
# Check for renovate config
|
|
140
140
|
- repo: https://github.com/renovatebot/pre-commit-hooks
|
|
141
|
-
rev: 39.
|
|
141
|
+
rev: 39.227.2
|
|
142
142
|
hooks:
|
|
143
143
|
- id: renovate-config-validator
|
|
144
144
|
stages: [manual]
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
3
|
"extends": [
|
|
4
4
|
"config:recommended",
|
|
5
|
-
"helpers:pinGitHubActionDigests",
|
|
6
5
|
":enablePreCommit"
|
|
7
6
|
],
|
|
8
7
|
"automergeType": "pr",
|
|
@@ -15,8 +14,8 @@
|
|
|
15
14
|
"addLabels": [
|
|
16
15
|
"auto-approval"
|
|
17
16
|
],
|
|
18
|
-
"
|
|
19
|
-
"
|
|
17
|
+
"schedule": [
|
|
18
|
+
"* 0-3 1-7 * *"
|
|
20
19
|
],
|
|
21
20
|
"automergeSchedule": [
|
|
22
21
|
"* 0-3 1-7 * *"
|
|
@@ -63,10 +62,11 @@
|
|
|
63
62
|
"datasourceTemplate": "pypi",
|
|
64
63
|
"fileMatch": [
|
|
65
64
|
"^\\.github/workflows/.+\\.yml$",
|
|
66
|
-
"^\\.renovaterc\\.json$"
|
|
65
|
+
"^\\.renovaterc\\.json$",
|
|
66
|
+
"^pyproject\\.toml$"
|
|
67
67
|
],
|
|
68
68
|
"matchStrings": [
|
|
69
|
-
"pipx? install.* (?<depName>.*?)==(?<currentValue>.*?)[\\s\";]"
|
|
69
|
+
"pipx? install.* (?<depName>.*?)==(?<currentValue>.*?)[\\s\";']"
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
72
|
{
|
|
@@ -111,6 +111,34 @@ function(_vcpkg_upgrade vcpkg_root vcpkg_repo vcpkg_ref)
|
|
|
111
111
|
return()
|
|
112
112
|
endif()
|
|
113
113
|
|
|
114
|
+
# Check .gitconfig on linux or windows
|
|
115
|
+
if(EXISTS "$ENV{HOME}/.gitconfig" OR EXISTS "$ENV{USERPROFILE}/.gitconfig")
|
|
116
|
+
execute_process(
|
|
117
|
+
COMMAND ${GIT_EXECUTABLE} config --get-all safe.directory
|
|
118
|
+
WORKING_DIRECTORY ${vcpkg_root}
|
|
119
|
+
OUTPUT_VARIABLE safe_directory
|
|
120
|
+
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
121
|
+
RESULT_VARIABLE result)
|
|
122
|
+
|
|
123
|
+
if(NOT result EQUAL "0")
|
|
124
|
+
message(FATAL_ERROR "failed to get git safe directory")
|
|
125
|
+
endif()
|
|
126
|
+
endif()
|
|
127
|
+
|
|
128
|
+
if(NOT DEFINED safe_directory
|
|
129
|
+
OR (DEFINED safe_directory AND NOT safe_directory MATCHES "${vcpkg_root}"))
|
|
130
|
+
message(STATUS "vcpkg root is not in the git safe directory, adding...")
|
|
131
|
+
|
|
132
|
+
execute_process(
|
|
133
|
+
COMMAND ${GIT_EXECUTABLE} config --global safe.directory ${vcpkg_root}
|
|
134
|
+
WORKING_DIRECTORY ${vcpkg_root}
|
|
135
|
+
RESULT_VARIABLE result)
|
|
136
|
+
|
|
137
|
+
if(NOT result EQUAL "0")
|
|
138
|
+
message(FATAL_ERROR "${GIT_EXECUTABLE} config failed with ${result}")
|
|
139
|
+
endif()
|
|
140
|
+
endif()
|
|
141
|
+
|
|
114
142
|
execute_process(
|
|
115
143
|
COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
|
|
116
144
|
WORKING_DIRECTORY ${vcpkg_root}
|
|
@@ -210,4 +238,16 @@ function(_vcpkg_bootstrap)
|
|
|
210
238
|
endif()
|
|
211
239
|
|
|
212
240
|
_vcpkg_set_cache_variables("${vcpkg_root}")
|
|
241
|
+
|
|
242
|
+
# Make sure downloads folder is 755 on linux
|
|
243
|
+
if(CMAKE_HOST_UNIX)
|
|
244
|
+
execute_process(
|
|
245
|
+
COMMAND chmod 755 ${vcpkg_root}/downloads
|
|
246
|
+
WORKING_DIRECTORY ${vcpkg_root}
|
|
247
|
+
RESULT_VARIABLE result)
|
|
248
|
+
|
|
249
|
+
if(NOT result EQUAL "0")
|
|
250
|
+
message(STATUS "failed to chmod 755 ${vcpkg_root}/downloads")
|
|
251
|
+
endif()
|
|
252
|
+
endif()
|
|
213
253
|
endfunction()
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#[[
|
|
2
|
+
SPDX-License-Identifier: MIT
|
|
3
|
+
SPDX-FileCopyrightText: Copyright 2024 msclock
|
|
4
|
+
]]
|
|
5
|
+
|
|
6
|
+
# configure VCPKG_CHAINLOAD_TOOLCHAIN_FILE based on VCPKG_TARGET_TRIPLET and
|
|
7
|
+
# VCPKG_TARGET_ARCHITECTURE
|
|
8
|
+
macro(_vcpkg_chainload_toolchain)
|
|
9
|
+
if(NOT DEFINED VCPKG_CHAINLOAD_TOOLCHAIN_FILE)
|
|
10
|
+
if(NOT DEFINED VCPKG_TARGET_TRIPLET OR NOT DEFINED
|
|
11
|
+
VCPKG_TARGET_ARCHITECTURE)
|
|
12
|
+
message(
|
|
13
|
+
FATAL_ERROR
|
|
14
|
+
"VCPKG_TARGET_TRIPLET and VCPKG_TARGET_ARCHITECTURE must be set before calling _vcpkg_chainload_toolchain()"
|
|
15
|
+
)
|
|
16
|
+
endif()
|
|
17
|
+
|
|
18
|
+
# Load toolchain variables from triplet and architecture
|
|
19
|
+
|
|
20
|
+
string(LENGTH "${VCPKG_TARGET_ARCHITECTURE}-" _prefix_len)
|
|
21
|
+
string(SUBSTRING ${VCPKG_TARGET_TRIPLET} ${_prefix_len} -1 _stripped_string)
|
|
22
|
+
string(REPLACE "-" ";" _triplet_parts "${_stripped_string}")
|
|
23
|
+
list(GET _triplet_parts 0 _chainload_toolchain_name)
|
|
24
|
+
|
|
25
|
+
set(_toolchain "scripts/toolchains/${_chainload_toolchain_name}.cmake")
|
|
26
|
+
|
|
27
|
+
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${_toolchain}")
|
|
28
|
+
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE
|
|
29
|
+
"${CMAKE_CURRENT_LIST_DIR}/${_toolchain}"
|
|
30
|
+
CACHE INTERNAL "vcpkg chainload")
|
|
31
|
+
elseif(EXISTS "${_VCPKG_ROOT}/${_toolchain}")
|
|
32
|
+
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE
|
|
33
|
+
"${_VCPKG_ROOT}/${_toolchain}"
|
|
34
|
+
CACHE INTERNAL "vcpkg chainload")
|
|
35
|
+
|
|
36
|
+
else()
|
|
37
|
+
message(
|
|
38
|
+
WARNING
|
|
39
|
+
"Could not find toolchain file for ${_chainload_toolchain_name}, skipping chainload"
|
|
40
|
+
)
|
|
41
|
+
endif()
|
|
42
|
+
endif()
|
|
43
|
+
|
|
44
|
+
if(EXISTS "${VCPKG_CHAINLOAD_TOOLCHAIN_FILE}")
|
|
45
|
+
message(
|
|
46
|
+
STATUS "vcpkg_chainload_toolchain_file: ${VCPKG_CHAINLOAD_TOOLCHAIN_FILE}"
|
|
47
|
+
)
|
|
48
|
+
include(${VCPKG_CHAINLOAD_TOOLCHAIN_FILE})
|
|
49
|
+
endif()
|
|
50
|
+
unset(_chainload_toolchain_name)
|
|
51
|
+
unset(_triplet_parts)
|
|
52
|
+
unset(_toolchain)
|
|
53
|
+
unset(_prefix_len)
|
|
54
|
+
unset(_stripped_string)
|
|
55
|
+
endmacro()
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Customize vcpkg ports
|
|
2
|
+
|
|
3
|
+
This folder applies to the custom vcpkg ports. These ports are loaded automatically which can be patched from the `ports` folder of the vcpkg repository or created from scratch.
|
|
4
|
+
|
|
5
|
+
## Customize linkage
|
|
6
|
+
|
|
7
|
+
Prepare the port from the vcpkg repository
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
cp /path/to/vcpkg/repository/ports/7zip . -r
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Edit the port to only accept the dynamic linkage by [vcpkg_check_linkage](https://learn.microsoft.com/en-us/vcpkg/maintainers/functions/vcpkg_check_linkage) to the head of the port file
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
sed -i '1s/^/vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)\n/' 7zip/portfile.cmake
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
And re-cmake the project to re-build the port with dynamic linkage.
|
|
@@ -6,7 +6,7 @@ vcpkg_from_github(
|
|
|
6
6
|
REF
|
|
7
7
|
"${VERSION}"
|
|
8
8
|
SHA512
|
|
9
|
-
|
|
9
|
+
ffd1caeba22493e45ad24c61af19c71adc25ba8eb2c3070152d150921024d68b4892d4e01575c9960e0b0aa1df9deae3514612b184afcf48e377022ca3bb0d85
|
|
10
10
|
HEAD_REF
|
|
11
11
|
main)
|
|
12
12
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#[[
|
|
2
|
+
SPDX-License-Identifier: MIT
|
|
3
|
+
SPDX-FileCopyrightText: Copyright 2024 msclock
|
|
4
|
+
|
|
5
|
+
This module initializes the build type.
|
|
6
|
+
]]
|
|
7
|
+
|
|
8
|
+
get_property(_is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
|
9
|
+
|
|
10
|
+
if(_is_multi_config)
|
|
11
|
+
message(STATUS "Multi-config generator detected")
|
|
12
|
+
message(STATUS "Available configuration types: ${CMAKE_CONFIGURATION_TYPES}")
|
|
13
|
+
else()
|
|
14
|
+
message(STATUS "Single-config generator detected")
|
|
15
|
+
if(NOT CMAKE_BUILD_TYPE)
|
|
16
|
+
message(STATUS "Setting CMAKE_BUILD_TYPE to 'Debug' as none was specified.")
|
|
17
|
+
set(CMAKE_BUILD_TYPE
|
|
18
|
+
Debug
|
|
19
|
+
CACHE STRING "Choose the type of build.")
|
|
20
|
+
endif()
|
|
21
|
+
|
|
22
|
+
# Set the possible values of build type for cmake-gui, ccmake
|
|
23
|
+
get_property(_builtin_build_types GLOBAL PROPERTY CMAKE_BUILD_TYPE)
|
|
24
|
+
|
|
25
|
+
foreach(_type "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
|
|
26
|
+
if(NOT _type IN_LIST _builtin_build_types)
|
|
27
|
+
list(APPEND _builtin_build_types ${_type})
|
|
28
|
+
endif()
|
|
29
|
+
endforeach()
|
|
30
|
+
|
|
31
|
+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${_builtin_build_types})
|
|
32
|
+
|
|
33
|
+
unset(_builtin_build_types)
|
|
34
|
+
endif()
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Customize vcpkg triplets
|
|
2
|
+
|
|
3
|
+
This folder applies to the custom vcpkg triplets. These triplets are loaded automatically which can be copied from the `triplets` folder of the vcpkg repository or created from scratch.
|
|
4
|
+
|
|
5
|
+
## Customize linkage
|
|
6
|
+
|
|
7
|
+
Prepare the triplet from the vcpkg repository
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
cp /path/to/vcpkg/repository/triplets/x64-linux.cmake ./x64-linux.cmake
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Edit the triplet to change the [VCPKG_LIBRARY_LINKAGE](https://learn.microsoft.com/en-us/vcpkg/users/triplets) to dynamic
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Apply for all ports to link dynamically
|
|
17
|
+
sed -i ./x64-linux.cmake -e's/set(VCPKG_LIBRARY_LINKAGE static)/set(VCPKG_LIBRARY_LINKAGE dynamic)/g'
|
|
18
|
+
|
|
19
|
+
# Or apply for specific ports to link dynamically
|
|
20
|
+
cat << EOF >> ./x64-linux.cmake
|
|
21
|
+
if(PORT MATCHES "qt5-")
|
|
22
|
+
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
|
23
|
+
endif()
|
|
24
|
+
EOF
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Use it when configure the project
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Use it when configure the project
|
|
31
|
+
cmake ... -DVCPKG_TARGET_TRIPLET=x64-linux
|
|
32
|
+
```
|
|
@@ -28,3 +28,6 @@ set(VCPKG_VERBOSE
|
|
|
28
28
|
file(READ ${CMAKE_SOURCE_DIR}/vcpkg.json _vcpkg_json)
|
|
29
29
|
string(JSON _builtin_baseline GET ${_vcpkg_json} builtin-baseline)
|
|
30
30
|
vcpkg_configure(CACHE_DIR_NAME cppcheck-wheel REF ${_builtin_baseline})
|
|
31
|
+
|
|
32
|
+
message(STATUS "CMAKE_CXX_COMPILER_TARGET: ${CMAKE_CXX_COMPILER_TARGET}")
|
|
33
|
+
message(STATUS "CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER}")
|
|
@@ -62,32 +62,33 @@ wheel.py-api = "py3"
|
|
|
62
62
|
wheel.expand-macos-universal-tags = true
|
|
63
63
|
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
|
|
64
64
|
sdist.include = ["src/cppcheck/_version.py"]
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
|
|
66
|
+
[tool.scikit-build.cmake.define]
|
|
67
|
+
BUILD_TESTING="OFF"
|
|
68
|
+
CMAKE_BUILD_TYPE="Release"
|
|
69
|
+
VCPKG_INSTALL_REPORT_FAILURE="ON"
|
|
70
|
+
VCPKG_INSTALL_OPTIONS="--allow-unsupported"
|
|
71
|
+
CMAKE_TOOLCHAIN_FILE="cmake/vcpkg/vcpkg.toolchain.cmake"
|
|
72
|
+
VCPKG_OVERLAY_TRIPLETS="cmake/vcpkg/triplets"
|
|
73
|
+
VCPKG_OVERLAY_PORTS="cmake/vcpkg/ports"
|
|
74
74
|
|
|
75
75
|
[tool.setuptools_scm]
|
|
76
76
|
write_to = "src/cppcheck/_version.py"
|
|
77
77
|
|
|
78
78
|
[tool.cibuildwheel]
|
|
79
79
|
build-verbosity = 1
|
|
80
|
+
skip = "pp*"
|
|
80
81
|
test-command = "pytest {project}/tests"
|
|
81
82
|
test-extras = ["test"]
|
|
82
83
|
test-skip = ["*-win_arm64", "*-macosx_universal2:arm64"]
|
|
83
84
|
|
|
84
85
|
[tool.cibuildwheel.linux]
|
|
85
86
|
before-build = [
|
|
86
|
-
'yum install zip -y || apk add zip || true',
|
|
87
|
+
'yum install zip perl-IPC-Cmd -y || apk add zip || true',
|
|
87
88
|
'apt update && apt install zip pkg-config -y || true',
|
|
88
|
-
'pip install cmake
|
|
89
|
+
'pip install cmake==3.31.6',
|
|
90
|
+
'pip install ninja==1.11.1.4',
|
|
89
91
|
'cmake --version',
|
|
90
|
-
'git --version',
|
|
91
92
|
'ninja --version',
|
|
92
93
|
]
|
|
93
94
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"overrides": [
|
|
18
18
|
{
|
|
19
19
|
"name": "cppcheck",
|
|
20
|
-
"version": "2.
|
|
20
|
+
"version": "2.17.1"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "pcre",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"registries": [
|
|
33
33
|
{
|
|
34
34
|
"kind": "git",
|
|
35
|
-
"baseline": "
|
|
35
|
+
"baseline": "82147f387552e0f31d5ca2c9370d9726789fa568",
|
|
36
36
|
"repository": "https://github.com/msclock/cmake-registry",
|
|
37
37
|
"packages": [
|
|
38
38
|
"cmake-modules",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#[[
|
|
2
|
-
SPDX-License-Identifier: MIT
|
|
3
|
-
SPDX-FileCopyrightText: Copyright 2024 msclock
|
|
4
|
-
]]
|
|
5
|
-
|
|
6
|
-
# configure VCPKG_CHAINLOAD_TOOLCHAIN_FILE based on VCPKG_TARGET_TRIPLET and
|
|
7
|
-
# VCPKG_TARGET_ARCHITECTURE
|
|
8
|
-
function(_vcpkg_chainload_toolchain)
|
|
9
|
-
if(DEFINED VCPKG_CHAINLOAD_TOOLCHAIN_FILE)
|
|
10
|
-
return()
|
|
11
|
-
endif()
|
|
12
|
-
|
|
13
|
-
if(NOT DEFINED VCPKG_TARGET_TRIPLET OR NOT DEFINED VCPKG_TARGET_ARCHITECTURE)
|
|
14
|
-
message(
|
|
15
|
-
FATAL_ERROR
|
|
16
|
-
"VCPKG_TARGET_TRIPLET and VCPKG_TARGET_ARCHITECTURE must be set before calling _vcpkg_chainload_toolchain()"
|
|
17
|
-
)
|
|
18
|
-
endif()
|
|
19
|
-
|
|
20
|
-
# Load toolchain variables from triplet and architecture
|
|
21
|
-
|
|
22
|
-
string(LENGTH "${VCPKG_TARGET_ARCHITECTURE}-" _prefix_len)
|
|
23
|
-
string(SUBSTRING ${VCPKG_TARGET_TRIPLET} ${_prefix_len} -1 _stripped_string)
|
|
24
|
-
string(REPLACE "-" ";" _triplet_parts "${_stripped_string}")
|
|
25
|
-
list(GET _triplet_parts 0 _chainload_toolchain_name)
|
|
26
|
-
|
|
27
|
-
set(_toolchain "scripts/toolchains/${_chainload_toolchain_name}.cmake")
|
|
28
|
-
|
|
29
|
-
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${_toolchain}")
|
|
30
|
-
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE
|
|
31
|
-
"${CMAKE_CURRENT_LIST_DIR}/${_toolchain}"
|
|
32
|
-
CACHE INTERNAL "vcpkg chainload")
|
|
33
|
-
elseif(EXISTS "${_VCPKG_ROOT}/${_toolchain}")
|
|
34
|
-
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE
|
|
35
|
-
"${_VCPKG_ROOT}/${_toolchain}"
|
|
36
|
-
CACHE INTERNAL "vcpkg chainload")
|
|
37
|
-
else()
|
|
38
|
-
message(
|
|
39
|
-
WARNING
|
|
40
|
-
"Could not find toolchain file for ${_chainload_toolchain_name}, skipping chainload"
|
|
41
|
-
)
|
|
42
|
-
endif()
|
|
43
|
-
message(
|
|
44
|
-
STATUS "vcpkg_chainload_toolchain_file: ${VCPKG_CHAINLOAD_TOOLCHAIN_FILE}")
|
|
45
|
-
endfunction()
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
#[[
|
|
2
|
-
SPDX-License-Identifier: MIT
|
|
3
|
-
SPDX-FileCopyrightText: Copyright 2024 msclock
|
|
4
|
-
|
|
5
|
-
This module initializes the build type.
|
|
6
|
-
]]
|
|
7
|
-
|
|
8
|
-
if(NOT CMAKE_BUILD_TYPE)
|
|
9
|
-
message(STATUS "Setting CMAKE_BUILD_TYPE to 'Debug' as none was specified.")
|
|
10
|
-
endif()
|
|
11
|
-
set(CMAKE_BUILD_TYPE
|
|
12
|
-
Debug
|
|
13
|
-
CACHE STRING "Choose the type of build.")
|
|
14
|
-
|
|
15
|
-
# Set the possible values of build type for cmake-gui, ccmake
|
|
16
|
-
get_property(_builtin_build_types GLOBAL PROPERTY CMAKE_BUILD_TYPE)
|
|
17
|
-
|
|
18
|
-
foreach(_type "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
|
|
19
|
-
if(NOT _type IN_LIST _builtin_build_types)
|
|
20
|
-
list(APPEND _builtin_build_types ${_type})
|
|
21
|
-
endif()
|
|
22
|
-
endforeach()
|
|
23
|
-
|
|
24
|
-
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${_builtin_build_types})
|
|
25
|
-
|
|
26
|
-
unset(_builtin_build_types)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Customize vcpkg triplets
|
|
2
|
-
|
|
3
|
-
This folder applies to the custom vcpkg triplets. These triplets are loaded automatically which can be copied from the `triplets` folder of the vcpkg repository or created from scratch.
|
|
4
|
-
|
|
5
|
-
For example, to create a custom triplet for Linux x64 with dynamic library linkage:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# Copy the triplet from the vcpkg repository
|
|
9
|
-
cp /path/to/vcpkg/repository/triplets/x64-linux.cmake ./x64-linux.cmake
|
|
10
|
-
# Edit the triplet to change the library linkage to dynamic
|
|
11
|
-
sed -i ./x64-linux.cmake -e's/set(VCPKG_LIBRARY_LINKAGE static)/set(VCPKG_LIBRARY_LINKAGE dynamic)/g'
|
|
12
|
-
# Show the contents of the triplet
|
|
13
|
-
cat ./x64-linux.cmake
|
|
14
|
-
# set(VCPKG_TARGET_ARCHITECTURE x64)
|
|
15
|
-
# set(VCPKG_CRT_LINKAGE dynamic)
|
|
16
|
-
# set(VCPKG_LIBRARY_LINKAGE dynamic)
|
|
17
|
-
|
|
18
|
-
# set(VCPKG_CMAKE_SYSTEM_NAME Linux)
|
|
19
|
-
|
|
20
|
-
# Use it when configure the project
|
|
21
|
-
cmake --preset=default -DVCPKG_TARGET_TRIPLET=x64-linux
|
|
22
|
-
```
|
|
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
|
|
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
|
{cppcheck-1.5.0 → cppcheck-1.5.1}/cmake/vcpkg/bootstrap/vcpkg_skip_install_on_reconfigure.cmake
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
|