-
Notifications
You must be signed in to change notification settings - Fork 12
Building the GDExtension Library
Welcome to the GDExtension building guide. This guide will walk you through the process of downloading and installing the SCons build tool, setting up the repository, and providing general build instructions.
- Using Homebrew
- Open your terminal.
- Install SCons using Homebrew by entering the following command:
brew install scons
- Check for Python Installation
- Open a command prompt by pressing Win + R, typing cmd, and hitting Enter.
- Verify if Python is installed by running:
python --version
If Python is not installed, proceed to the next steps.
- Installing Python
- Visit the Python website (python.org) to download the latest version.
- Run the Python installer.
- During installation, ensure you select the option to install pip as well.
- SCons Installation
- Once Python and pip are installed, open a command prompt.
- Install SCons using pip:
pip install SCons
- Clone the repository and update submodules:
git clone https://github.com/alessandrofama/wwise-godot-integration.git --recurse-submodules
- Choose a specific version (tag example: 2.0.0-Wwise2022.1-Godot4.0.4)
git checkout tags/2.0.0-Wwise2022.1-Godot4.0.4
Proceed with General Build Instructions from this point onward.
To build the GDExtension library for this project, we use SCons, a flexible and cross-platform software construction tool. Follow the general build instructions below to compile the library.
- Open a powershell/terminal and navigate to the
addons/Wwise/native
directory of the project. - Execute the following command to build the library:
Debug library:
scons platform=windows target=template_debug wwise_sdk=$env:WWISESDK use_static_cpp=yes dev_build=yes
Release library:
scons platform=windows target=template_release wwise_sdk=$env:WWISESDK use_static_cpp=yes
The command requires the following compilation parameters:
-
platform
: Specify the target platform, such aswindows
,macos
,linux
orios
. -
target
: Choose betweentemplate_debug
ortemplate_release
. -
wwise_sdk
: Provide the path to the directory that contains the SDK folder installed from the Wwise Launcher. -
use_static_cpp
: required on Windows.
Optional parameters include:
-
asserts
: Set it totrue
orfalse
to enable or disableAKASSERT
checks in the code. Only works in combination with thetemplate_debug
parameter. -
dev_build
: Build a library with debug symbols and no optimizations. Thetemplate_debug
libraries in the GitHub releases usedev_build
by default.
When building the library for iOS, you can optionally pass the ios_min_version
parameter to SCons, specifying a minimum iOS version for the library. Use the following command:
scons platform=ios target=template_debug arch=arm64 ios_min_version=11.0 wwise_sdk=/Applications/Audiokinetic/Wwise\ 2022.1.4.8202/SDK
The integration supports all factory plugins and the following premium plugins:
Plugin | Compilation Parameter | Supported Platforms |
---|---|---|
Reflect | reflect | All |
Motion | motion | Windows |
Convolution | convolution | All |
SoundSeed Air | soundseed_air | All |
SoundSeed Grain | soundseed_grain | All |
Impacter | impacter | All |
Mastering Suite | mastering_suite | All |
Add the plugins separated by comma as a compilation parameter to SCons (example):
scons target=template_release platform=windows wwise_sdk="%WWISESDK%" use_static_cpp=yes plugins=convolution,reflect,motion
- 4.1+
- 3.5
- Getting Started
- Tutorials
- Exporting projects
- GDNative Interfaces
- Custom Nodes
- Custom addons
- Wwise version upgrade
- Roadmap