Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

435 lines
14KB

  1. #!/usr/bin/make -f
  2. # Makefile for DPF Example Plugins #
  3. # -------------------------------- #
  4. # Created by falkTX
  5. #
  6. # NOTE: NAME, FILES_DSP and FILES_UI must have been defined before including this file!
  7. ifeq ($(DPF_PATH),)
  8. ifeq (,$(wildcard ../../Makefile.base.mk))
  9. DPF_PATH=../../dpf
  10. else
  11. DPF_PATH=../..
  12. endif
  13. endif
  14. include $(DPF_PATH)/Makefile.base.mk
  15. # ---------------------------------------------------------------------------------------------------------------------
  16. # Basic setup
  17. ifeq ($(DPF_TARGET_DIR),)
  18. TARGET_DIR = ../../bin
  19. else
  20. TARGET_DIR = $(DPF_TARGET_DIR)
  21. endif
  22. ifeq ($(DPF_BUILD_DIR),)
  23. BUILD_DIR = ../../build/$(NAME)
  24. else
  25. BUILD_DIR = $(DPF_BUILD_DIR)
  26. endif
  27. BUILD_C_FLAGS += -I.
  28. BUILD_CXX_FLAGS += -I. -I$(DPF_PATH)/distrho -I$(DPF_PATH)/dgl
  29. ifeq ($(HAVE_ALSA),true)
  30. BASE_FLAGS += -DHAVE_ALSA
  31. endif
  32. ifeq ($(HAVE_LIBLO),true)
  33. BASE_FLAGS += -DHAVE_LIBLO
  34. endif
  35. ifeq ($(HAVE_PULSEAUDIO),true)
  36. BASE_FLAGS += -DHAVE_PULSEAUDIO
  37. endif
  38. ifeq ($(MACOS),true)
  39. JACK_LIBS += -framework CoreAudio -framework CoreFoundation
  40. else ifeq ($(WINDOWS),true)
  41. JACK_LIBS += -lksuser -lmfplat -lmfuuid -lole32 -lwinmm -lwmcodecdspuuid
  42. else ifneq ($(HAIKU),true)
  43. JACK_LIBS = -ldl
  44. ifeq ($(HAVE_ALSA),true)
  45. JACK_FLAGS += $(ALSA_FLAGS)
  46. JACK_LIBS += $(ALSA_LIBS)
  47. endif
  48. ifeq ($(HAVE_PULSEAUDIO),true)
  49. JACK_FLAGS += $(PULSEAUDIO_FLAGS)
  50. JACK_LIBS += $(PULSEAUDIO_LIBS)
  51. endif
  52. ifeq ($(HAVE_RTAUDIO),true)
  53. JACK_LIBS += -lpthread
  54. endif # !HAIKU
  55. endif
  56. # backwards compat
  57. BASE_FLAGS += -DHAVE_JACK
  58. # ---------------------------------------------------------------------------------------------------------------------
  59. # Set VST3 filename, see https://vst3sdk-doc.diatonic.jp/doc/vstinterfaces/vst3loc.html
  60. ifeq ($(LINUX),true)
  61. VST3_FILENAME = $(TARGET_PROCESSOR)-linux/$(NAME).so
  62. endif
  63. ifeq ($(MACOS),true)
  64. ifneq ($(MACOS_OLD),true)
  65. VST3_FILENAME = MacOS/$(NAME)
  66. endif
  67. endif
  68. ifeq ($(WINDOWS),true)
  69. VST3_FILENAME = $(TARGET_PROCESSOR)-win/$(NAME).vst3
  70. endif
  71. # ---------------------------------------------------------------------------------------------------------------------
  72. # Set files to build
  73. OBJS_DSP = $(FILES_DSP:%=$(BUILD_DIR)/%.o)
  74. OBJS_UI = $(FILES_UI:%=$(BUILD_DIR)/%.o)
  75. ifeq ($(MACOS),true)
  76. OBJS_UI += $(BUILD_DIR)/DistrhoUI_macOS_$(NAME).mm.o
  77. endif
  78. # ---------------------------------------------------------------------------------------------------------------------
  79. # Set plugin binary file targets
  80. jack = $(TARGET_DIR)/$(NAME)$(APP_EXT)
  81. ladspa_dsp = $(TARGET_DIR)/$(NAME)-ladspa$(LIB_EXT)
  82. dssi_dsp = $(TARGET_DIR)/$(NAME)-dssi$(LIB_EXT)
  83. dssi_ui = $(TARGET_DIR)/$(NAME)-dssi/$(NAME)_ui$(APP_EXT)
  84. lv2 = $(TARGET_DIR)/$(NAME).lv2/$(NAME)$(LIB_EXT)
  85. lv2_dsp = $(TARGET_DIR)/$(NAME).lv2/$(NAME)_dsp$(LIB_EXT)
  86. lv2_ui = $(TARGET_DIR)/$(NAME).lv2/$(NAME)_ui$(LIB_EXT)
  87. vst2 = $(TARGET_DIR)/$(NAME)-vst$(LIB_EXT)
  88. ifneq ($(VST3_FILENAME),)
  89. vst3 = $(TARGET_DIR)/$(NAME).vst3/Contents/$(VST3_FILENAME)
  90. endif
  91. # ---------------------------------------------------------------------------------------------------------------------
  92. # Set plugin symbols to export
  93. ifeq ($(MACOS),true)
  94. SYMBOLS_LADSPA = -Wl,-exported_symbols_list,$(DPF_PATH)/utils/symbols/ladspa.exp
  95. SYMBOLS_DSSI = -Wl,-exported_symbols_list,$(DPF_PATH)/utils/symbols/dssi.exp
  96. SYMBOLS_LV2DSP = -Wl,-exported_symbols_list,$(DPF_PATH)/utils/symbols/lv2-dsp.exp
  97. SYMBOLS_LV2UI = -Wl,-exported_symbols_list,$(DPF_PATH)/utils/symbols/lv2-ui.exp
  98. SYMBOLS_LV2 = -Wl,-exported_symbols_list,$(DPF_PATH)/utils/symbols/lv2.exp
  99. SYMBOLS_VST2 = -Wl,-exported_symbols_list,$(DPF_PATH)/utils/symbols/vst2.exp
  100. SYMBOLS_VST3 = -Wl,-exported_symbols_list,$(DPF_PATH)/utils/symbols/vst3.exp
  101. else ifeq ($(WINDOWS),true)
  102. SYMBOLS_LADSPA = $(DPF_PATH)/utils/symbols/ladspa.def
  103. SYMBOLS_DSSI = $(DPF_PATH)/utils/symbols/dssi.def
  104. SYMBOLS_LV2DSP = $(DPF_PATH)/utils/symbols/lv2-dsp.def
  105. SYMBOLS_LV2UI = $(DPF_PATH)/utils/symbols/lv2-ui.def
  106. SYMBOLS_LV2 = $(DPF_PATH)/utils/symbols/lv2.def
  107. SYMBOLS_VST2 = $(DPF_PATH)/utils/symbols/vst2.def
  108. SYMBOLS_VST3 = $(DPF_PATH)/utils/symbols/vst3.def
  109. else ifneq ($(DEBUG),true)
  110. SYMBOLS_LADSPA = -Wl,--version-script=$(DPF_PATH)/utils/symbols/ladspa.version
  111. SYMBOLS_DSSI = -Wl,--version-script=$(DPF_PATH)/utils/symbols/dssi.version
  112. SYMBOLS_LV2DSP = -Wl,--version-script=$(DPF_PATH)/utils/symbols/lv2-dsp.version
  113. SYMBOLS_LV2UI = -Wl,--version-script=$(DPF_PATH)/utils/symbols/lv2-ui.version
  114. SYMBOLS_LV2 = -Wl,--version-script=$(DPF_PATH)/utils/symbols/lv2.version
  115. SYMBOLS_VST2 = -Wl,--version-script=$(DPF_PATH)/utils/symbols/vst2.version
  116. SYMBOLS_VST3 = -Wl,--version-script=$(DPF_PATH)/utils/symbols/vst3.version
  117. endif
  118. # ---------------------------------------------------------------------------------------------------------------------
  119. # Handle UI stuff, disable UI support automatically
  120. ifeq ($(FILES_UI),)
  121. HAVE_DGL = false
  122. UI_TYPE = none
  123. endif
  124. ifeq ($(UI_TYPE),)
  125. UI_TYPE = opengl
  126. endif
  127. ifeq ($(UI_TYPE),generic)
  128. ifeq ($(HAVE_OPENGL),true)
  129. UI_TYPE = opengl
  130. else ifeq ($(HAVE_CAIRO),true)
  131. UI_TYPE = cairo
  132. endif
  133. endif
  134. ifeq ($(UI_TYPE),cairo)
  135. ifeq ($(HAVE_CAIRO),true)
  136. DGL_FLAGS += -DDGL_CAIRO -DHAVE_DGL
  137. DGL_FLAGS += $(CAIRO_FLAGS)
  138. DGL_LIBS += $(CAIRO_LIBS)
  139. DGL_LIB = $(DPF_PATH)/build/libdgl-cairo.a
  140. HAVE_DGL = true
  141. else
  142. HAVE_DGL = false
  143. endif
  144. endif
  145. ifeq ($(UI_TYPE),opengl)
  146. ifeq ($(HAVE_OPENGL),true)
  147. DGL_FLAGS += -DDGL_OPENGL -DHAVE_DGL
  148. DGL_FLAGS += $(OPENGL_FLAGS)
  149. DGL_LIBS += $(OPENGL_LIBS)
  150. DGL_LIB = $(DPF_PATH)/build/libdgl-opengl.a
  151. HAVE_DGL = true
  152. else
  153. HAVE_DGL = false
  154. endif
  155. endif
  156. ifeq ($(UI_TYPE),vulkan)
  157. ifeq ($(HAVE_VULKAN),true)
  158. DGL_FLAGS += -DDGL_VULKAN -DHAVE_DGL
  159. DGL_FLAGS += $(VULKAN_FLAGS)
  160. DGL_LIBS += $(VULKAN_LIBS)
  161. DGL_LIB = $(DPF_PATH)/build/libdgl-vulkan.a
  162. HAVE_DGL = true
  163. else
  164. HAVE_DGL = false
  165. endif
  166. endif
  167. ifeq ($(UI_TYPE),external)
  168. DGL_FLAGS += -DDGL_EXTERNAL
  169. HAVE_DGL = true
  170. endif
  171. ifeq ($(UI_TYPE),stub)
  172. ifeq ($(HAVE_STUB),true)
  173. DGL_LIB = $(DPF_PATH)/build/libdgl-stub.a
  174. HAVE_DGL = true
  175. else
  176. HAVE_DGL = false
  177. endif
  178. endif
  179. DGL_LIBS += $(DGL_SYSTEM_LIBS) -lm
  180. ifneq ($(HAVE_DGL),true)
  181. dssi_ui =
  182. lv2_ui =
  183. DGL_LIBS =
  184. OBJS_UI =
  185. endif
  186. ifneq ($(HAVE_LIBLO),true)
  187. dssi_ui =
  188. endif
  189. # TODO split dsp and ui object build flags
  190. BASE_FLAGS += $(DGL_FLAGS)
  191. # ---------------------------------------------------------------------------------------------------------------------
  192. # Runtime test build
  193. ifeq ($(DPF_RUNTIME_TESTING),true)
  194. BUILD_CXX_FLAGS += -DDPF_RUNTIME_TESTING -Wno-pmf-conversions
  195. endif
  196. # ---------------------------------------------------------------------------------------------------------------------
  197. # all needs to be first
  198. all:
  199. # ---------------------------------------------------------------------------------------------------------------------
  200. # Common
  201. $(BUILD_DIR)/%.S.o: %.S $(EXTRA_LIBS)
  202. -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
  203. @echo "Compiling $<"
  204. @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  205. $(BUILD_DIR)/%.c.o: %.c $(EXTRA_LIBS)
  206. -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
  207. @echo "Compiling $<"
  208. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  209. $(BUILD_DIR)/%.cc.o: %.cc $(EXTRA_LIBS)
  210. -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
  211. @echo "Compiling $<"
  212. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  213. $(BUILD_DIR)/%.cpp.o: %.cpp $(EXTRA_LIBS)
  214. -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
  215. @echo "Compiling $<"
  216. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  217. $(BUILD_DIR)/%.m.o: %.m $(EXTRA_LIBS)
  218. -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
  219. @echo "Compiling $<"
  220. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -ObjC -c -o $@
  221. $(BUILD_DIR)/%.mm.o: %.mm $(EXTRA_LIBS)
  222. -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
  223. @echo "Compiling $<"
  224. $(SILENT)$(CC) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  225. clean:
  226. rm -rf $(BUILD_DIR)
  227. rm -rf $(TARGET_DIR)/$(NAME) $(TARGET_DIR)/$(NAME)-* $(TARGET_DIR)/$(NAME).lv2
  228. # ---------------------------------------------------------------------------------------------------------------------
  229. # DGL
  230. $(DPF_PATH)/build/libdgl-cairo.a:
  231. $(MAKE) -C $(DPF_PATH)/dgl cairo
  232. $(DPF_PATH)/build/libdgl-opengl.a:
  233. $(MAKE) -C $(DPF_PATH)/dgl opengl
  234. $(DPF_PATH)/build/libdgl-stub.a:
  235. $(MAKE) -C $(DPF_PATH)/dgl stub
  236. $(DPF_PATH)/build/libdgl-vulkan.a:
  237. $(MAKE) -C $(DPF_PATH)/dgl vulkan
  238. # ---------------------------------------------------------------------------------------------------------------------
  239. AS_PUGL_NAMESPACE = $(subst -,_,$(1))
  240. $(BUILD_DIR)/DistrhoPluginMain_%.cpp.o: $(DPF_PATH)/distrho/DistrhoPluginMain.cpp
  241. -@mkdir -p $(BUILD_DIR)
  242. @echo "Compiling DistrhoPluginMain.cpp ($*)"
  243. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -DDISTRHO_PLUGIN_TARGET_$* -c -o $@
  244. $(BUILD_DIR)/DistrhoUIMain_%.cpp.o: $(DPF_PATH)/distrho/DistrhoUIMain.cpp
  245. -@mkdir -p $(BUILD_DIR)
  246. @echo "Compiling DistrhoUIMain.cpp ($*)"
  247. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -DDISTRHO_PLUGIN_TARGET_$* -c -o $@
  248. $(BUILD_DIR)/DistrhoUI_macOS_%.mm.o: $(DPF_PATH)/distrho/DistrhoUI_macOS.mm
  249. -@mkdir -p $(BUILD_DIR)
  250. @echo "Compiling DistrhoUI_macOS.mm ($*)"
  251. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -DPUGL_NAMESPACE=$(call AS_PUGL_NAMESPACE,$*) -DGL_SILENCE_DEPRECATION -Wno-deprecated-declarations -I$(DPF_PATH)/dgl/src -I$(DPF_PATH)/dgl/src/pugl-upstream/include -ObjC++ -c -o $@
  252. $(BUILD_DIR)/DistrhoPluginMain_JACK.cpp.o: $(DPF_PATH)/distrho/DistrhoPluginMain.cpp
  253. -@mkdir -p $(BUILD_DIR)
  254. @echo "Compiling DistrhoPluginMain.cpp (JACK)"
  255. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -DDISTRHO_PLUGIN_TARGET_JACK $(JACK_FLAGS) -c -o $@
  256. $(BUILD_DIR)/DistrhoUIMain_DSSI.cpp.o: $(DPF_PATH)/distrho/DistrhoUIMain.cpp
  257. -@mkdir -p $(BUILD_DIR)
  258. @echo "Compiling DistrhoUIMain.cpp (DSSI)"
  259. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(LIBLO_FLAGS) -DDISTRHO_PLUGIN_TARGET_DSSI -c -o $@
  260. # ---------------------------------------------------------------------------------------------------------------------
  261. # JACK
  262. jack: $(jack)
  263. ifeq ($(HAVE_DGL),true)
  264. $(jack): $(OBJS_DSP) $(OBJS_UI) $(BUILD_DIR)/DistrhoPluginMain_JACK.cpp.o $(BUILD_DIR)/DistrhoUIMain_JACK.cpp.o $(DGL_LIB) $(EXTRA_LIBS)
  265. else
  266. $(jack): $(OBJS_DSP) $(BUILD_DIR)/DistrhoPluginMain_JACK.cpp.o
  267. endif
  268. -@mkdir -p $(shell dirname $@)
  269. @echo "Creating JACK standalone for $(NAME)"
  270. $(SILENT)$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) $(JACK_LIBS) -o $@
  271. # ---------------------------------------------------------------------------------------------------------------------
  272. # LADSPA
  273. ladspa: $(ladspa_dsp)
  274. $(ladspa_dsp): $(OBJS_DSP) $(BUILD_DIR)/DistrhoPluginMain_LADSPA.cpp.o
  275. -@mkdir -p $(shell dirname $@)
  276. @echo "Creating LADSPA plugin for $(NAME)"
  277. $(SILENT)$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(SHARED) $(SYMBOLS_LADSPA) -o $@
  278. # ---------------------------------------------------------------------------------------------------------------------
  279. # DSSI
  280. dssi: $(dssi_dsp) $(dssi_ui)
  281. dssi_dsp: $(dssi_dsp)
  282. dssi_ui: $(dssi_ui)
  283. $(dssi_dsp): $(OBJS_DSP) $(BUILD_DIR)/DistrhoPluginMain_DSSI.cpp.o
  284. -@mkdir -p $(shell dirname $@)
  285. @echo "Creating DSSI plugin library for $(NAME)"
  286. $(SILENT)$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(SHARED) $(SYMBOLS_DSSI) -o $@
  287. $(dssi_ui): $(OBJS_UI) $(BUILD_DIR)/DistrhoUIMain_DSSI.cpp.o $(DGL_LIB)
  288. -@mkdir -p $(shell dirname $@)
  289. @echo "Creating DSSI UI for $(NAME)"
  290. $(SILENT)$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) $(LIBLO_LIBS) -o $@
  291. # ---------------------------------------------------------------------------------------------------------------------
  292. # LV2
  293. lv2: $(lv2)
  294. lv2_dsp: $(lv2_dsp)
  295. lv2_sep: $(lv2_dsp) $(lv2_ui)
  296. ifeq ($(HAVE_DGL),true)
  297. $(lv2): $(OBJS_DSP) $(OBJS_UI) $(BUILD_DIR)/DistrhoPluginMain_LV2.cpp.o $(BUILD_DIR)/DistrhoUIMain_LV2.cpp.o $(DGL_LIB) $(EXTRA_LIBS)
  298. else
  299. $(lv2): $(OBJS_DSP) $(OBJS_UI) $(BUILD_DIR)/DistrhoPluginMain_LV2.cpp.o
  300. endif
  301. -@mkdir -p $(shell dirname $@)
  302. @echo "Creating LV2 plugin for $(NAME)"
  303. $(SILENT)$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) $(SHARED) $(SYMBOLS_LV2) -o $@
  304. $(lv2_dsp): $(OBJS_DSP) $(BUILD_DIR)/DistrhoPluginMain_LV2.cpp.o
  305. -@mkdir -p $(shell dirname $@)
  306. @echo "Creating LV2 plugin library for $(NAME)"
  307. $(SILENT)$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(SHARED) $(SYMBOLS_LV2DSP) -o $@
  308. $(lv2_ui): $(OBJS_UI) $(BUILD_DIR)/DistrhoUIMain_LV2.cpp.o $(DGL_LIB)
  309. -@mkdir -p $(shell dirname $@)
  310. @echo "Creating LV2 plugin UI for $(NAME)"
  311. $(SILENT)$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) $(SHARED) $(SYMBOLS_LV2UI) -o $@
  312. # ---------------------------------------------------------------------------------------------------------------------
  313. # VST2
  314. vst2 vst: $(vst2)
  315. ifeq ($(HAVE_DGL),true)
  316. $(vst2): $(OBJS_DSP) $(OBJS_UI) $(BUILD_DIR)/DistrhoPluginMain_VST2.cpp.o $(BUILD_DIR)/DistrhoUIMain_VST2.cpp.o $(DGL_LIB) $(EXTRA_LIBS)
  317. else
  318. $(vst2): $(OBJS_DSP) $(BUILD_DIR)/DistrhoPluginMain_VST2.cpp.o
  319. endif
  320. -@mkdir -p $(shell dirname $@)
  321. @echo "Creating VST2 plugin for $(NAME)"
  322. $(SILENT)$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) $(SHARED) $(SYMBOLS_VST2) -o $@
  323. # ---------------------------------------------------------------------------------------------------------------------
  324. # VST3
  325. vst3: $(vst3)
  326. ifeq ($(HAVE_DGL),true)
  327. $(vst3): $(OBJS_DSP) $(OBJS_UI) $(BUILD_DIR)/DistrhoPluginMain_VST3.cpp.o $(BUILD_DIR)/DistrhoUIMain_VST3.cpp.o $(DGL_LIB) $(EXTRA_LIBS)
  328. else
  329. $(vst3): $(OBJS_DSP) $(BUILD_DIR)/DistrhoPluginMain_VST3.cpp.o
  330. endif
  331. -@mkdir -p $(shell dirname $@)
  332. @echo "Creating VST3 plugin for $(NAME)"
  333. $(SILENT)$(CXX) $^ $(BUILD_CXX_FLAGS) $(LINK_FLAGS) $(DGL_LIBS) $(SHARED) $(SYMBOLS_VST3) -o $@
  334. # ---------------------------------------------------------------------------------------------------------------------
  335. -include $(OBJS_DSP:%.o=%.d)
  336. ifneq ($(UI_TYPE),)
  337. -include $(OBJS_UI:%.o=%.d)
  338. endif
  339. -include $(BUILD_DIR)/DistrhoPluginMain_JACK.cpp.d
  340. -include $(BUILD_DIR)/DistrhoPluginMain_LADSPA.cpp.d
  341. -include $(BUILD_DIR)/DistrhoPluginMain_DSSI.cpp.d
  342. -include $(BUILD_DIR)/DistrhoPluginMain_LV2.cpp.d
  343. -include $(BUILD_DIR)/DistrhoPluginMain_VST2.cpp.d
  344. -include $(BUILD_DIR)/DistrhoPluginMain_VST3.cpp.d
  345. -include $(BUILD_DIR)/DistrhoUIMain_JACK.cpp.d
  346. -include $(BUILD_DIR)/DistrhoUIMain_DSSI.cpp.d
  347. -include $(BUILD_DIR)/DistrhoUIMain_LV2.cpp.d
  348. -include $(BUILD_DIR)/DistrhoUIMain_VST2.cpp.d
  349. -include $(BUILD_DIR)/DistrhoUIMain_VST3.cpp.d
  350. # ---------------------------------------------------------------------------------------------------------------------