Browse Source

Fix wasm build

Signed-off-by: falkTX <falktx@falktx.com>
tags/26.01
falkTX 5 months ago
parent
commit
39eda2c307
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 16 additions and 9 deletions
  1. +16
    -7
      Makefile
  2. +0
    -2
      src/Makefile.cardinal.mk

+ 16
- 7
Makefile View File

@@ -1,12 +1,12 @@
#!/usr/bin/make -f #!/usr/bin/make -f
# DISTRHO Cardinal Plugin # DISTRHO Cardinal Plugin
# Copyright (C) 2021-2024 Filipe Coelho <falktx@falktx.com>
# Copyright (C) 2021-2025 Filipe Coelho <falktx@falktx.com>
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later


ROOT = . ROOT = .
include $(ROOT)/Makefile.base.mk include $(ROOT)/Makefile.base.mk


# -----------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# Set version # Set version


# also set in: # also set in:
@@ -17,18 +17,18 @@ include $(ROOT)/Makefile.base.mk
# .github/ISSUE_TEMPLATE/bug.yaml src/CardinalCommon.cpp src/CardinalPlugin.cpp utils/macOS/Info_{JACK,Native}.plist # .github/ISSUE_TEMPLATE/bug.yaml src/CardinalCommon.cpp src/CardinalPlugin.cpp utils/macOS/Info_{JACK,Native}.plist
VERSION = 25.06 VERSION = 25.06


# --------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# Build targets # Build targets


all: cardinal carla deps dgl plugins gen resources all: cardinal carla deps dgl plugins gen resources


# --------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# Build config # Build config


PREFIX ?= /usr/local PREFIX ?= /usr/local
DESTDIR ?= DESTDIR ?=


# --------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# Carla config # Carla config


CARLA_EXTRA_ARGS = \ CARLA_EXTRA_ARGS = \
@@ -44,7 +44,16 @@ ifneq ($(DEBUG),true)
CARLA_EXTRA_ARGS += EXTERNAL_PLUGINS=true CARLA_EXTRA_ARGS += EXTERNAL_PLUGINS=true
endif endif


# --------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# DGL config

ifeq ($(WASM),true)
UI_TYPE = gles2
else
UI_TYPE = opengl
endif

# ---------------------------------------------------------------------------------------------------------------------
# Check for required system-wide dependencies # Check for required system-wide dependencies


ifeq ($(SYSDEPS),true) ifeq ($(SYSDEPS),true)
@@ -183,7 +192,7 @@ endif


dgl: dgl:
ifneq ($(HEADLESS),true) ifneq ($(HEADLESS),true)
$(MAKE) opengl -C dpf/dgl $(DGL_EXTRA_ARGS)
$(MAKE) $(UI_TYPE) -C dpf/dgl $(DGL_EXTRA_ARGS)
endif endif


plugins: deps plugins: deps


+ 0
- 2
src/Makefile.cardinal.mk View File

@@ -265,8 +265,6 @@ endif
ifeq ($(WASM),true) ifeq ($(WASM),true)
APP_EXT = .js APP_EXT = .js
UI_TYPE = gles2 UI_TYPE = gles2
else
UI_TYPE = opengl
endif endif


USE_VST2_BUNDLE = true USE_VST2_BUNDLE = true


Loading…
Cancel
Save