Skip to content

Commit ed943e5

Browse files
eu-chdefault_user
andauthored
set Wwise generator to use latest Windows SDK by default (#358)
* set Wwise generator to use latest Windows SDK by default * Add a note about Wwise Windows SDK fix --------- Co-authored-by: default_user <default_user@example.org>
1 parent f6501bf commit ed943e5

3 files changed

Lines changed: 16 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Bugfixes:
1515
* Only append to table when first value is a float
1616
* GUI send/receive config for objects in subpatches
1717
* DPF: also send BPM value to `__hv_dpf_bpm` when transport is not playing
18+
* Wwise: use latest Windows SDK available locally instead of hardcoded version
1819

1920
0.15.0
2021
-----

docs/generators/wwise.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,15 @@ An appropriate configuration will be selected at compile time based on the numbe
6262

6363
To build Authoring and Engine plugins on Windows you’ll need:
6464

65-
- If using Visual Studio 2019:
65+
- Visual Studio 2022 with the following components:
6666
- Desktop development with C++ workload
67-
- MSVC v142 - VS 2019 C++ x64/x86 build tools
68-
- C++ ATL for latest v142 build tools (x86 & x64)
69-
- C++ MFC for latest v142 build tools (x86 & x64)
67+
- MSVC v143 - VS 2022 C++ x64/x86 build tools
68+
- C++ ATL for latest v143 build tools (x86 & x64)
69+
- C++ MFC for latest v143 build tools (x86 & x64)
7070
- Windows Universal CRT SDK
71-
- Windows 10 SDK (10.0.19041.0)
72-
- Different version can be specified in a generated
73-
PremakePlugin.lua file
74-
- If using Visual Studio 2022
75-
- Requirements are the same as for 2019, but components of version v143 must be installed instead
76-
- *Note:* Wwise of version at least 2022.1.5 is required to build plugins with this version of Visual Studio
71+
- Windows SDK
72+
- Any version that's not "out of support" should work
73+
- Different version can be specified in a generated PremakePlugin.lua file
7774
- Wwise 2022 or later
7875
- Version 2021 should work, too, but it wasn't tested
7976
- SDKs with required deployment platforms must be installed through
@@ -102,14 +99,14 @@ Generate Visual Studio project files; note, WWISEROOT environment variable can b
10299

103100
```cmd
104101
python "%WWISEROOT%\Scripts\Build\Plugins\wp.py" premake Authoring
105-
python "%WWISEROOT%\Scripts\Build\Plugins\wp.py" premake Windows_vc160
102+
python "%WWISEROOT%\Scripts\Build\Plugins\wp.py" premake Windows_vc170
106103
```
107104

108-
Build Authoring and Engine plugins in Release configurations; for Visual Studio 2022 replace vc160 with vc170:
105+
Build Authoring and Engine plugins in Release configurations with for Visual Studio 2022 (vc170):
109106

110107
```cmd
111-
python "%WWISEROOT%\Scripts\Build\Plugins\wp.py" build -c Release -x x64 -t vc160 Authoring
112-
python "%WWISEROOT%\Scripts\Build\Plugins\wp.py" build -c Release -x x64 -t vc160 Windows_vc160
108+
python "%WWISEROOT%\Scripts\Build\Plugins\wp.py" build -c Release -x x64 -t vc170 Authoring
109+
python "%WWISEROOT%\Scripts\Build\Plugins\wp.py" build -c Release -x x64 -t vc170 Windows_vc170
113110
```
114111

115112
At this point, the plugins should be placed in correct SDK directories and be ready for use in the Authoring app.
@@ -120,7 +117,7 @@ We can go a step further and package the plugins into a bundle that can be insta
120117

121118
```cmd
122119
python "%WWISEROOT%\Scripts\Build\Plugins\wp.py" package --version 2022.1.0.1 Authoring
123-
python "%WWISEROOT%\Scripts\Build\Plugins\wp.py" package --version 2022.1.0.1 Windows_vc160
120+
python "%WWISEROOT%\Scripts\Build\Plugins\wp.py" package --version 2022.1.0.1 Windows_vc170
124121
python "%WWISEROOT%\Scripts\Build\Plugins\wp.py" generate-bundle --version 2022.1.0.1
125122
mkdir Bundle
126123
copy /y bundle.json Bundle

hvcc/generators/c2wwise/templates/PremakePlugin.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Plugin.sdk.static.libdirs = {}
2828
Plugin.sdk.static.defines = {}
2929
Plugin.sdk.static.custom = function()
3030
filter "system:Windows"
31-
systemversion "10.0.19041.0"
31+
systemversion "latest"
3232
end
3333

3434
Plugin.sdk.shared.includedirs = {}
@@ -43,7 +43,7 @@ Plugin.sdk.shared.libdirs = {}
4343
Plugin.sdk.shared.defines = {}
4444
Plugin.sdk.shared.custom = function()
4545
filter "system:Windows"
46-
systemversion "10.0.19041.0"
46+
systemversion "latest"
4747
end
4848

4949
Plugin.authoring.includedirs =
@@ -67,7 +67,7 @@ Plugin.authoring.libdirs = {}
6767
Plugin.authoring.defines = {}
6868
Plugin.authoring.custom = function()
6969
filter "system:Windows"
70-
systemversion "10.0.19041.0"
70+
systemversion "latest"
7171
end
7272

7373
return Plugin

0 commit comments

Comments
 (0)