Browse Source

Fix carla-plugin install; Always copy files instead of linking

tags/1.9.4
falkTX 10 years ago
parent
commit
98d1f4e64c
4 changed files with 37 additions and 20 deletions
  1. +24
    -14
      Makefile
  2. +8
    -2
      source/carla-plugin
  3. +1
    -2
      source/carla_host.py
  4. +4
    -2
      source/modules/theme/Makefile

+ 24
- 14
Makefile View File

@@ -31,7 +31,7 @@ all: CXX RES UI WIDGETS
# C++ code (native)

ifeq ($(HAVE_JUCE),true)
CXX: backend bridges discovery plugin theme
CXX: backend bridges discovery plugin plugin_ui theme
else
CXX: backend bridges discovery theme
endif
@@ -48,6 +48,10 @@ discovery:
plugin:
$(MAKE) -C source/plugin

plugin_ui: source/carla-plugin source/*.py RES UI WIDGETS
$(LINK) $(CURDIR)/source/carla-plugin source/modules/native-plugins/resources/
$(LINK) $(CURDIR)/source/*.py source/modules/native-plugins/resources/

theme:
$(MAKE) -C source/modules/theme

@@ -163,6 +167,9 @@ install:
install -d $(DESTDIR)$(PREFIX)/lib/carla/resources/nekofilter/
install -d $(DESTDIR)$(PREFIX)/lib/carla/resources/zynaddsubfx/
install -d $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/
install -d $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/resources/
install -d $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/resources/nekofilter/
install -d $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/resources/zynaddsubfx/
install -d $(DESTDIR)$(PREFIX)/lib/pkgconfig/
install -d $(DESTDIR)$(PREFIX)/include/carla/
install -d $(DESTDIR)$(PREFIX)/include/carla/includes/
@@ -182,10 +189,10 @@ install:
data/carla-patchbay \
data/carla-rack \
data/carla-settings \
data/carla-single \
$(DESTDIR)$(PREFIX)/bin/

# data/carla-control \
# data/carla-single \

# Install desktop files
install -m 644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications/
@@ -213,7 +220,7 @@ install:
# Install mime package
install -m 644 data/carla.xml $(DESTDIR)$(PREFIX)/share/mime/packages/

# Install pkgconfig file
# Install pkg-config file
install -m 644 data/carla-standalone.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig/

# Install backend
@@ -227,7 +234,7 @@ install:
source/discovery/carla-discovery-* \
$(DESTDIR)$(PREFIX)/lib/carla/

# Install plugin
# Install lv2 plugin
install -m 644 \
source/plugin/carla-native.lv2/*.so \
source/plugin/carla-native.lv2/*.ttl \
@@ -249,15 +256,23 @@ install:
install -m 644 source/backend/CarlaHost.h $(DESTDIR)$(PREFIX)/include/carla/
install -m 644 source/includes/CarlaDefines.h $(DESTDIR)$(PREFIX)/include/carla/includes/

# Install resources
# Install resources (main)
install -m 755 source/modules/native-plugins/resources/carla-plugin $(DESTDIR)$(PREFIX)/lib/carla/resources/
install -m 755 source/modules/native-plugins/resources/*-ui $(DESTDIR)$(PREFIX)/lib/carla/resources/
install -m 644 source/modules/native-plugins/resources/*.py $(DESTDIR)$(PREFIX)/lib/carla/resources/
install -m 644 source/modules/native-plugins/resources/nekofilter/*.png $(DESTDIR)$(PREFIX)/lib/carla/resources/nekofilter/
install -m 644 source/modules/native-plugins/resources/zynaddsubfx/*.png $(DESTDIR)$(PREFIX)/lib/carla/resources/zynaddsubfx/

# Install resources (lv2 plugin)
install -m 755 source/modules/native-plugins/resources/carla-plugin $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/resources/
install -m 755 source/modules/native-plugins/resources/*-ui $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/resources/
install -m 644 source/modules/native-plugins/resources/*.py $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/resources/
install -m 644 source/modules/native-plugins/resources/nekofilter/*.png $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/resources/nekofilter/
install -m 644 source/modules/native-plugins/resources/zynaddsubfx/*.png $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/resources/zynaddsubfx/

# Install theme
$(MAKE) STYLES_DIR=$(DESTDIR)$(PREFIX)/lib/carla/styles install-main -C source/modules/theme
$(MAKE) STYLES_DIR=$(DESTDIR)$(PREFIX)/lib/carla/styles install-main -C source/modules/theme
$(MAKE) STYLES_DIR=$(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/resources/styles install-main -C source/modules/theme

# Adjust PREFIX value in script files
sed -i "s/X-PREFIX-X/$(SED_PREFIX)/" \
@@ -271,15 +286,11 @@ install:
# $(DESTDIR)$(PREFIX)/bin/carla-single \
# $(DESTDIR)$(PREFIX)/bin/carla-control \

# Set plugin resources
cd $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/ && \
$(RM) -r resources && \
$(LINK) $(PREFIX)/lib/carla/resources/ .

# --------------------------------------------------------------

uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/carla*
rm -f $(DESTDIR)$(PREFIX)/lib/pkgconfig/carla-standalone.pc
rm -f $(DESTDIR)$(PREFIX)/share/applications/carla.desktop
rm -f $(DESTDIR)$(PREFIX)/share/applications/carla-control.desktop
rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/*/apps/carla.png
@@ -287,10 +298,9 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/carla.svg
rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/carla-control.svg
rm -f $(DESTDIR)$(PREFIX)/share/mime/packages/carla.xml
rm -f $(DESTDIR)$(PREFIX)/lib/dssi/carla-dssi.so
rm -f $(DESTDIR)$(PREFIX)/lib/vst/carla-vst.so
rm -rf $(DESTDIR)$(PREFIX)/include/carla/
rm -rf $(DESTDIR)$(PREFIX)/lib/carla/
rm -rf $(DESTDIR)$(PREFIX)/lib/lv2/carla.lv2/
rm -rf $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/
rm -rf $(DESTDIR)$(PREFIX)/share/carla/

# --------------------------------------------------------------


+ 8
- 2
source/carla-plugin View File

@@ -239,6 +239,9 @@ class PluginHost(object):
def set_engine_option(self, option, value, valueStr):
gCarla.gui.send(["set_engine_option", option, value, valueStr])

def set_file_callback(self, func):
pass

# -------------------------------------------------------------------

def set_file_callback(self, func):
@@ -289,8 +292,8 @@ class PluginHost(object):

# -------------------------------------------------------------------

def add_plugin(self, btype, ptype, filename, name, label, extraPtr):
gCarla.gui.send(["add_plugin", btype, ptype, filename, name, label])
def add_plugin(self, btype, ptype, filename, name, label, uniqueId, extraPtr):
gCarla.gui.send(["add_plugin", btype, ptype, filename, name, uniqueId, label])
return True

def remove_plugin(self, pluginId):
@@ -717,6 +720,9 @@ if __name__ == '__main__':

app = CarlaApplication("Carla2-Plugin")

if "__file__" in dir():
app.addLibraryPath(os.path.dirname(__file__))

# -------------------------------------------------------------
# Set-up custom signal handling



+ 1
- 2
source/carla_host.py View File

@@ -162,8 +162,7 @@ class HostWindow(QMainWindow):

if gCarla.host is not None:
gCarla.host.set_engine_callback(engineCallback)

gCarla.host.set_file_callback(fileCallback)
gCarla.host.set_file_callback(fileCallback)

# -------------------------------------------------------------
# Internal stuff


+ 4
- 2
source/modules/theme/Makefile View File

@@ -25,8 +25,10 @@ QT5_STYLES_DIR = $(shell pkg-config --variable=libdir Qt5Core)/qt5/plugins/sty
endif

ifeq ($(HAVE_QT4),true)
QT_STYLES_DIR = $(QT4_STYLES_DIR)
SHARED_LINK_FLAGS = $(QT4_LINK_FLAGS)
else
QT_STYLES_DIR = $(QT5_STYLES_DIR)
SHARED_LINK_FLAGS = $(QT5_LINK_FLAGS)
endif

@@ -154,8 +156,8 @@ debug:
$(MAKE) DEBUG=true

install: $(CARLASTYLE) styles/carlastyle.json
install -d $(QT4_STYLES_DIR)
install -m 644 $^ $(QT4_STYLES_DIR)
install -d $(QT_STYLES_DIR)
install -m 644 $^ $(QT_STYLES_DIR)

install-main: $(CARLASTYLE) styles/carlastyle.json
install -d $(STYLES_DIR)


Loading…
Cancel
Save