Packaging fixes (#192)
* Start cleanup for improved packaging Signed-off-by: falkTX <falktx@falktx.com> * Use the same folder for VST2 plugins Signed-off-by: falkTX <falktx@falktx.com> * Fix static build Signed-off-by: falkTX <falktx@falktx.com> * Do not set source-dir in CI builds Signed-off-by: falkTX <falktx@falktx.com> * Set a custom fallback systemdir per OS Signed-off-by: falkTX <falktx@falktx.com> * CI tweaks Signed-off-by: falkTX <falktx@falktx.com> * Build the whole pyqt on windows Signed-off-by: falkTX <falktx@falktx.com> * Mention AU in readme and differences docs Signed-off-by: falkTX <falktx@falktx.com> * Add specialized utils for macOS packaging Signed-off-by: falkTX <falktx@falktx.com> * Fix plugin-validation build Signed-off-by: falkTX <falktx@falktx.com> * Fix build Signed-off-by: falkTX <falktx@falktx.com> * Do not create window for lv2lint tests * Start enabling AU builds * Copy over mod.lv2 specs for validation * Skip main cardinal lv2lint, the custom CVPorts are not supported * au build needs carla * More CI tweaks * Build headless version for plugin validation * Fix typo * Only show missing resources error message once Signed-off-by: falkTX <falktx@falktx.com> * Fallback to system path even if using a plugin bundle Signed-off-by: falkTX <falktx@falktx.com> * CI fixes, build full carla on Windows Signed-off-by: falkTX <falktx@falktx.com> * Rename script Signed-off-by: falkTX <falktx@falktx.com> * Silly typo Signed-off-by: falkTX <falktx@falktx.com> * More CI tweaks, add windows installer Signed-off-by: falkTX <falktx@falktx.com> * Setup Carla paths for Windows Signed-off-by: falkTX <falktx@falktx.com> * Yet more tweaks Signed-off-by: falkTX <falktx@falktx.com> * Package carla on windows, use xvfb-run Signed-off-by: falkTX <falktx@falktx.com> * Test win32 build too Signed-off-by: falkTX <falktx@falktx.com> * Finalize rework Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
dbefe13bfb
commit
a1017be6ea
22 changed files with 430 additions and 90 deletions
|
@ -99,6 +99,11 @@ struct CarlaModule : Module {
|
|||
CardinalExpanderFromCarlaMIDIToCV* midiOutExpander = nullptr;
|
||||
std::string patchStorage;
|
||||
|
||||
#ifdef CARLA_OS_WIN
|
||||
// must keep string pointer valid
|
||||
std::string winResourceDir;
|
||||
#endif
|
||||
|
||||
CarlaModule()
|
||||
: pcontext(static_cast<CardinalPluginContext*>(APP))
|
||||
{
|
||||
|
@ -138,10 +143,14 @@ struct CarlaModule : Module {
|
|||
binaryDir = "/Applications/Carla.app/Contents/MacOS";
|
||||
resourceDir = "/Applications/Carla.app/Contents/MacOS/resources";
|
||||
}
|
||||
#elif defined(CARLA_OS_WINDOWS)
|
||||
// Carla does not support system-wide install on Windows right now
|
||||
if (false)
|
||||
#elif defined(CARLA_OS_WIN)
|
||||
const std::string winBinaryDir = system::join(asset::systemDir, "Carla");
|
||||
|
||||
if (system::exists(winBinaryDir))
|
||||
{
|
||||
winResourceDir = system::join(winBinaryDir, "resources");
|
||||
binaryDir = winBinaryDir.c_str();
|
||||
resourceDir = winResourceDir.c_str();
|
||||
}
|
||||
#else
|
||||
if (system::exists("/usr/local/lib/carla"))
|
||||
|
|
|
@ -209,10 +209,14 @@ struct IldaeilModule : Module {
|
|||
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_BINARIES, 0, "/Applications/Carla.app/Contents/MacOS");
|
||||
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_RESOURCES, 0, "/Applications/Carla.app/Contents/MacOS/resources");
|
||||
}
|
||||
#elif defined(CARLA_OS_WINDOWS)
|
||||
// Carla does not support system-wide install on Windows right now
|
||||
if (false)
|
||||
#elif defined(CARLA_OS_WIN)
|
||||
const std::string winBinaryDir = system::join(asset::systemDir, "Carla");
|
||||
|
||||
if (system::exists(winBinaryDir))
|
||||
{
|
||||
const std::string winResourceDir = system::join(winBinaryDir, "resources");
|
||||
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_BINARIES, 0, winBinaryDir.c_str());
|
||||
carla_set_engine_option(fCarlaHostHandle, ENGINE_OPTION_PATH_RESOURCES, 0, winResourceDir.c_str());
|
||||
}
|
||||
#else
|
||||
if (system::exists("/usr/local/lib/carla"))
|
||||
|
|
|
@ -1051,10 +1051,8 @@ VST2_RESOURCES += $(PLUGIN_LIST:%=../bin/CardinalSynth.vst/Contents/Resources/Pl
|
|||
VST2_RESOURCES += $(RESOURCE_FILES:%=../bin/CardinalFX.vst/Contents/Resources/%)
|
||||
VST2_RESOURCES += $(RESOURCE_FILES:%=../bin/CardinalSynth.vst/Contents/Resources/%)
|
||||
else
|
||||
VST2_RESOURCES = $(PLUGIN_LIST:%=../bin/CardinalFX.vst/resources/PluginManifests/%.json)
|
||||
VST2_RESOURCES += $(PLUGIN_LIST:%=../bin/CardinalSynth.vst/resources/PluginManifests/%.json)
|
||||
VST2_RESOURCES += $(RESOURCE_FILES:%=../bin/CardinalFX.vst/resources/%)
|
||||
VST2_RESOURCES += $(RESOURCE_FILES:%=../bin/CardinalSynth.vst/resources/%)
|
||||
VST2_RESOURCES = $(PLUGIN_LIST:%=../bin/Cardinal.vst/resources/PluginManifests/%.json)
|
||||
VST2_RESOURCES += $(RESOURCE_FILES:%=../bin/Cardinal.vst/resources/%)
|
||||
endif
|
||||
|
||||
VST3_RESOURCES = $(PLUGIN_LIST:%=../bin/Cardinal.vst3/Contents/Resources/PluginManifests/%.json)
|
||||
|
@ -1138,19 +1136,11 @@ ifeq ($(MACOS),true)
|
|||
-@mkdir -p "$(shell dirname $@)"
|
||||
$(SILENT)ln -sf $(abspath $<) $@
|
||||
else
|
||||
../bin/CardinalFX.vst/resources/%: %
|
||||
../bin/Cardinal.vst/resources/%: %
|
||||
-@mkdir -p "$(shell dirname $@)"
|
||||
$(SILENT)ln -sf $(abspath $<) $@
|
||||
|
||||
../bin/CardinalSynth.vst/resources/%: %
|
||||
-@mkdir -p "$(shell dirname $@)"
|
||||
$(SILENT)ln -sf $(abspath $<) $@
|
||||
|
||||
../bin/CardinalFX.vst/resources/PluginManifests/%.json: %/plugin.json
|
||||
-@mkdir -p "$(shell dirname $@)"
|
||||
$(SILENT)ln -sf $(abspath $<) $@
|
||||
|
||||
../bin/CardinalSynth.vst/resources/PluginManifests/%.json: %/plugin.json
|
||||
../bin/Cardinal.vst/resources/PluginManifests/%.json: %/plugin.json
|
||||
-@mkdir -p "$(shell dirname $@)"
|
||||
$(SILENT)ln -sf $(abspath $<) $@
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue