Browse Source

Better compatibility with msys2

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC3
falkTX 4 years ago
parent
commit
9a273b1839
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 26 additions and 5 deletions
  1. +13
    -0
      Makefile
  2. +6
    -0
      source/Makefile.mk
  3. +4
    -4
      source/discovery/Makefile
  4. +3
    -1
      source/frontend/carla_database.py

+ 13
- 0
Makefile View File

@@ -206,6 +206,19 @@ rest: libs
theme: libs theme: libs
@$(MAKE) -C source/theme @$(MAKE) -C source/theme


# ---------------------------------------------------------------------------------------------------------------------
# hacks

msys2fix:
rm -rf source/includes/serd
rm -rf source/includes/sord
rm -rf source/includes/sratom
rm -rf source/includes/lilv
cp -r source/modules/lilv/serd-0.24.0/serd source/includes/serd
cp -r source/modules/lilv/sord-0.16.0/sord source/includes/sord
cp -r source/modules/lilv/sratom-0.6.0/sratom source/includes/sratom
cp -r source/modules/lilv/lilv-0.24.0/lilv source/includes/lilv

# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# nuitka # nuitka




+ 6
- 0
source/Makefile.mk View File

@@ -42,6 +42,12 @@ MACOS=true
endif endif
ifneq (,$(findstring mingw,$(TARGET_MACHINE))) ifneq (,$(findstring mingw,$(TARGET_MACHINE)))
WIN32=true WIN32=true
ifneq (,$(findstring x86_64,$(TARGET_MACHINE)))
WIN64=true
endif
endif
ifneq (,$(findstring msys,$(TARGET_MACHINE)))
WIN32=true
endif endif


endif # WIN32 endif # WIN32


+ 4
- 4
source/discovery/Makefile View File

@@ -4,16 +4,16 @@
# Created by falkTX # Created by falkTX
# #


CWD=..
MODULENAME=carla-discovery
include $(CWD)/Makefile.mk

ifeq ($(WIN64),true) ifeq ($(WIN64),true)
winv=64 winv=64
else else
winv=32 winv=32
endif endif


CWD=..
MODULENAME=carla-discovery
include $(CWD)/Makefile.mk

# Workaround GCC bug # Workaround GCC bug
ifeq ($(TESTBUILD),true) ifeq ($(TESTBUILD),true)
ifeq ($(USING_JUCE),true) ifeq ($(USING_JUCE),true)


+ 3
- 1
source/frontend/carla_database.py View File

@@ -280,6 +280,8 @@ def runCarlaDiscovery(itype, stype, filename, tool, wineSettings=None):
pinfo['name'] = value if value else fakeLabel pinfo['name'] = value if value else fakeLabel
elif prop == "label": elif prop == "label":
pinfo['label'] = value if value else fakeLabel pinfo['label'] = value if value else fakeLabel
elif prop == "filename":
pinfo['filename'] = value
elif prop == "maker": elif prop == "maker":
pinfo['maker'] = value pinfo['maker'] = value
elif prop == "category": elif prop == "category":
@@ -351,7 +353,7 @@ def checkPluginCached(desc, ptype):
pinfo['parameters.outs'] = desc['parameterOuts'] pinfo['parameters.outs'] = desc['parameterOuts']


if ptype == PLUGIN_LV2: if ptype == PLUGIN_LV2:
pinfo['filename'], pinfo['label'] = pinfo['label'].split(os.path.sep,1)
pinfo['filename'], pinfo['label'] = pinfo['label'].split('\\' if WINDOWS else '/',1)


elif ptype == PLUGIN_SFZ: elif ptype == PLUGIN_SFZ:
pinfo['filename'] = pinfo['label'] pinfo['filename'] = pinfo['label']


Loading…
Cancel
Save