Allow to link against system dependencies
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
28bcac708f
commit
6675a1e81d
4 changed files with 46 additions and 11 deletions
|
@ -85,11 +85,13 @@ struct Initializer {
|
|||
|
||||
if (asset::systemDir.empty())
|
||||
{
|
||||
#ifdef CARDINAL_PLUGIN_SOURCE_DIR
|
||||
// Make system dir point to source code location as fallback
|
||||
asset::systemDir = CARDINAL_PLUGIN_SOURCE_DIR DISTRHO_OS_SEP_STR "Rack";
|
||||
|
||||
// And if that fails, use install target prefix
|
||||
if (! system::isDirectory(system::join(asset::systemDir, "res")))
|
||||
#endif
|
||||
{
|
||||
asset::bundlePath = CARDINAL_PLUGIN_PREFIX "/share/Cardinal/PluginManifests";
|
||||
asset::systemDir = CARDINAL_PLUGIN_PREFIX "/share/Cardinal";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue