Browse Source

Start makefile tweaks to allow wasm builds

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 3 years ago
parent
commit
bac019897f
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
5 changed files with 16 additions and 0 deletions
  1. +2
    -0
      Makefile
  2. +2
    -0
      deps/Makefile
  3. +4
    -0
      plugins/Makefile
  4. +4
    -0
      src/Makefile
  5. +4
    -0
      src/Makefile.cardinal.mk

+ 2
- 0
Makefile View File

@@ -51,6 +51,7 @@ endif

ifneq ($(HAIKU_OR_MACOS_OR_WINDOWS),true)
ifneq ($(HEADLESS),true)
ifneq ($(WASM),true)

ifneq ($(HAVE_OPENGL),true)
$(error X11 dependency not installed/available)
@@ -72,6 +73,7 @@ CARLA_EXTRA_ARGS += HAVE_X11=false
CARLA_EXTRA_ARGS += HAVE_XEXT=false
CARLA_EXTRA_ARGS += HAVE_XRANDR=false

endif
endif
endif



+ 2
- 0
deps/Makefile View File

@@ -47,6 +47,8 @@ MACHINE = x86_64-the-rack
else ifeq ($(CPU_ARM),true)
ARCH_NAME = arm
MACHINE = i686-the-rack
else ifeq ($(WASM),true)
MACHINE = i686-wasm
else
MACHINE = $(TARGET_MACHINE)
endif


+ 4
- 0
plugins/Makefile View File

@@ -546,6 +546,10 @@ BASE_FLAGS += -DZSTDLIB_VISIBILITY=
BASE_FLAGS += -I../src/Rack/dep/include
endif

ifeq ($(WASM),true)
BASE_FLAGS += -DNANOVG_GLES2=1
endif

ifeq ($(WINDOWS),true)
BASE_FLAGS += -D_USE_MATH_DEFINES
BASE_FLAGS += -DWIN32_LEAN_AND_MEAN


+ 4
- 0
src/Makefile View File

@@ -51,6 +51,10 @@ BASE_FLAGS += -IRack/dep/oui-blendish
BASE_FLAGS += -IRack/dep/pffft
BASE_FLAGS += -pthread

ifeq ($(WASM),true)
BASE_FLAGS += -DNANOVG_GLES2=1
endif

ifeq ($(WINDOWS),true)
BASE_FLAGS += -D_USE_MATH_DEFINES
BASE_FLAGS += -DWIN32_LEAN_AND_MEAN


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

@@ -144,6 +144,10 @@ BASE_FLAGS += -I../Rack/dep/nanosvg/src
BASE_FLAGS += -I../Rack/dep/oui-blendish
BASE_FLAGS += -pthread

ifeq ($(WASM),true)
BASE_FLAGS += -DNANOVG_GLES2=1
endif

ifeq ($(WINDOWS),true)
BASE_FLAGS += -D_USE_MATH_DEFINES
BASE_FLAGS += -DWIN32_LEAN_AND_MEAN


Loading…
Cancel
Save