alessandrofama / wwise-godot-integration

Wwise Integration for the Godot Engine
Other
288 stars 14 forks source link

Extending Build Export script to select debug or release lib on export #24

Closed alessandrofama closed 3 years ago

alessandrofama commented 3 years ago

This PR fixes issue https://github.com/alessandrofama/wwise-godot-integration/issues/21.

Problem: Godot exports both debug and release GDNative libraries. On desktop platforms the shared libraries share the same name and one library gets overwritten because of that. This behaviour results in debug exports using the release library for example.

Solution: We use only one .gdnlib and .gdns named wwise-gdnative and set the correct library path in the build export script. Godot picks the debug or release library based on the Export with Debug setting in the export project window:

grafik

Tested on Windows and macOS, but I expect this to work for all platforms.

jorgegarcia commented 3 years ago

Nice improvement, thanks Alessandro!