Audio plugin host https://kx.studio/carla
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.

568 lines
17KB

  1. #!/usr/bin/make -f
  2. # Makefile for Carla C++ code #
  3. # --------------------------- #
  4. # Created by falkTX
  5. #
  6. # ---------------------------------------------------------------------------------------------------------------------
  7. # Auto-detect OS if not defined
  8. TARGET_MACHINE := $(shell $(CC) -dumpmachine)
  9. ifneq ($(BSD),true)
  10. ifneq ($(HAIKU),true)
  11. ifneq ($(HURD),true)
  12. ifneq ($(LINUX),true)
  13. ifneq ($(MACOS),true)
  14. ifneq ($(WIN32),true)
  15. ifneq (,$(findstring bsd,$(TARGET_MACHINE)))
  16. BSD=true
  17. endif
  18. ifneq (,$(findstring haiku,$(TARGET_MACHINE)))
  19. HAIKU=true
  20. endif
  21. ifneq (,$(findstring gnu,$(TARGET_MACHINE)))
  22. HURD=true
  23. endif
  24. ifneq (,$(findstring linux,$(TARGET_MACHINE)))
  25. LINUX=true
  26. endif
  27. ifneq (,$(findstring apple,$(TARGET_MACHINE)))
  28. MACOS=true
  29. endif
  30. ifneq (,$(findstring mingw,$(TARGET_MACHINE)))
  31. WIN32=true
  32. ifneq (,$(findstring x86_64,$(TARGET_MACHINE)))
  33. WIN64=true
  34. endif
  35. endif
  36. ifneq (,$(findstring msys,$(TARGET_MACHINE)))
  37. WIN32=true
  38. endif
  39. endif # WIN32
  40. endif # MACOS
  41. endif # LINUX
  42. endif # HURD
  43. endif # HAIKU
  44. endif # BSD
  45. # ---------------------------------------------------------------------------------------------------------------------
  46. # Auto-detect the processor
  47. TARGET_PROCESSOR := $(firstword $(subst -, ,$(TARGET_MACHINE)))
  48. ifneq (,$(filter i%86,$(TARGET_PROCESSOR)))
  49. CPU_I386=true
  50. CPU_I386_OR_X86_64=true
  51. endif
  52. ifneq (,$(filter x86_64,$(TARGET_PROCESSOR)))
  53. CPU_X86_64=true
  54. CPU_I386_OR_X86_64=true
  55. endif
  56. ifneq (,$(filter arm%,$(TARGET_PROCESSOR)))
  57. CPU_ARM=true
  58. CPU_ARM_OR_AARCH64=true
  59. endif
  60. ifneq (,$(filter arm64%,$(TARGET_PROCESSOR)))
  61. CPU_ARM64=true
  62. CPU_ARM_OR_AARCH64=true
  63. endif
  64. ifneq (,$(filter aarch64%,$(TARGET_PROCESSOR)))
  65. CPU_AARCH64=true
  66. CPU_ARM_OR_AARCH64=true
  67. endif
  68. # ---------------------------------------------------------------------------------------------------------------------
  69. # Set wherever to build static binaries (Windows only)
  70. ifeq ($(WIN32),true)
  71. ifneq ($(MSYSTEM),MINGW32)
  72. ifneq ($(MSYSTEM),MINGW64)
  73. STATIC_BINARIES = true
  74. endif
  75. endif
  76. endif
  77. # ---------------------------------------------------------------------------------------------------------------------
  78. # Set PKG_CONFIG (can be overridden by environment variable)
  79. PKG_CONFIG ?= pkg-config
  80. ifeq ($(STATIC_BINARIES),true)
  81. PKG_CONFIG_FLAGS = --static
  82. endif
  83. # ---------------------------------------------------------------------------------------------------------------------
  84. # Set LINUX_OR_MACOS
  85. ifeq ($(LINUX),true)
  86. LINUX_OR_MACOS=true
  87. endif
  88. ifeq ($(MACOS),true)
  89. LINUX_OR_MACOS=true
  90. endif
  91. # ---------------------------------------------------------------------------------------------------------------------
  92. # Set MACOS_OR_WIN32 and HAIKU_OR_MACOS_OR_WINDOWS
  93. ifeq ($(HAIKU),true)
  94. HAIKU_OR_MACOS_OR_WIN32=true
  95. endif
  96. ifeq ($(MACOS),true)
  97. MACOS_OR_WIN32=true
  98. HAIKU_OR_MACOS_OR_WIN32=true
  99. endif
  100. ifeq ($(WIN32),true)
  101. MACOS_OR_WIN32=true
  102. HAIKU_OR_MACOS_OR_WIN32=true
  103. endif
  104. # ---------------------------------------------------------------------------------------------------------------------
  105. # Set UNIX
  106. ifeq ($(BSD),true)
  107. UNIX=true
  108. endif
  109. ifeq ($(HURD),true)
  110. UNIX=true
  111. endif
  112. ifeq ($(LINUX),true)
  113. UNIX=true
  114. endif
  115. ifeq ($(MACOS),true)
  116. UNIX=true
  117. endif
  118. # ---------------------------------------------------------------------------------------------------------------------
  119. # Check for optional libs (required by backend or bridges)
  120. ifeq ($(LINUX),true)
  121. HAVE_ALSA = $(shell $(PKG_CONFIG) --exists alsa && echo true)
  122. HAVE_HYLIA = true
  123. endif
  124. ifeq ($(MACOS),true)
  125. ifneq ($(MACOS_OLD),true)
  126. HAVE_HYLIA = true
  127. endif
  128. endif
  129. ifeq ($(WIN32),true)
  130. HAVE_HYLIA = true
  131. endif
  132. ifeq ($(MACOS_OR_WIN32),true)
  133. HAVE_DGL = true
  134. else
  135. HAVE_DGL = $(shell $(PKG_CONFIG) --exists gl x11 && echo true)
  136. HAVE_X11 = $(shell $(PKG_CONFIG) --exists x11 && echo true)
  137. endif
  138. ifeq ($(UNIX),true)
  139. ifneq ($(MACOS),true)
  140. HAVE_PULSEAUDIO = $(shell $(PKG_CONFIG) --exists libpulse-simple && echo true)
  141. endif
  142. endif
  143. # ffmpeg values taken from https://ffmpeg.org/download.html (v2.8.15 maximum)
  144. HAVE_FFMPEG = $(shell $(PKG_CONFIG) --max-version=56.60.100 libavcodec && \
  145. $(PKG_CONFIG) --max-version=56.40.101 libavformat && \
  146. $(PKG_CONFIG) --max-version=54.31.100 libavutil && echo true)
  147. HAVE_FLUIDSYNTH = $(shell $(PKG_CONFIG) --atleast-version=1.1.7 fluidsynth && echo true)
  148. HAVE_JACK = $(shell $(PKG_CONFIG) --exists jack && echo true)
  149. HAVE_LIBLO = $(shell $(PKG_CONFIG) --exists liblo && echo true)
  150. HAVE_QT4 = $(shell $(PKG_CONFIG) --exists QtCore QtGui && echo true)
  151. HAVE_QT5 = $(shell $(PKG_CONFIG) --exists Qt5Core Qt5Gui Qt5Widgets && \
  152. $(PKG_CONFIG) --variable=qt_config Qt5Core | grep -q -v "static" && echo true)
  153. HAVE_QT5PKG = $(shell $(PKG_CONFIG) --silence-errors --variable=prefix Qt5OpenGLExtensions 1>/dev/null && echo true)
  154. HAVE_SNDFILE = $(shell $(PKG_CONFIG) --exists sndfile && echo true)
  155. ifeq ($(HAVE_FLUIDSYNTH),true)
  156. HAVE_FLUIDSYNTH_INSTPATCH = $(shell $(PKG_CONFIG) --atleast-version=2.1.0 fluidsynth && \
  157. $(PKG_CONFIG) --atleast-version=1.1.4 libinstpatch-1.0 && echo true)
  158. endif
  159. ifeq ($(LINUX),true)
  160. # juce only supports the most common architectures
  161. ifneq (,$(findstring arm,$(TARGET_MACHINE)))
  162. HAVE_JUCE_SUPPORTED_ARCH = true
  163. endif
  164. ifneq (,$(findstring aarch64,$(TARGET_MACHINE)))
  165. HAVE_JUCE_SUPPORTED_ARCH = true
  166. endif
  167. ifneq (,$(findstring i486,$(TARGET_MACHINE)))
  168. HAVE_JUCE_SUPPORTED_ARCH = true
  169. endif
  170. ifneq (,$(findstring i586,$(TARGET_MACHINE)))
  171. HAVE_JUCE_SUPPORTED_ARCH = true
  172. endif
  173. ifneq (,$(findstring i686,$(TARGET_MACHINE)))
  174. HAVE_JUCE_SUPPORTED_ARCH = true
  175. endif
  176. ifneq (,$(findstring x86_64,$(TARGET_MACHINE)))
  177. HAVE_JUCE_SUPPORTED_ARCH = true
  178. endif
  179. ifeq ($(HAVE_JUCE_SUPPORTED_ARCH),true)
  180. HAVE_JUCE_LINUX_DEPS = $(shell $(PKG_CONFIG) --exists x11 xcursor xext freetype2 && echo true)
  181. endif
  182. endif
  183. # ---------------------------------------------------------------------------------------------------------------------
  184. # Check for optional libs (special non-pkgconfig tests)
  185. ifneq ($(WIN32),true)
  186. ifeq ($(shell $(PKG_CONFIG) --exists libmagic && echo true),true)
  187. HAVE_LIBMAGIC = true
  188. HAVE_LIBMAGICPKG = true
  189. else
  190. # old libmagic versions don't have a pkg-config file, so we need to call the compiler to test it
  191. CFLAGS_WITHOUT_ARCH = $(subst -arch arm64,,$(CFLAGS))
  192. HAVE_LIBMAGIC = $(shell echo '\#include <magic.h>' | $(CC) $(CFLAGS_WITHOUT_ARCH) -x c -w -c - -o /dev/null 2>/dev/null && echo true)
  193. endif
  194. endif
  195. # ---------------------------------------------------------------------------------------------------------------------
  196. # Set Qt tools
  197. ifeq ($(HAVE_QT4),true)
  198. MOC_QT4 ?= $(shell $(PKG_CONFIG) --variable=moc_location QtCore)
  199. RCC_QT4 ?= $(shell $(PKG_CONFIG) --variable=rcc_location QtCore)
  200. UIC_QT4 ?= $(shell $(PKG_CONFIG) --variable=uic_location QtCore)
  201. ifeq (,$(wildcard $(MOC_QT4)))
  202. HAVE_QT4=false
  203. endif
  204. ifeq (,$(wildcard $(RCC_QT4)))
  205. HAVE_QT4=false
  206. endif
  207. endif
  208. ifeq ($(HAVE_QT5),true)
  209. QT5_HOSTBINS = $(shell $(PKG_CONFIG) --variable=host_bins Qt5Core)
  210. MOC_QT5 ?= $(QT5_HOSTBINS)/moc
  211. RCC_QT5 ?= $(QT5_HOSTBINS)/rcc
  212. UIC_QT5 ?= $(QT5_HOSTBINS)/uic
  213. ifeq (,$(wildcard $(MOC_QT5)))
  214. HAVE_QT5=false
  215. endif
  216. ifeq (,$(wildcard $(RCC_QT5)))
  217. HAVE_QT5=false
  218. endif
  219. endif
  220. ifeq ($(HAVE_QT4),true)
  221. HAVE_QT=true
  222. endif
  223. ifeq ($(HAVE_QT5),true)
  224. HAVE_QT=true
  225. endif
  226. ifeq ($(WIN32),true)
  227. HAVE_QT=true
  228. endif
  229. # ---------------------------------------------------------------------------------------------------------------------
  230. # Set PyQt tools
  231. PYRCC5 ?= $(shell which pyrcc5 2>/dev/null)
  232. PYUIC5 ?= $(shell which pyuic5 2>/dev/null)
  233. ifneq ($(PYUIC5),)
  234. ifneq ($(PYRCC5),)
  235. HAVE_PYQT = true
  236. endif
  237. endif
  238. # ---------------------------------------------------------------------------------------------------------------------
  239. # Set PyQt tools, part2
  240. PYRCC ?= $(PYRCC5)
  241. PYUIC ?= $(PYUIC5)
  242. ifeq ($(HAVE_QT5),true)
  243. HAVE_THEME = true
  244. # else
  245. # ifeq ($(MACOS),true)
  246. # ifneq ($(MACOS_OLD),true)
  247. # ifeq ($(HAVE_PYQT),true)
  248. # HAVE_THEME = true
  249. # MOC_QT5 ?= moc
  250. # RCC_QT5 ?= rcc
  251. # UIC_QT5 ?= uic
  252. # endif
  253. # endif
  254. # endif
  255. endif
  256. # ---------------------------------------------------------------------------------------------------------------------
  257. # Set USING_JUCE
  258. ifeq ($(MACOS_OR_WIN32),true)
  259. ifneq ($(MACOS_OLD),true)
  260. USING_JUCE = true
  261. USING_JUCE_AUDIO_DEVICES = true
  262. endif
  263. endif
  264. ifeq ($(HAVE_JUCE_LINUX_DEPS),true)
  265. USING_JUCE = true
  266. endif
  267. ifeq ($(USING_JUCE),true)
  268. ifeq ($(LINUX_OR_MACOS),true)
  269. USING_JUCE_GUI_EXTRA = true
  270. endif
  271. endif
  272. # ---------------------------------------------------------------------------------------------------------------------
  273. # Set USING_RTAUDIO
  274. ifneq ($(HAIKU),true)
  275. ifneq ($(USING_JUCE_AUDIO_DEVICES),true)
  276. USING_RTAUDIO = true
  277. endif
  278. endif
  279. # ---------------------------------------------------------------------------------------------------------------------
  280. # Set libs stuff (part 1)
  281. ifneq ($(HAIKU_OR_MACOS_OR_WIN32),true)
  282. LIBDL_LIBS = -ldl
  283. endif
  284. ifeq ($(HAVE_DGL),true)
  285. ifeq ($(MACOS),true)
  286. DGL_LIBS = -framework OpenGL -framework Cocoa
  287. endif
  288. ifeq ($(WIN32),true)
  289. DGL_LIBS = -lopengl32 -lgdi32
  290. endif
  291. ifneq ($(MACOS_OR_WIN32),true)
  292. DGL_FLAGS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags gl x11)
  293. DGL_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs gl x11)
  294. endif
  295. endif
  296. ifeq ($(HAVE_LIBLO),true)
  297. LIBLO_FLAGS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags liblo)
  298. LIBLO_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs liblo)
  299. endif
  300. ifeq ($(HAVE_LIBMAGICPKG),true)
  301. MAGIC_FLAGS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags libmagic)
  302. # this is missing in upstream pkg-config
  303. MAGIC_FLAGS += -I$(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --variable=includedir libmagic)
  304. MAGIC_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs libmagic)
  305. else ifeq ($(HAVE_LIBMAGIC),true)
  306. MAGIC_LIBS += -lmagic
  307. ifeq ($(LINUX_OR_MACOS),true)
  308. MAGIC_LIBS += -lz
  309. endif
  310. endif
  311. ifeq ($(HAVE_FFMPEG),true)
  312. FFMPEG_FLAGS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags libavcodec libavformat libavutil)
  313. FFMPEG_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs libavcodec libavformat libavutil)
  314. endif
  315. ifeq ($(HAVE_FLUIDSYNTH),true)
  316. FLUIDSYNTH_FLAGS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags fluidsynth)
  317. FLUIDSYNTH_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs fluidsynth)
  318. endif
  319. ifeq ($(HAVE_JACK),true)
  320. JACK_FLAGS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags jack)
  321. JACK_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs jack)
  322. JACK_LIBDIR = $(shell $(PKG_CONFIG) --variable=libdir jack)/jack
  323. endif
  324. ifeq ($(HAVE_QT5),true)
  325. QT5_FLAGS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags Qt5Core Qt5Gui Qt5Widgets)
  326. QT5_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs Qt5Core Qt5Gui Qt5Widgets)
  327. endif
  328. ifeq ($(HAVE_SNDFILE),true)
  329. SNDFILE_FLAGS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags sndfile)
  330. SNDFILE_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs sndfile)
  331. endif
  332. ifeq ($(HAVE_X11),true)
  333. X11_FLAGS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags x11)
  334. X11_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs x11)
  335. endif
  336. # ---------------------------------------------------------------------------------------------------------------------
  337. # Set libs stuff (part 2)
  338. ifeq ($(USING_RTAUDIO),true)
  339. RTAUDIO_FLAGS = -DHAVE_GETTIMEOFDAY
  340. RTMIDI_FLAGS =
  341. ifeq ($(DEBUG),true)
  342. RTAUDIO_FLAGS += -D__RTAUDIO_DEBUG__
  343. RTMIDI_FLAGS += -D__RTMIDI_DEBUG__
  344. endif
  345. ifeq ($(LINUX),true)
  346. ifeq ($(HAVE_ALSA),true)
  347. RTAUDIO_FLAGS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags alsa) -D__LINUX_ALSA__
  348. RTAUDIO_LIBS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs alsa) -pthread
  349. RTMIDI_FLAGS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags alsa) -D__LINUX_ALSA__
  350. RTMIDI_LIBS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs alsa)
  351. endif
  352. endif
  353. ifeq ($(MACOS),true)
  354. RTAUDIO_FLAGS += -D__MACOSX_CORE__
  355. RTAUDIO_LIBS += -framework CoreAudio
  356. RTMIDI_FLAGS += -D__MACOSX_CORE__
  357. RTMIDI_LIBS += -framework CoreMIDI
  358. endif
  359. ifeq ($(UNIX),true)
  360. RTAUDIO_FLAGS += -D__UNIX_JACK__
  361. ifeq ($(HAVE_PULSEAUDIO),true)
  362. RTAUDIO_FLAGS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags libpulse-simple) -D__UNIX_PULSE__
  363. RTAUDIO_LIBS += $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs libpulse-simple)
  364. endif
  365. endif
  366. ifeq ($(WIN32),true)
  367. RTAUDIO_FLAGS += -D__WINDOWS_ASIO__ -D__WINDOWS_DS__ -D__WINDOWS_WASAPI__
  368. RTAUDIO_LIBS += -ldsound -luuid -lksuser -lwinmm
  369. RTMIDI_FLAGS += -D__WINDOWS_MM__
  370. endif
  371. endif # USING_RTAUDIO
  372. ifeq ($(BSD),true)
  373. JACKBRIDGE_LIBS = -pthread -lrt
  374. LILV_LIBS = -lm -lrt
  375. RTMEMPOOL_LIBS = -pthread
  376. WATER_LIBS = -pthread -lrt
  377. endif
  378. ifeq ($(HAIKU),true)
  379. JACKBRIDGE_LIBS = -pthread
  380. LILV_LIBS = -lm
  381. RTMEMPOOL_LIBS = -pthread
  382. WATER_LIBS = -pthread
  383. endif
  384. ifeq ($(HURD),true)
  385. JACKBRIDGE_LIBS = -ldl -pthread -lrt
  386. LILV_LIBS = -ldl -lm -lrt
  387. RTMEMPOOL_LIBS = -pthread -lrt
  388. WATER_LIBS = -ldl -pthread -lrt
  389. endif
  390. ifeq ($(LINUX),true)
  391. HYLIA_FLAGS = -DLINK_PLATFORM_LINUX=1
  392. JACKBRIDGE_LIBS = -ldl -pthread -lrt
  393. LILV_LIBS = -ldl -lm -lrt
  394. RTMEMPOOL_LIBS = -pthread -lrt
  395. WATER_LIBS = -ldl -pthread -lrt
  396. ifeq ($(USING_JUCE),true)
  397. JUCE_AUDIO_DEVICES_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs alsa)
  398. JUCE_CORE_LIBS = -ldl -pthread -lrt
  399. JUCE_EVENTS_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs x11)
  400. JUCE_GRAPHICS_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs freetype2)
  401. JUCE_GUI_BASICS_LIBS = $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs x11 xext)
  402. endif # USING_JUCE
  403. endif # LINUX
  404. ifeq ($(MACOS),true)
  405. HYLIA_FLAGS = -DLINK_PLATFORM_MACOSX=1
  406. JACKBRIDGE_LIBS = -ldl -pthread
  407. LILV_LIBS = -ldl -lm
  408. RTMEMPOOL_LIBS = -pthread
  409. WATER_LIBS = -framework AppKit
  410. ifeq ($(USING_JUCE),true)
  411. JUCE_AUDIO_BASICS_LIBS = -framework Accelerate
  412. JUCE_AUDIO_DEVICES_LIBS = -framework AppKit -framework AudioToolbox -framework CoreAudio -framework CoreMIDI
  413. JUCE_AUDIO_FORMATS_LIBS = -framework AudioToolbox -framework CoreFoundation
  414. JUCE_AUDIO_PROCESSORS_LIBS = -framework AudioToolbox -framework AudioUnit -framework CoreAudio -framework CoreAudioKit -framework Cocoa -framework Carbon
  415. JUCE_CORE_LIBS = -framework AppKit
  416. JUCE_EVENTS_LIBS = -framework AppKit
  417. JUCE_GRAPHICS_LIBS = -framework Cocoa -framework QuartzCore
  418. JUCE_GUI_BASICS_LIBS = -framework Cocoa
  419. JUCE_GUI_EXTRA_LIBS = -framework IOKit
  420. endif # USING_JUCE
  421. endif # MACOS
  422. ifeq ($(WIN32),true)
  423. HYLIA_FLAGS = -DLINK_PLATFORM_WINDOWS=1
  424. HYLIA_LIBS = -liphlpapi
  425. JACKBRIDGE_LIBS = -pthread
  426. LILV_LIBS = -lm
  427. RTMEMPOOL_LIBS = -pthread
  428. WATER_LIBS = -luuid -lwsock32 -lwininet -lversion -lole32 -lws2_32 -loleaut32 -limm32 -lcomdlg32 -lshlwapi -lrpcrt4 -lwinmm
  429. ifeq ($(USING_JUCE),true)
  430. JUCE_AUDIO_DEVICES_LIBS = -lwinmm -lole32
  431. JUCE_CORE_LIBS = -luuid -lwsock32 -lwininet -lversion -lole32 -lws2_32 -loleaut32 -limm32 -lcomdlg32 -lshlwapi -lrpcrt4 -lwinmm
  432. JUCE_EVENTS_LIBS = -lole32
  433. JUCE_GRAPHICS_LIBS = -lgdi32
  434. JUCE_GUI_BASICS_LIBS = -lgdi32 -limm32 -lcomdlg32 -lole32
  435. endif # USING_JUCE
  436. endif # WIN32
  437. # ---------------------------------------------------------------------------------------------------------------------
  438. ifeq ($(STATIC_PLUGIN_TARGET),true)
  439. HAVE_ALSA = false
  440. HAVE_DGL = false
  441. HAVE_HYLIA = false
  442. HAVE_JACK = false
  443. HAVE_LIBLO = false
  444. HAVE_PYQT = false
  445. HAVE_QT4 = false
  446. HAVE_QT5 = false
  447. HAVE_QT5PKG = false
  448. HAVE_PULSEAUDIO = false
  449. USING_JUCE_AUDIO_DEVICES = false
  450. USING_RTAUDIO = false
  451. endif
  452. # ---------------------------------------------------------------------------------------------------------------------
  453. AUDIO_DECODER_LIBS = $(FFMPEG_LIBS)
  454. AUDIO_DECODER_LIBS += $(SNDFILE_LIBS)
  455. NATIVE_PLUGINS_LIBS += $(DGL_LIBS)
  456. NATIVE_PLUGINS_LIBS += $(FFMPEG_LIBS)
  457. NATIVE_PLUGINS_LIBS += $(SNDFILE_LIBS)
  458. STATIC_CARLA_PLUGIN_LIBS = $(AUDIO_DECODER_LIBS)
  459. STATIC_CARLA_PLUGIN_LIBS += $(NATIVE_PLUGINS_LIBS)
  460. STATIC_CARLA_PLUGIN_LIBS += $(FLUIDSYNTH_LIBS)
  461. STATIC_CARLA_PLUGIN_LIBS += $(HYLIA_LIBS)
  462. STATIC_CARLA_PLUGIN_LIBS += $(LIBLO_LIBS)
  463. STATIC_CARLA_PLUGIN_LIBS += $(LILV_LIBS)
  464. STATIC_CARLA_PLUGIN_LIBS += $(MAGIC_LIBS)
  465. STATIC_CARLA_PLUGIN_LIBS += $(RTMEMPOOL_LIBS)
  466. STATIC_CARLA_PLUGIN_LIBS += $(WATER_LIBS)
  467. ifeq ($(USING_JUCE),true)
  468. STATIC_CARLA_PLUGIN_LIBS += $(JUCE_AUDIO_BASICS_LIBS)
  469. STATIC_CARLA_PLUGIN_LIBS += $(JUCE_AUDIO_FORMATS_LIBS)
  470. STATIC_CARLA_PLUGIN_LIBS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  471. STATIC_CARLA_PLUGIN_LIBS += $(JUCE_CORE_LIBS)
  472. STATIC_CARLA_PLUGIN_LIBS += $(JUCE_EVENTS_LIBS)
  473. STATIC_CARLA_PLUGIN_LIBS += $(JUCE_GRAPHICS_LIBS)
  474. STATIC_CARLA_PLUGIN_LIBS += $(JUCE_GUI_BASICS_LIBS)
  475. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  476. STATIC_CARLA_PLUGIN_LIBS += $(JUCE_GUI_EXTRA_LIBS)
  477. endif
  478. endif
  479. # ---------------------------------------------------------------------------------------------------------------------