Add wxStandardPaths::GetSharedLibrariesDir()

This function returns the directory with the application's shared
libraries, which is different from the plugins directory under Mac.

Closes #24052.
This commit is contained in:
oneeyeman1 2024-01-27 12:43:34 -06:00 committed by Vadim Zeitlin
parent f82ccc1a19
commit 91de9867ee
10 changed files with 47 additions and 1 deletions

View file

@ -312,7 +312,7 @@ public:
/**
Return the program installation prefix, e.g.\ @c /usr, @c /opt or @c /home/zeitlin.
If the prefix had been previously by SetInstallPrefix(), returns that
If the prefix had been previously set by SetInstallPrefix(), returns that
value, otherwise tries to determine it automatically (Linux only right now)
and finally returns the default @c /usr/local value if it failed.
@ -441,6 +441,22 @@ public:
*/
virtual wxString GetUserLocalDataDir() const;
/**
Return OS specific directory where project shared liraries are.
The function does the same thing as GetPluginsDir() under non-Mac platforms
but differs from it under Mac, where plugins (shared libraries loaded by the
application dynamically while it's running) and shared libraries (that the
application is statically linked with) are stored in different directories.
- Windows: returns the folder where the application binary is located
- Unix: returns the libraries installation path, i.e. /usr/lib
- Mac: returns `Contents/Frameworks` bundle subdirectory
@since 3.3.0
*/
virtual wxString GetSharedLibrariesDir() const;
/**
MSW-specific function to customize application directory detection.