File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ ifndef SFIZZ_DIR
4
4
$(error sfizz : The source directory must be set before including)
5
5
endif
6
6
7
+ # ## Options
8
+
9
+ SFIZZ_USE_SNDFILE ?= 1
10
+
7
11
# ##
8
12
9
13
SFIZZ_MACHINE := $(shell $(CC ) -dumpmachine)
@@ -125,13 +129,15 @@ SFIZZ_PKG_CONFIG ?= pkg-config
125
129
126
130
# Sndfile dependency
127
131
132
+ ifeq ($(SFIZZ_USE_SNDFILE ) ,1)
128
133
SFIZZ_SNDFILE_C_FLAGS ?= $(shell $(SFIZZ_PKG_CONFIG ) --cflags sndfile)
129
134
SFIZZ_SNDFILE_CXX_FLAGS ?= $(SFIZZ_SNDFILE_C_FLAGS )
130
135
SFIZZ_SNDFILE_LINK_FLAGS ?= $(shell $(SFIZZ_PKG_CONFIG ) --libs sndfile)
131
136
132
- SFIZZ_C_FLAGS += $(SFIZZ_SNDFILE_C_FLAGS )
133
- SFIZZ_CXX_FLAGS += $(SFIZZ_SNDFILE_CXX_FLAGS )
137
+ SFIZZ_C_FLAGS += $(SFIZZ_SNDFILE_C_FLAGS ) -DST_AUDIO_FILE_USE_SNDFILE=1
138
+ SFIZZ_CXX_FLAGS += $(SFIZZ_SNDFILE_CXX_FLAGS ) -DST_AUDIO_FILE_USE_SNDFILE=1
134
139
SFIZZ_LINK_FLAGS += $(SFIZZ_SNDFILE_LINK_FLAGS )
140
+ endif
135
141
136
142
# ## Abseil dependency
137
143
Original file line number Diff line number Diff line change 29
29
#
30
30
# SFIZZ_RACK_PLUGIN_DIR = <the root directory of the Rack plugin>
31
31
# SFIZZ_PKG_CONFIG = <a custom pkg-config command>
32
+ # SFIZZ_USE_SNDFILE = <0 disabled, 1 enabled (default)>
32
33
# SFIZZ_SNDFILE_C_FLAGS = <compiler flags of sndfile for C>
33
34
# SFIZZ_SNDFILE_CXX_FLAGS = <compiler flags of sndfile for C++>
34
35
# SFIZZ_SNDFILE_LINK_FLAGS = <linker flags of sndfile>
You can’t perform that action at this time.
0 commit comments