mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[Linux] Make SO wrapper usage optional.
This commit is contained in:
parent
953383328a
commit
dd068794c3
21 changed files with 259 additions and 32 deletions
|
@ -36,7 +36,11 @@
|
|||
#include "core/os/os.h"
|
||||
#include "core/string/ustring.h"
|
||||
|
||||
#ifdef SOWRAP_ENABLED
|
||||
#include "dbus-so_wrap.h"
|
||||
#else
|
||||
#include <dbus/dbus.h>
|
||||
#endif
|
||||
|
||||
#include "core/variant/variant.h"
|
||||
|
||||
|
@ -124,12 +128,16 @@ uint32_t FreeDesktopPortalDesktop::get_appearance_color_scheme() {
|
|||
}
|
||||
|
||||
FreeDesktopPortalDesktop::FreeDesktopPortalDesktop() {
|
||||
#ifdef SOWRAP_ENABLED
|
||||
#ifdef DEBUG_ENABLED
|
||||
int dylibloader_verbose = 1;
|
||||
#else
|
||||
int dylibloader_verbose = 0;
|
||||
#endif
|
||||
unsupported = (initialize_dbus(dylibloader_verbose) != 0);
|
||||
#else
|
||||
unsupported = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // DBUS_ENABLED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue