From 1fd430c78971c31b624b0773bbea825d8b480d55 Mon Sep 17 00:00:00 2001 From: Adonais Romero González Date: Wed, 15 Jan 2025 09:32:38 -0800 Subject: [audio/sysvad] Use C++17 (#1247) --- audio/sysvad/APO/AecApo/AecApo.vcxproj | 4 ++++ audio/sysvad/APO/DelayAPO/DelayAPO.vcxproj | 4 ++++ audio/sysvad/APO/KWSApo/KWSApo.vcxproj | 4 ++++ audio/sysvad/APO/SwapAPO/SwapAPO.vcxproj | 4 ++++ .../sysvad/EndpointsCommon/EndpointsCommon.vcxproj | 4 ++++ audio/sysvad/EndpointsCommon/NewDelete.cpp | 24 ++++++++++++++++++++++ audio/sysvad/EndpointsCommon/NewDelete.h | 15 ++++++++++++++ .../KeywordDetectorContosoAdapter.vcxproj | 4 ++++ .../TabletAudioSample/TabletAudioSample.vcxproj | 8 ++++++++ 9 files changed, 71 insertions(+) diff --git a/audio/sysvad/APO/AecApo/AecApo.vcxproj b/audio/sysvad/APO/AecApo/AecApo.vcxproj index 37c814b1..4bbcd19a 100644 --- a/audio/sysvad/APO/AecApo/AecApo.vcxproj +++ b/audio/sysvad/APO/AecApo/AecApo.vcxproj @@ -123,6 +123,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -147,6 +148,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -172,6 +174,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -196,6 +199,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE diff --git a/audio/sysvad/APO/DelayAPO/DelayAPO.vcxproj b/audio/sysvad/APO/DelayAPO/DelayAPO.vcxproj index 81004ea0..391bf1ab 100644 --- a/audio/sysvad/APO/DelayAPO/DelayAPO.vcxproj +++ b/audio/sysvad/APO/DelayAPO/DelayAPO.vcxproj @@ -123,6 +123,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -147,6 +148,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -172,6 +174,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -196,6 +199,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE diff --git a/audio/sysvad/APO/KWSApo/KWSApo.vcxproj b/audio/sysvad/APO/KWSApo/KWSApo.vcxproj index 05430973..ff74c60b 100644 --- a/audio/sysvad/APO/KWSApo/KWSApo.vcxproj +++ b/audio/sysvad/APO/KWSApo/KWSApo.vcxproj @@ -123,6 +123,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -147,6 +148,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -172,6 +174,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -196,6 +199,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE diff --git a/audio/sysvad/APO/SwapAPO/SwapAPO.vcxproj b/audio/sysvad/APO/SwapAPO/SwapAPO.vcxproj index c1e2f27a..43a5c87b 100644 --- a/audio/sysvad/APO/SwapAPO/SwapAPO.vcxproj +++ b/audio/sysvad/APO/SwapAPO/SwapAPO.vcxproj @@ -123,6 +123,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -147,6 +148,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -172,6 +174,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -196,6 +199,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE diff --git a/audio/sysvad/EndpointsCommon/EndpointsCommon.vcxproj b/audio/sysvad/EndpointsCommon/EndpointsCommon.vcxproj index aa5cc3e2..c1ba8b14 100644 --- a/audio/sysvad/EndpointsCommon/EndpointsCommon.vcxproj +++ b/audio/sysvad/EndpointsCommon/EndpointsCommon.vcxproj @@ -94,6 +94,7 @@ %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);..;. %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND;_NEW_DELETE_OPERATORS_ @@ -114,6 +115,7 @@ %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);..;. %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND;_NEW_DELETE_OPERATORS_ @@ -134,6 +136,7 @@ %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);..;. %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND;_NEW_DELETE_OPERATORS_ @@ -154,6 +157,7 @@ %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);..;. %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND;_NEW_DELETE_OPERATORS_ diff --git a/audio/sysvad/EndpointsCommon/NewDelete.cpp b/audio/sysvad/EndpointsCommon/NewDelete.cpp index 64c64cc0..daa076e2 100644 --- a/audio/sysvad/EndpointsCommon/NewDelete.cpp +++ b/audio/sysvad/EndpointsCommon/NewDelete.cpp @@ -103,6 +103,30 @@ void __cdecl operator delete } +/***************************************************************************** +* ::delete() +***************************************************************************** +* Sized Delete function with alignment. +*/ +#ifdef __cpp_aligned_new +void __cdecl operator delete +( + _Pre_maybenull_ __drv_freesMem(Mem) PVOID pVoid, + _In_ size_t cbSize, + _In_ std::align_val_t cbAlign +) +{ + UNREFERENCED_PARAMETER(cbSize); + UNREFERENCED_PARAMETER(cbAlign); + + if (pVoid) + { + ExFreePoolWithTag(pVoid, SYSVAD_POOLTAG); + } +} +#endif // __cpp_aligned_new + + /***************************************************************************** * ::delete() ***************************************************************************** diff --git a/audio/sysvad/EndpointsCommon/NewDelete.h b/audio/sysvad/EndpointsCommon/NewDelete.h index be46cbf5..fefcda6e 100644 --- a/audio/sysvad/EndpointsCommon/NewDelete.h +++ b/audio/sysvad/EndpointsCommon/NewDelete.h @@ -70,6 +70,21 @@ void __cdecl operator delete ); +/***************************************************************************** +* ::delete() +***************************************************************************** +* Sized Delete function with alignment. +*/ +#ifdef __cpp_aligned_new +void __cdecl operator delete +( + _Pre_maybenull_ __drv_freesMem(Mem) PVOID pVoid, + _In_ size_t cbSize, + _In_ std::align_val_t cbAlign +); +#endif // __cpp_aligned_new + + /***************************************************************************** * ::delete() ***************************************************************************** diff --git a/audio/sysvad/KeywordDetectorAdapter/KeywordDetectorContosoAdapter.vcxproj b/audio/sysvad/KeywordDetectorAdapter/KeywordDetectorContosoAdapter.vcxproj index 592fefb2..98726d7a 100644 --- a/audio/sysvad/KeywordDetectorAdapter/KeywordDetectorContosoAdapter.vcxproj +++ b/audio/sysvad/KeywordDetectorAdapter/KeywordDetectorContosoAdapter.vcxproj @@ -111,6 +111,7 @@ + stdcpp17 MultiThreaded MultiThreadedDebug true @@ -135,6 +136,7 @@ + stdcpp17 MultiThreaded MultiThreadedDebug true @@ -159,6 +161,7 @@ + stdcpp17 MultiThreaded MultiThreadedDebug true @@ -183,6 +186,7 @@ + stdcpp17 MultiThreaded MultiThreadedDebug true diff --git a/audio/sysvad/TabletAudioSample/TabletAudioSample.vcxproj b/audio/sysvad/TabletAudioSample/TabletAudioSample.vcxproj index 8e6e6ee4..a37a16b1 100644 --- a/audio/sysvad/TabletAudioSample/TabletAudioSample.vcxproj +++ b/audio/sysvad/TabletAudioSample/TabletAudioSample.vcxproj @@ -88,6 +88,7 @@ %(PreprocessorDefinitions);DEBUG_LEVEL=DEBUGLVL_TERSE + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);.. true Level4 @@ -110,6 +111,7 @@ %(PreprocessorDefinitions);DEBUG_LEVEL=DEBUGLVL_TERSE + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);.. true Level4 @@ -132,6 +134,7 @@ %(PreprocessorDefinitions);DEBUG_LEVEL=DEBUGLVL_TERSE + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);.. true Level4 @@ -154,6 +157,7 @@ %(PreprocessorDefinitions);DEBUG_LEVEL=DEBUGLVL_TERSE + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);.. true Level4 @@ -183,6 +187,7 @@ %(AdditionalDependencies);.\..\EndpointsCommon\$(IntDir)\EndpointsCommon.lib + stdcpp17 11 - 13 + 15 -DNDIS_MINIPORT_DRIVER -DNDIS60_MINIPORT=1 -DBINARY_COMPATIBLE=0 -DUSE_KLOCKS=1 -DNDIS_MINIPORT_DRIVER -DNDIS60_MINIPORT=1 -DNDIS61_MINIPORT=1 -DNDIS620_MINIPORT=1 -DBINARY_COMPATIBLE=0 -DUSE_KLOCKS=1 -- cgit v1.3.1 From 08d6ae676da7c2dcdaf6e81c7f695229c194c5be Mon Sep 17 00:00:00 2001 From: Wei Mao Date: Thu, 20 Mar 2025 13:25:54 -0700 Subject: Update samples to use WDF v15+ --- general/ioctl/kmdf/exe/nonpnpapp.vcxproj | 26 ----------- .../ndis/ndisprot_kmdf/notifyob/ProtNotify.vcxproj | 50 +++++++++++----------- .../WDI/PLATFORM/NDIS6/SDIO/n6c_sdio.inc.props | 2 +- 3 files changed, 26 insertions(+), 52 deletions(-) diff --git a/general/ioctl/kmdf/exe/nonpnpapp.vcxproj b/general/ioctl/kmdf/exe/nonpnpapp.vcxproj index 83b8dacb..85fb0878 100644 --- a/general/ioctl/kmdf/exe/nonpnpapp.vcxproj +++ b/general/ioctl/kmdf/exe/nonpnpapp.vcxproj @@ -21,8 +21,6 @@ {18A38FF8-1227-4F3B-997B-A83A6E4CFD20} $(MSBuildProjectName) - 1 - 11 Debug x64 {F5414C9C-6CDE-4673-879E-27AD5A30C4C5} @@ -99,20 +97,14 @@ %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 sha256 @@ -124,20 +116,14 @@ %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 sha256 @@ -149,20 +135,14 @@ %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 sha256 @@ -174,20 +154,14 @@ %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 %(AdditionalIncludeDirectories);..\sys - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 sha256 diff --git a/network/ndis/ndisprot_kmdf/notifyob/ProtNotify.vcxproj b/network/ndis/ndisprot_kmdf/notifyob/ProtNotify.vcxproj index 82f995bd..629ce98a 100644 --- a/network/ndis/ndisprot_kmdf/notifyob/ProtNotify.vcxproj +++ b/network/ndis/ndisprot_kmdf/notifyob/ProtNotify.vcxproj @@ -22,7 +22,7 @@ {E92C4A1E-396E-4CAF-A5DB-44901F07C515} $(MSBuildProjectName) 1 - 11 + 15 false true Debug @@ -213,16 +213,16 @@ - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 ProtNotify.def @@ -230,16 +230,16 @@ - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 ProtNotify.def @@ -247,16 +247,16 @@ - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 ProtNotify.def @@ -264,16 +264,16 @@ - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 - %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=11 - %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.11 + %(PreprocessorDefinitions);KMDF_VERSION_MAJOR=1;KMDF_VERSION_MINOR=15 + %(AdditionalIncludeDirectories);$(WDKContentRoot)\Include\wdf\kmdf\1.15 ProtNotify.def diff --git a/network/wlan/WDI/PLATFORM/NDIS6/SDIO/n6c_sdio.inc.props b/network/wlan/WDI/PLATFORM/NDIS6/SDIO/n6c_sdio.inc.props index 95559b3c..48fb4917 100644 --- a/network/wlan/WDI/PLATFORM/NDIS6/SDIO/n6c_sdio.inc.props +++ b/network/wlan/WDI/PLATFORM/NDIS6/SDIO/n6c_sdio.inc.props @@ -17,7 +17,7 @@ 11 11 - 13 + 15 -DNDIS_MINIPORT_DRIVER -DNDIS60_MINIPORT=1 -DBINARY_COMPATIBLE=0 -DUSE_KLOCKS=1 -DNDIS_MINIPORT_DRIVER -DNDIS60_MINIPORT=1 -DNDIS61_MINIPORT=1 -DNDIS620_MINIPORT=1 -DBINARY_COMPATIBLE=0 -DUSE_KLOCKS=1 -- cgit v1.3.1 From 61fe2ecffeeb6a77c9352384bee6f63812b0a697 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 20 Mar 2025 20:29:47 +0000 Subject: Bump tj-actions/changed-files from 41 to 46 in /.github/workflows Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 41 to 46. - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](https://github.com/tj-actions/changed-files/compare/v41...v46) --- updated-dependencies: - dependency-name: tj-actions/changed-files dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- .github/workflows/ci-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 9c1202b2..0e5825d1 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -27,7 +27,7 @@ jobs: - name: Get changed files id: get-changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@v46 with: separator: "," -- cgit v1.3.1 From 52908d7718c6fac2953055db2e5d23537957c7af Mon Sep 17 00:00:00 2001 From: Jacob Ronstadt <147542405+jacob-ronstadt@users.noreply.github.com> Date: Mon, 24 Mar 2025 15:59:45 -0700 Subject: Update Code-Scanning.yml to use latest windows-drivers pack (#1277) * Update Code-Scanning.yml to use latest windows-drivers pack * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml * Update Code-Scanning.yml: reduce duplacate code --- .github/workflows/Code-Scanning.yml | 59 +++++++++---------------------------- 1 file changed, 14 insertions(+), 45 deletions(-) diff --git a/.github/workflows/Code-Scanning.yml b/.github/workflows/Code-Scanning.yml index e843271f..63e155c9 100644 --- a/.github/workflows/Code-Scanning.yml +++ b/.github/workflows/Code-Scanning.yml @@ -24,48 +24,8 @@ on: workflow_dispatch: jobs: - analyze-push: - name: Analysis-Push - if: github.event_name == 'push' - runs-on: windows-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'cpp' ] - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - name: Install Nuget Packages - run: nuget restore .\packages.config -PackagesDirectory .\packages\ - - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - config-file: microsoft/Windows-Driver-Developer-Supplemental-Tools/config/codeql-config.yml@development - packs: +microsoft/windows-drivers@1.2.0-beta - - name: Retrieve and build all available solutions - run: .\Build-AllSamples.ps1 -Verbose -ThrottleLimit 1 - env: - WDS_Configuration: Debug - WDS_Platform: x64 - WDS_WipeOutputs: ${{ true }} - - - name: Perform CodeQL analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:${{matrix.language}}" - analyze-pr: - name: Analysis-PR - if: github.event_name == 'pull_request' + analyze: + name: Analysis runs-on: windows-latest permissions: actions: read @@ -97,12 +57,21 @@ jobs: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} config-file: microsoft/Windows-Driver-Developer-Supplemental-Tools/config/codeql-config.yml@development - packs: +microsoft/windows-drivers@1.2.0-beta - - if: matrix.build-mode == 'manual' + - if: github.event_name == 'pull_request' run: | $changedFiles = "${{ steps.get-changed-files.outputs.all_changed_files }}".Split(',') .\.github\scripts\Build-ChangedSamples.ps1 -ChangedFiles $changedFiles -Verbose + env: + WDS_Configuration: Debug + WDS_Platform: x64 + WDS_WipeOutputs: ${{ true }} + - if: github.event_name == 'push' + run: .\Build-AllSamples.ps1 -Verbose -ThrottleLimit 1 + env: + WDS_Configuration: Debug + WDS_Platform: x64 + WDS_WipeOutputs: ${{ true }} - name: Perform CodeQL analysis uses: github/codeql-action/analyze@v3 with: - category: "/language:${{matrix.language}}" \ No newline at end of file + category: "/language:${{matrix.language}}" -- cgit v1.3.1 From 5d5cd612d00cc8c17f22a2793a284d1bb5091cdb Mon Sep 17 00:00:00 2001 From: Adonais Romero González Date: Wed, 15 Jan 2025 09:32:38 -0800 Subject: [audio/sysvad] Use C++17 (#1247) --- audio/sysvad/APO/AecApo/AecApo.vcxproj | 4 ++++ audio/sysvad/APO/DelayAPO/DelayAPO.vcxproj | 4 ++++ audio/sysvad/APO/KWSApo/KWSApo.vcxproj | 4 ++++ audio/sysvad/APO/SwapAPO/SwapAPO.vcxproj | 4 ++++ .../sysvad/EndpointsCommon/EndpointsCommon.vcxproj | 4 ++++ audio/sysvad/EndpointsCommon/NewDelete.cpp | 24 ++++++++++++++++++++++ audio/sysvad/EndpointsCommon/NewDelete.h | 15 ++++++++++++++ .../KeywordDetectorContosoAdapter.vcxproj | 4 ++++ .../TabletAudioSample/TabletAudioSample.vcxproj | 8 ++++++++ 9 files changed, 71 insertions(+) diff --git a/audio/sysvad/APO/AecApo/AecApo.vcxproj b/audio/sysvad/APO/AecApo/AecApo.vcxproj index 37c814b1..4bbcd19a 100644 --- a/audio/sysvad/APO/AecApo/AecApo.vcxproj +++ b/audio/sysvad/APO/AecApo/AecApo.vcxproj @@ -123,6 +123,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -147,6 +148,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -172,6 +174,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -196,6 +199,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE diff --git a/audio/sysvad/APO/DelayAPO/DelayAPO.vcxproj b/audio/sysvad/APO/DelayAPO/DelayAPO.vcxproj index 81004ea0..391bf1ab 100644 --- a/audio/sysvad/APO/DelayAPO/DelayAPO.vcxproj +++ b/audio/sysvad/APO/DelayAPO/DelayAPO.vcxproj @@ -123,6 +123,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -147,6 +148,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -172,6 +174,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -196,6 +199,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE diff --git a/audio/sysvad/APO/KWSApo/KWSApo.vcxproj b/audio/sysvad/APO/KWSApo/KWSApo.vcxproj index 05430973..ff74c60b 100644 --- a/audio/sysvad/APO/KWSApo/KWSApo.vcxproj +++ b/audio/sysvad/APO/KWSApo/KWSApo.vcxproj @@ -123,6 +123,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -147,6 +148,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -172,6 +174,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -196,6 +199,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE diff --git a/audio/sysvad/APO/SwapAPO/SwapAPO.vcxproj b/audio/sysvad/APO/SwapAPO/SwapAPO.vcxproj index c1e2f27a..43a5c87b 100644 --- a/audio/sysvad/APO/SwapAPO/SwapAPO.vcxproj +++ b/audio/sysvad/APO/SwapAPO/SwapAPO.vcxproj @@ -123,6 +123,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -147,6 +148,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -172,6 +174,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE @@ -196,6 +199,7 @@ + stdcpp17 true Level4 %(PreprocessorDefinitions);_WINDLL;_USRDLL;UNICODE;_UNICODE diff --git a/audio/sysvad/EndpointsCommon/EndpointsCommon.vcxproj b/audio/sysvad/EndpointsCommon/EndpointsCommon.vcxproj index aa5cc3e2..c1ba8b14 100644 --- a/audio/sysvad/EndpointsCommon/EndpointsCommon.vcxproj +++ b/audio/sysvad/EndpointsCommon/EndpointsCommon.vcxproj @@ -94,6 +94,7 @@ %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);..;. %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND;_NEW_DELETE_OPERATORS_ @@ -114,6 +115,7 @@ %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);..;. %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND;_NEW_DELETE_OPERATORS_ @@ -134,6 +136,7 @@ %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);..;. %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND;_NEW_DELETE_OPERATORS_ @@ -154,6 +157,7 @@ %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);..;. %(PreprocessorDefinitions);_USE_WAVERT_;SYSVAD_BTH_BYPASS;SYSVAD_USB_SIDEBAND;_NEW_DELETE_OPERATORS_ diff --git a/audio/sysvad/EndpointsCommon/NewDelete.cpp b/audio/sysvad/EndpointsCommon/NewDelete.cpp index 64c64cc0..daa076e2 100644 --- a/audio/sysvad/EndpointsCommon/NewDelete.cpp +++ b/audio/sysvad/EndpointsCommon/NewDelete.cpp @@ -103,6 +103,30 @@ void __cdecl operator delete } +/***************************************************************************** +* ::delete() +***************************************************************************** +* Sized Delete function with alignment. +*/ +#ifdef __cpp_aligned_new +void __cdecl operator delete +( + _Pre_maybenull_ __drv_freesMem(Mem) PVOID pVoid, + _In_ size_t cbSize, + _In_ std::align_val_t cbAlign +) +{ + UNREFERENCED_PARAMETER(cbSize); + UNREFERENCED_PARAMETER(cbAlign); + + if (pVoid) + { + ExFreePoolWithTag(pVoid, SYSVAD_POOLTAG); + } +} +#endif // __cpp_aligned_new + + /***************************************************************************** * ::delete() ***************************************************************************** diff --git a/audio/sysvad/EndpointsCommon/NewDelete.h b/audio/sysvad/EndpointsCommon/NewDelete.h index be46cbf5..fefcda6e 100644 --- a/audio/sysvad/EndpointsCommon/NewDelete.h +++ b/audio/sysvad/EndpointsCommon/NewDelete.h @@ -70,6 +70,21 @@ void __cdecl operator delete ); +/***************************************************************************** +* ::delete() +***************************************************************************** +* Sized Delete function with alignment. +*/ +#ifdef __cpp_aligned_new +void __cdecl operator delete +( + _Pre_maybenull_ __drv_freesMem(Mem) PVOID pVoid, + _In_ size_t cbSize, + _In_ std::align_val_t cbAlign +); +#endif // __cpp_aligned_new + + /***************************************************************************** * ::delete() ***************************************************************************** diff --git a/audio/sysvad/KeywordDetectorAdapter/KeywordDetectorContosoAdapter.vcxproj b/audio/sysvad/KeywordDetectorAdapter/KeywordDetectorContosoAdapter.vcxproj index 592fefb2..98726d7a 100644 --- a/audio/sysvad/KeywordDetectorAdapter/KeywordDetectorContosoAdapter.vcxproj +++ b/audio/sysvad/KeywordDetectorAdapter/KeywordDetectorContosoAdapter.vcxproj @@ -111,6 +111,7 @@ + stdcpp17 MultiThreaded MultiThreadedDebug true @@ -135,6 +136,7 @@ + stdcpp17 MultiThreaded MultiThreadedDebug true @@ -159,6 +161,7 @@ + stdcpp17 MultiThreaded MultiThreadedDebug true @@ -183,6 +186,7 @@ + stdcpp17 MultiThreaded MultiThreadedDebug true diff --git a/audio/sysvad/TabletAudioSample/TabletAudioSample.vcxproj b/audio/sysvad/TabletAudioSample/TabletAudioSample.vcxproj index 8e6e6ee4..a37a16b1 100644 --- a/audio/sysvad/TabletAudioSample/TabletAudioSample.vcxproj +++ b/audio/sysvad/TabletAudioSample/TabletAudioSample.vcxproj @@ -88,6 +88,7 @@ %(PreprocessorDefinitions);DEBUG_LEVEL=DEBUGLVL_TERSE + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);.. true Level4 @@ -110,6 +111,7 @@ %(PreprocessorDefinitions);DEBUG_LEVEL=DEBUGLVL_TERSE + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);.. true Level4 @@ -132,6 +134,7 @@ %(PreprocessorDefinitions);DEBUG_LEVEL=DEBUGLVL_TERSE + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);.. true Level4 @@ -154,6 +157,7 @@ %(PreprocessorDefinitions);DEBUG_LEVEL=DEBUGLVL_TERSE + stdcpp17 %(AdditionalIncludeDirectories);$(DDK_INC_PATH);.. true Level4 @@ -183,6 +187,7 @@ %(AdditionalDependencies);.\..\EndpointsCommon\$(IntDir)\EndpointsCommon.lib + stdcpp17