More tweaks for future wasm
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
cb016113d6
commit
5465b44705
5 changed files with 35 additions and 20 deletions
5
deps/Makefile
vendored
5
deps/Makefile
vendored
|
@ -18,7 +18,12 @@ include ../dpf/Makefile.base.mk
|
|||
BASE_FLAGS += -DZSTDLIB_VISIBILITY=
|
||||
BASE_FLAGS += -I../include
|
||||
BASE_FLAGS += -I../include/neon-compat
|
||||
|
||||
ifeq ($(WASM),true)
|
||||
BASE_FLAGS += -msse -msse2 -msse3 -msimd128
|
||||
else
|
||||
BASE_FLAGS += -pthread
|
||||
endif
|
||||
|
||||
ifeq ($(WINDOWS),true)
|
||||
BASE_FLAGS += -D_USE_MATH_DEFINES
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
#if defined(__i386__) || defined(__x86_64__) || defined(__EMSCRIPTEN__)
|
||||
# include_next <pmmintrin.h>
|
||||
#else
|
||||
# include "../sse2neon/sse2neon.h"
|
||||
|
|
|
@ -527,6 +527,13 @@ BASE_FLAGS += -I../dpf/distrho
|
|||
BASE_FLAGS += -I../include
|
||||
BASE_FLAGS += -I../include/neon-compat
|
||||
|
||||
ifeq ($(SYSDEPS),true)
|
||||
BASE_FLAGS += -DCARDINAL_SYSDEPS
|
||||
else
|
||||
BASE_FLAGS += -DZSTDLIB_VISIBILITY=
|
||||
BASE_FLAGS += -I../src/Rack/dep/include
|
||||
endif
|
||||
|
||||
BASE_FLAGS += -I../src
|
||||
BASE_FLAGS += -I../src/Rack/include
|
||||
BASE_FLAGS += -I../src/Rack/include/dsp
|
||||
|
@ -537,17 +544,17 @@ BASE_FLAGS += -I../src/Rack/dep/nanosvg/src
|
|||
BASE_FLAGS += -I../src/Rack/dep/osdialog
|
||||
BASE_FLAGS += -I../src/Rack/dep/oui-blendish
|
||||
BASE_FLAGS += -I../src/Rack/dep/pffft
|
||||
BASE_FLAGS += -pthread
|
||||
|
||||
ifeq ($(SYSDEPS),true)
|
||||
BASE_FLAGS += -DCARDINAL_SYSDEPS
|
||||
else
|
||||
BASE_FLAGS += -DZSTDLIB_VISIBILITY=
|
||||
BASE_FLAGS += -I../src/Rack/dep/include
|
||||
ifeq ($(HEADLESS),true)
|
||||
BASE_FLAGS += -DHEADLESS
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(WASM),true)
|
||||
BASE_FLAGS += -DNANOVG_GLES2=1
|
||||
BASE_FLAGS += -msse -msse2 -msse3 -msimd128
|
||||
else
|
||||
BASE_FLAGS += -pthread
|
||||
endif
|
||||
|
||||
ifeq ($(WINDOWS),true)
|
||||
|
@ -557,10 +564,6 @@ BASE_FLAGS += -I../include/mingw-compat
|
|||
BASE_FLAGS += -I../include/mingw-std-threads
|
||||
endif
|
||||
|
||||
ifeq ($(HEADLESS),true)
|
||||
BASE_FLAGS += -DHEADLESS
|
||||
endif
|
||||
|
||||
ifeq ($(NOPLUGINS),true)
|
||||
BASE_FLAGS += -DNOPLUGINS
|
||||
endif
|
||||
|
|
14
src/Makefile
14
src/Makefile
|
@ -49,10 +49,18 @@ BASE_FLAGS += -IRack/dep/nanosvg/src
|
|||
BASE_FLAGS += -IRack/dep/osdialog
|
||||
BASE_FLAGS += -IRack/dep/oui-blendish
|
||||
BASE_FLAGS += -IRack/dep/pffft
|
||||
BASE_FLAGS += -pthread
|
||||
|
||||
ifeq ($(HEADLESS),true)
|
||||
BASE_FLAGS += -DHEADLESS
|
||||
endif
|
||||
|
||||
ifeq ($(WASM),true)
|
||||
BASE_FLAGS += -DNANOVG_GLES2=1
|
||||
BASE_FLAGS += -msse -msse2 -msse3 -msimd128
|
||||
# FIXME
|
||||
BASE_FLAGS += -DRTLD_DEEPBIND=0
|
||||
else
|
||||
BASE_FLAGS += -pthread
|
||||
endif
|
||||
|
||||
ifeq ($(WINDOWS),true)
|
||||
|
@ -62,10 +70,6 @@ BASE_FLAGS += -I../include/mingw-compat
|
|||
BASE_FLAGS += -I../include/mingw-std-threads
|
||||
endif
|
||||
|
||||
ifeq ($(HEADLESS),true)
|
||||
BASE_FLAGS += -DHEADLESS
|
||||
endif
|
||||
|
||||
ifeq ($(WITH_LTO),true)
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects
|
||||
endif
|
||||
|
|
|
@ -144,8 +144,15 @@ BASE_FLAGS += -I../Rack/dep/nanosvg/src
|
|||
BASE_FLAGS += -I../Rack/dep/oui-blendish
|
||||
BASE_FLAGS += -pthread
|
||||
|
||||
ifeq ($(HEADLESS),true)
|
||||
BASE_FLAGS += -DHEADLESS
|
||||
endif
|
||||
|
||||
ifeq ($(WASM),true)
|
||||
BASE_FLAGS += -DNANOVG_GLES2=1
|
||||
BASE_FLAGS += -msse -msse2 -msse3 -msimd128
|
||||
else
|
||||
BASE_FLAGS += -pthread
|
||||
endif
|
||||
|
||||
ifeq ($(WINDOWS),true)
|
||||
|
@ -155,10 +162,6 @@ BASE_FLAGS += -I../../include/mingw-compat
|
|||
BASE_FLAGS += -I../../include/mingw-std-threads
|
||||
endif
|
||||
|
||||
ifeq ($(HEADLESS),true)
|
||||
BASE_FLAGS += -DHEADLESS
|
||||
endif
|
||||
|
||||
ifeq ($(WITH_LTO),true)
|
||||
BASE_FLAGS += -fno-strict-aliasing -flto -ffat-lto-objects
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue