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.

1053 lines
33KB

  1. #!/usr/bin/make -f
  2. # Makefile for Carla #
  3. # ------------------ #
  4. # Created by falkTX
  5. #
  6. CWD=source
  7. include source/Makefile.mk
  8. # ---------------------------------------------------------------------------------------------------------------------
  9. PREFIX := /usr/local
  10. BINDIR := $(PREFIX)/bin
  11. LIBDIR := $(PREFIX)/lib
  12. DATADIR := $(PREFIX)/share
  13. INCLUDEDIR := $(PREFIX)/include
  14. DESTDIR :=
  15. ifeq ($(DEBUG),true)
  16. MODULEDIR := $(CURDIR)/build/modules/Debug
  17. else
  18. MODULEDIR := $(CURDIR)/build/modules/Release
  19. endif
  20. # ---------------------------------------------------------------------------------------------------------------------
  21. all: backend discovery bridges-plugin bridges-ui frontend interposer libjack plugin theme
  22. # ---------------------------------------------------------------------------------------------------------------------
  23. # Binaries (native)
  24. ALL_LIBS += $(MODULEDIR)/carla_engine.a
  25. ALL_LIBS += $(MODULEDIR)/carla_engine_plugin.a
  26. ALL_LIBS += $(MODULEDIR)/carla_plugin.a
  27. ALL_LIBS += $(MODULEDIR)/jackbridge.a
  28. ALL_LIBS += $(MODULEDIR)/native-plugins.a
  29. ALL_LIBS += $(MODULEDIR)/rtmempool.a
  30. 3RD_LIBS += $(MODULEDIR)/audio_decoder.a
  31. 3RD_LIBS += $(MODULEDIR)/lilv.a
  32. 3RD_LIBS += $(MODULEDIR)/sfzero.a
  33. 3RD_LIBS += $(MODULEDIR)/water.a
  34. ifeq ($(HAVE_DGL),true)
  35. 3RD_LIBS += $(MODULEDIR)/dgl.a
  36. endif
  37. ifeq ($(HAVE_HYLIA),true)
  38. 3RD_LIBS += $(MODULEDIR)/hylia.a
  39. endif
  40. ifeq ($(HAVE_QT4),true)
  41. 3RD_LIBS += $(MODULEDIR)/theme.qt4.a
  42. endif
  43. ifeq ($(HAVE_QT5),true)
  44. 3RD_LIBS += $(MODULEDIR)/theme.qt5.a
  45. endif
  46. ifeq ($(USING_JUCE),true)
  47. 3RD_LIBS += $(MODULEDIR)/juce_audio_basics.a
  48. ifeq ($(USING_JUCE_AUDIO_DEVICES),true)
  49. 3RD_LIBS += $(MODULEDIR)/juce_audio_devices.a
  50. endif
  51. 3RD_LIBS += $(MODULEDIR)/juce_audio_processors.a
  52. 3RD_LIBS += $(MODULEDIR)/juce_core.a
  53. 3RD_LIBS += $(MODULEDIR)/juce_data_structures.a
  54. 3RD_LIBS += $(MODULEDIR)/juce_events.a
  55. 3RD_LIBS += $(MODULEDIR)/juce_graphics.a
  56. 3RD_LIBS += $(MODULEDIR)/juce_gui_basics.a
  57. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  58. 3RD_LIBS += $(MODULEDIR)/juce_gui_extra.a
  59. endif
  60. endif
  61. ifneq ($(USING_JUCE_AUDIO_DEVICES),true)
  62. 3RD_LIBS += $(MODULEDIR)/rtaudio.a
  63. 3RD_LIBS += $(MODULEDIR)/rtmidi.a
  64. endif
  65. ALL_LIBS += $(3RD_LIBS)
  66. 3rd: $(3RD_LIBS)
  67. @$(MAKE) -C source/theme
  68. ifeq ($(HAVE_QT4),true)
  69. @$(MAKE) -C source/bridges-ui ui_lv2-qt4
  70. endif
  71. libs: $(ALL_LIBS)
  72. $(MODULEDIR)/carla_engine.a: .FORCE
  73. @$(MAKE) -C source/backend/engine
  74. $(MODULEDIR)/carla_engine_plugin.a: $(MODULEDIR)/carla_engine.a
  75. @$(MAKE) -C source/backend/engine
  76. $(MODULEDIR)/carla_plugin.a: .FORCE
  77. @$(MAKE) -C source/backend/plugin
  78. $(MODULEDIR)/jackbridge.a: .FORCE
  79. @$(MAKE) -C source/jackbridge
  80. $(MODULEDIR)/jackbridge.%.a: .FORCE
  81. @$(MAKE) -C source/jackbridge $*
  82. $(MODULEDIR)/native-plugins.a: .FORCE
  83. @$(MAKE) -C source/native-plugins
  84. $(MODULEDIR)/theme.qt4.a: .FORCE
  85. @$(MAKE) -C source/theme qt4
  86. $(MODULEDIR)/theme.qt5.a: .FORCE
  87. @$(MAKE) -C source/theme qt5
  88. $(MODULEDIR)/%.arm32.a: .FORCE
  89. ifneq ($(WIN32),true)
  90. @$(MAKE) -C source/modules/$* arm32
  91. else
  92. $(error Trying to build ARM binaries with a Windows toolchain, this cannot work)
  93. endif
  94. $(MODULEDIR)/%.posix32.a: .FORCE
  95. ifneq ($(WIN32),true)
  96. @$(MAKE) -C source/modules/$* posix32
  97. else
  98. $(error Trying to build POSIX binaries with a Windows toolchain, this cannot work)
  99. endif
  100. $(MODULEDIR)/%.posix64.a: .FORCE
  101. ifneq ($(WIN32),true)
  102. @$(MAKE) -C source/modules/$* posix64
  103. else
  104. $(error Trying to build POSIX binaries with a Windows toolchain, this cannot work)
  105. endif
  106. $(MODULEDIR)/%.win32.a: .FORCE
  107. ifeq ($(WIN32),true)
  108. @$(MAKE) -C source/modules/$* win32
  109. else
  110. $(error Trying to build Windows binaries with a regular toolchain, this cannot work)
  111. endif
  112. $(MODULEDIR)/%.win64.a: .FORCE
  113. ifeq ($(WIN32),true)
  114. @$(MAKE) -C source/modules/$* win64
  115. else
  116. $(error Trying to build Windows binaries with a regular toolchain, this cannot work)
  117. endif
  118. $(MODULEDIR)/dgl.wine.a: .FORCE
  119. @$(MAKE) -C source/modules/dgl wine
  120. $(MODULEDIR)/water.files.a: .FORCE
  121. @$(MAKE) -C source/modules/water files
  122. $(MODULEDIR)/%.a: .FORCE
  123. @$(MAKE) -C source/modules/$*
  124. # ---------------------------------------------------------------------------------------------------------------------
  125. backend: libs
  126. @$(MAKE) -C source/backend
  127. bridges-plugin: libs
  128. @$(MAKE) -C source/bridges-plugin
  129. bridges-ui: libs
  130. @$(MAKE) -C source/bridges-ui
  131. discovery: libs
  132. @$(MAKE) -C source/discovery
  133. frontend: libs
  134. ifeq ($(HAVE_PYQT),true)
  135. @$(MAKE) -C source/frontend
  136. endif
  137. interposer:
  138. ifeq ($(LINUX),true)
  139. @$(MAKE) -C source/interposer
  140. endif
  141. libjack: libs
  142. @$(MAKE) -C source/libjack
  143. lv2-bundles-dep: $(MODULEDIR)/audio_decoder.a $(MODULEDIR)/water.a
  144. @$(MAKE) -C source/native-plugins bundles
  145. lv2-bundles: lv2-bundles-dep
  146. @$(MAKE) -C source/plugin bundles
  147. plugin: backend bridges-plugin bridges-ui discovery
  148. @$(MAKE) -C source/plugin
  149. ifeq ($(WIN32),true)
  150. plugin-wine:
  151. @$(MAKE) -C source/plugin wine
  152. else
  153. plugin-wine: $(MODULEDIR)/dgl.wine.a
  154. @$(MAKE) -C source/plugin wine
  155. endif
  156. rest: libs
  157. @$(MAKE) -C source/rest
  158. theme: libs
  159. @$(MAKE) -C source/theme
  160. # ---------------------------------------------------------------------------------------------------------------------
  161. # hacks
  162. msys2fix:
  163. rm -rf source/includes/serd
  164. rm -rf source/includes/sord
  165. rm -rf source/includes/sratom
  166. rm -rf source/includes/lilv
  167. cp -r source/modules/lilv/serd-0.24.0/serd source/includes/serd
  168. cp -r source/modules/lilv/sord-0.16.0/sord source/includes/sord
  169. cp -r source/modules/lilv/sratom-0.6.0/sratom source/includes/sratom
  170. cp -r source/modules/lilv/lilv-0.24.0/lilv source/includes/lilv
  171. # ---------------------------------------------------------------------------------------------------------------------
  172. # nuitka
  173. nuitka: bin/carla bin/carla-rack bin/carla-plugin
  174. bin/carla:
  175. python3 -m nuitka \
  176. -j 4 \
  177. --python-flag -O --warn-unusual-code --warn-implicit-exceptions \
  178. --follow-imports \
  179. -o ./$@ \
  180. ./source/frontend/carla
  181. bin/carla-rack:
  182. python3 -m nuitka \
  183. -j 8 \
  184. --recurse-all \
  185. --python-flag -O --warn-unusual-code --warn-implicit-exceptions \
  186. --recurse-not-to=PyQt5 \
  187. --file-reference-choice=runtime \
  188. -o ./$@ \
  189. ./source/frontend/carla
  190. bin/carla-plugin:
  191. python3 -m nuitka \
  192. -j 8 \
  193. --recurse-all \
  194. --python-flag -O --warn-unusual-code --warn-implicit-exceptions \
  195. --recurse-not-to=PyQt5 \
  196. --file-reference-choice=runtime \
  197. -o ./$@ \
  198. ./source/native-plugins/resources/carla-plugin
  199. # ---------------------------------------------------------------------------------------------------------------------
  200. # Binaries (arm32)
  201. LIBS_ARM32 = $(MODULEDIR)/jackbridge.arm32.a
  202. LIBS_ARM32 += $(MODULEDIR)/lilv.arm32.a
  203. LIBS_ARM32 += $(MODULEDIR)/rtmempool.arm32.a
  204. LIBS_ARM32 += $(MODULEDIR)/water.arm32.a
  205. arm32: $(LIBS_ARM32)
  206. $(MAKE) -C source/bridges-plugin arm32
  207. $(MAKE) -C source/discovery arm32
  208. # ---------------------------------------------------------------------------------------------------------------------
  209. # Binaries (posix32)
  210. LIBS_POSIX32 = $(MODULEDIR)/jackbridge.posix32.a
  211. LIBS_POSIX32 += $(MODULEDIR)/lilv.posix32.a
  212. LIBS_POSIX32 += $(MODULEDIR)/rtmempool.posix32.a
  213. LIBS_POSIX32 += $(MODULEDIR)/water.posix32.a
  214. ifeq ($(USING_JUCE),true)
  215. LIBS_POSIX32 += $(MODULEDIR)/juce_audio_basics.posix32.a
  216. LIBS_POSIX32 += $(MODULEDIR)/juce_audio_processors.posix32.a
  217. LIBS_POSIX32 += $(MODULEDIR)/juce_data_structures.posix32.a
  218. LIBS_POSIX32 += $(MODULEDIR)/juce_core.posix32.a
  219. LIBS_POSIX32 += $(MODULEDIR)/juce_events.posix32.a
  220. LIBS_POSIX32 += $(MODULEDIR)/juce_graphics.posix32.a
  221. LIBS_POSIX32 += $(MODULEDIR)/juce_gui_basics.posix32.a
  222. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  223. LIBS_POSIX32 += $(MODULEDIR)/juce_gui_extra.posix32.a
  224. endif
  225. endif
  226. posix32: $(LIBS_POSIX32)
  227. $(MAKE) -C source/bridges-plugin posix32
  228. $(MAKE) -C source/discovery posix32
  229. # ---------------------------------------------------------------------------------------------------------------------
  230. # Binaries (posix64)
  231. LIBS_POSIX64 = $(MODULEDIR)/jackbridge.posix64.a
  232. LIBS_POSIX64 += $(MODULEDIR)/lilv.posix64.a
  233. LIBS_POSIX64 += $(MODULEDIR)/rtmempool.posix64.a
  234. LIBS_POSIX64 += $(MODULEDIR)/water.posix64.a
  235. ifeq ($(USING_JUCE),true)
  236. LIBS_POSIX64 += $(MODULEDIR)/juce_audio_basics.posix64.a
  237. LIBS_POSIX64 += $(MODULEDIR)/juce_audio_processors.posix64.a
  238. LIBS_POSIX64 += $(MODULEDIR)/juce_data_structures.posix64.a
  239. LIBS_POSIX64 += $(MODULEDIR)/juce_core.posix64.a
  240. LIBS_POSIX64 += $(MODULEDIR)/juce_events.posix64.a
  241. LIBS_POSIX64 += $(MODULEDIR)/juce_graphics.posix64.a
  242. LIBS_POSIX64 += $(MODULEDIR)/juce_gui_basics.posix64.a
  243. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  244. LIBS_POSIX64 += $(MODULEDIR)/juce_gui_extra.posix64.a
  245. endif
  246. endif
  247. posix64: $(LIBS_POSIX64)
  248. $(MAKE) -C source/bridges-plugin posix64
  249. $(MAKE) -C source/discovery posix64
  250. # ---------------------------------------------------------------------------------------------------------------------
  251. # Binaries (win32)
  252. ifeq ($(BUILDING_FOR_WINDOWS),true)
  253. LIBS_WIN32 = $(MODULEDIR)/jackbridge.win32.a
  254. else
  255. LIBS_WIN32 = $(MODULEDIR)/jackbridge.win32e.a
  256. endif
  257. LIBS_WIN32 += $(MODULEDIR)/lilv.win32.a
  258. LIBS_WIN32 += $(MODULEDIR)/rtmempool.win32.a
  259. LIBS_WIN32 += $(MODULEDIR)/water.win32.a
  260. ifeq ($(USING_JUCE),true)
  261. LIBS_WIN32 += $(MODULEDIR)/juce_audio_basics.win32.a
  262. LIBS_WIN32 += $(MODULEDIR)/juce_audio_processors.win32.a
  263. LIBS_WIN32 += $(MODULEDIR)/juce_data_structures.win32.a
  264. LIBS_WIN32 += $(MODULEDIR)/juce_core.win32.a
  265. LIBS_WIN32 += $(MODULEDIR)/juce_events.win32.a
  266. LIBS_WIN32 += $(MODULEDIR)/juce_graphics.win32.a
  267. LIBS_WIN32 += $(MODULEDIR)/juce_gui_basics.win32.a
  268. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  269. LIBS_WIN32 += $(MODULEDIR)/juce_gui_extra.win32.a
  270. endif
  271. endif
  272. win32r: $(LIBS_WIN32)
  273. $(MAKE) -C source/bridges-plugin win32
  274. $(MAKE) -C source/discovery win32
  275. win32: $(LIBS_WIN32)
  276. $(MAKE) BUILDING_FOR_WINE=true -C source/bridges-plugin win32
  277. $(MAKE) BUILDING_FOR_WINE=true -C source/discovery win32
  278. # ---------------------------------------------------------------------------------------------------------------------
  279. # Binaries (win64)
  280. ifeq ($(BUILDING_FOR_WINDOWS),true)
  281. LIBS_WIN64 = $(MODULEDIR)/jackbridge.win64.a
  282. else
  283. LIBS_WIN64 = $(MODULEDIR)/jackbridge.win64e.a
  284. endif
  285. LIBS_WIN64 += $(MODULEDIR)/lilv.win64.a
  286. LIBS_WIN64 += $(MODULEDIR)/rtmempool.win64.a
  287. LIBS_WIN64 += $(MODULEDIR)/water.win64.a
  288. ifeq ($(USING_JUCE),true)
  289. LIBS_WIN64 += $(MODULEDIR)/juce_audio_basics.win64.a
  290. LIBS_WIN64 += $(MODULEDIR)/juce_audio_processors.win64.a
  291. LIBS_WIN64 += $(MODULEDIR)/juce_data_structures.win64.a
  292. LIBS_WIN64 += $(MODULEDIR)/juce_core.win64.a
  293. LIBS_WIN64 += $(MODULEDIR)/juce_events.win64.a
  294. LIBS_WIN64 += $(MODULEDIR)/juce_graphics.win64.a
  295. LIBS_WIN64 += $(MODULEDIR)/juce_gui_basics.win64.a
  296. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  297. LIBS_WIN64 += $(MODULEDIR)/juce_gui_extra.win64.a
  298. endif
  299. endif
  300. win64r: $(LIBS_WIN64)
  301. $(MAKE) -C source/bridges-plugin win64
  302. $(MAKE) -C source/discovery win64
  303. win64: $(LIBS_WIN64)
  304. $(MAKE) BUILDING_FOR_WINE=true -C source/bridges-plugin win64
  305. $(MAKE) BUILDING_FOR_WINE=true -C source/discovery win64
  306. # ---------------------------------------------------------------------------------------------------------------------
  307. # Binaries (wine)
  308. wine32:
  309. $(MAKE) -C source/jackbridge wine32
  310. cp -f $(MODULEDIR)/jackbridge-wine32.dll.so $(CURDIR)/bin/jackbridge-wine32.dll
  311. wine64:
  312. $(MAKE) -C source/jackbridge wine64
  313. cp -f $(MODULEDIR)/jackbridge-wine64.dll.so $(CURDIR)/bin/jackbridge-wine64.dll
  314. # ---------------------------------------------------------------------------------------------------------------------
  315. clean:
  316. $(MAKE) clean -C source/backend
  317. $(MAKE) clean -C source/bridges-plugin
  318. $(MAKE) clean -C source/bridges-ui
  319. $(MAKE) clean -C source/discovery
  320. $(MAKE) clean -C source/frontend
  321. $(MAKE) clean -C source/interposer
  322. $(MAKE) clean -C source/libjack
  323. $(MAKE) clean -C source/modules
  324. $(MAKE) clean -C source/native-plugins
  325. $(MAKE) clean -C source/plugin
  326. $(MAKE) clean -C source/tests
  327. $(MAKE) clean -C source/theme
  328. rm -f *~ source/*~
  329. distclean: clean
  330. rm -f bin/*.exe bin/*.dll bin/*.dylib bin/*.so
  331. rm -rf build build-lv2
  332. cpp:
  333. $(MAKE) CPPMODE=true
  334. debug:
  335. $(MAKE) DEBUG=true
  336. doxygen:
  337. $(MAKE) doxygen -C source/backend
  338. tests:
  339. $(MAKE) -C source/tests
  340. stoat:
  341. stoat --recursive ./build/ --suppression ./data/stoat-supression.txt --whitelist ./data/stoat-whitelist.txt --graph-view ./data/stoat-callgraph.png
  342. # stoat --recursive ./build/ \
  343. # --suppression ./data/stoat-supression.txt \
  344. # --whitelist ./data/stoat-whitelist.txt \
  345. # --graph-view ./data/stoat-callgraph.png
  346. # ---------------------------------------------------------------------------------------------------------------------
  347. install_main:
  348. # Create directories
  349. install -d $(DESTDIR)$(BINDIR)
  350. ifeq ($(LINUX),true)
  351. install -d $(DESTDIR)$(LIBDIR)/carla/jack
  352. else
  353. install -d $(DESTDIR)$(LIBDIR)/carla
  354. endif
  355. install -d $(DESTDIR)$(LIBDIR)/pkgconfig
  356. install -d $(DESTDIR)$(INCLUDEDIR)/carla/includes
  357. ifeq ($(LINUX),true)
  358. ifeq ($(HAVE_JACK),true)
  359. ifeq ($(JACKBRIDGE_DIRECT),true)
  360. install -d $(DESTDIR)$(JACK_LIBDIR)
  361. endif
  362. endif
  363. endif
  364. ifeq ($(HAVE_PYQT),true)
  365. # Create directories (gui)
  366. install -d $(DESTDIR)$(LIBDIR)/carla/styles
  367. install -d $(DESTDIR)$(DATADIR)/applications
  368. install -d $(DESTDIR)$(DATADIR)/icons/hicolor/16x16/apps
  369. install -d $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
  370. install -d $(DESTDIR)$(DATADIR)/icons/hicolor/128x128/apps
  371. install -d $(DESTDIR)$(DATADIR)/icons/hicolor/256x256/apps
  372. install -d $(DESTDIR)$(DATADIR)/icons/hicolor/scalable/apps
  373. install -d $(DESTDIR)$(DATADIR)/mime/packages
  374. install -d $(DESTDIR)$(DATADIR)/carla/resources
  375. install -d $(DESTDIR)$(DATADIR)/carla/resources/translations
  376. install -d $(DESTDIR)$(DATADIR)/carla/modgui
  377. install -d $(DESTDIR)$(DATADIR)/carla/patchcanvas
  378. install -d $(DESTDIR)$(DATADIR)/carla/widgets
  379. endif
  380. # -------------------------------------------------------------------------------------------------------------
  381. # Install script files (non-gui)
  382. install -m 755 \
  383. data/carla-single \
  384. $(DESTDIR)$(BINDIR)
  385. # Adjust PREFIX value in script files (non-gui)
  386. sed $(SED_ARGS) 's?X-PREFIX-X?$(PREFIX)?' \
  387. $(DESTDIR)$(BINDIR)/carla-single
  388. # Install backend libs
  389. install -m 644 \
  390. bin/libcarla_*.* \
  391. $(DESTDIR)$(LIBDIR)/carla
  392. # Install other binaries
  393. install -m 755 \
  394. bin/*bridge-* \
  395. bin/carla-discovery-* \
  396. $(DESTDIR)$(LIBDIR)/carla
  397. ifeq ($(LINUX),true)
  398. ifeq ($(HAVE_JACK),true)
  399. ifeq ($(JACKBRIDGE_DIRECT),true)
  400. # Install internal jack client
  401. ln -sf \
  402. $(LIBDIR)/carla/libcarla_standalone2.so \
  403. $(DESTDIR)$(JACK_LIBDIR)/carla.so
  404. endif
  405. endif
  406. ifneq ($(JACKBRIDGE_DIRECT),true)
  407. # Install custom libjack
  408. install -m 755 \
  409. bin/jack/libjack.so.0 \
  410. $(DESTDIR)$(LIBDIR)/carla/jack
  411. endif
  412. endif
  413. # Install pkg-config files
  414. install -m 644 \
  415. data/*.pc \
  416. $(DESTDIR)$(LIBDIR)/pkgconfig
  417. # Adjust PREFIX, LIBDIR and INCLUDEDIR in pkg-config files
  418. sed $(SED_ARGS) 's?X-PREFIX-X?$(PREFIX)?' \
  419. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-host-plugin.pc \
  420. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-native-plugin.pc \
  421. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-standalone.pc \
  422. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-utils.pc
  423. sed $(SED_ARGS) 's?X-LIBDIR-X?$(LIBDIR)?' \
  424. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-host-plugin.pc \
  425. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-native-plugin.pc \
  426. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-standalone.pc \
  427. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-utils.pc
  428. sed $(SED_ARGS) 's?X-INCLUDEDIR-X?$(INCLUDEDIR)?' \
  429. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-host-plugin.pc \
  430. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-native-plugin.pc \
  431. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-standalone.pc \
  432. $(DESTDIR)$(LIBDIR)/pkgconfig/carla-utils.pc
  433. # Install headers
  434. install -m 644 \
  435. source/backend/CarlaBackend.h \
  436. source/backend/CarlaHost.h \
  437. source/backend/CarlaUtils.h \
  438. source/backend/CarlaEngine.hpp \
  439. source/backend/CarlaPlugin.hpp \
  440. source/includes/CarlaNative.h \
  441. $(DESTDIR)$(INCLUDEDIR)/carla
  442. install -m 644 \
  443. source/includes/CarlaDefines.h \
  444. source/includes/CarlaMIDI.h \
  445. source/includes/CarlaNative.h \
  446. source/includes/CarlaNativePlugin.h \
  447. $(DESTDIR)$(INCLUDEDIR)/carla/includes
  448. # -------------------------------------------------------------------------------------------------------------
  449. ifeq ($(HAVE_PYQT),true)
  450. ifneq ($(CPPMODE),true)
  451. # Install script files (gui)
  452. install -m 755 \
  453. data/carla \
  454. data/carla-database \
  455. data/carla-jack-multi \
  456. data/carla-jack-single \
  457. data/carla-jack-patchbayplugin \
  458. data/carla-osc-gui \
  459. data/carla-patchbay \
  460. data/carla-rack \
  461. data/carla-settings \
  462. $(DESTDIR)$(BINDIR)
  463. # Adjust PREFIX value in script files (gui)
  464. sed $(SED_ARGS) 's?X-PREFIX-X?$(PREFIX)?' \
  465. $(DESTDIR)$(BINDIR)/carla \
  466. $(DESTDIR)$(BINDIR)/carla-database \
  467. $(DESTDIR)$(BINDIR)/carla-jack-multi \
  468. $(DESTDIR)$(BINDIR)/carla-jack-single \
  469. $(DESTDIR)$(BINDIR)/carla-jack-patchbayplugin \
  470. $(DESTDIR)$(BINDIR)/carla-osc-gui \
  471. $(DESTDIR)$(BINDIR)/carla-patchbay \
  472. $(DESTDIR)$(BINDIR)/carla-rack \
  473. $(DESTDIR)$(BINDIR)/carla-settings
  474. ifeq ($(HAVE_LIBLO),true)
  475. install -m 755 \
  476. data/carla-control \
  477. $(DESTDIR)$(BINDIR)
  478. sed $(SED_ARGS) 's?X-PREFIX-X?$(PREFIX)?' \
  479. $(DESTDIR)$(BINDIR)/carla-control
  480. endif
  481. # Install the real modgui bridge
  482. install -m 755 \
  483. data/carla-bridge-lv2-modgui \
  484. $(DESTDIR)$(LIBDIR)/carla
  485. sed $(SED_ARGS) 's?X-PREFIX-X?$(PREFIX)?' \
  486. $(DESTDIR)$(LIBDIR)/carla/carla-bridge-lv2-modgui
  487. # Install frontend
  488. install -m 644 \
  489. source/frontend/carla \
  490. source/frontend/carla-control \
  491. source/frontend/carla-jack-multi \
  492. source/frontend/carla-jack-single \
  493. source/frontend/carla-patchbay \
  494. source/frontend/carla-rack \
  495. source/frontend/*.py \
  496. $(DESTDIR)$(DATADIR)/carla/
  497. install -m 644 \
  498. source/frontend/modgui/*.py \
  499. $(DESTDIR)$(DATADIR)/carla/modgui/
  500. install -m 644 \
  501. source/frontend/patchcanvas/*.py \
  502. $(DESTDIR)$(DATADIR)/carla/patchcanvas/
  503. install -m 644 \
  504. source/frontend/widgets/*.py \
  505. $(DESTDIR)$(DATADIR)/carla/widgets/
  506. # Adjust LIBDIR and DATADIR value in python code
  507. sed $(SED_ARGS) 's?X_LIBDIR_X = None?X_LIBDIR_X = "$(LIBDIR)"?' \
  508. $(DESTDIR)$(DATADIR)/carla/carla_shared.py
  509. sed $(SED_ARGS) 's?X_DATADIR_X = None?X_DATADIR_X = "$(DATADIR)"?' \
  510. $(DESTDIR)$(DATADIR)/carla/carla_shared.py
  511. # Install resources (gui)
  512. install -m 755 \
  513. bin/resources/carla-plugin \
  514. bin/resources/carla-plugin-patchbay \
  515. bin/resources/*-ui \
  516. $(DESTDIR)$(DATADIR)/carla/resources
  517. endif # CPPMODE
  518. ifeq ($(HAVE_THEME),true)
  519. # Install theme
  520. install -m 644 \
  521. bin/styles/* \
  522. $(DESTDIR)$(LIBDIR)/carla/styles
  523. endif
  524. # Install desktop files
  525. install -m 644 data/desktop/carla.desktop $(DESTDIR)$(DATADIR)/applications
  526. install -m 644 data/desktop/carla-rack.desktop $(DESTDIR)$(DATADIR)/applications
  527. install -m 644 data/desktop/carla-patchbay.desktop $(DESTDIR)$(DATADIR)/applications
  528. install -m 644 data/desktop/carla-jack-single.desktop $(DESTDIR)$(DATADIR)/applications
  529. install -m 644 data/desktop/carla-jack-multi.desktop $(DESTDIR)$(DATADIR)/applications
  530. ifeq ($(HAVE_LIBLO),true)
  531. install -m 644 data/desktop/carla-control.desktop $(DESTDIR)$(DATADIR)/applications
  532. endif
  533. # Install mime package
  534. install -m 644 data/carla.xml $(DESTDIR)$(DATADIR)/mime/packages
  535. # Install icons, 16x16
  536. install -m 644 resources/16x16/carla.png $(DESTDIR)$(DATADIR)/icons/hicolor/16x16/apps
  537. install -m 644 resources/16x16/carla-control.png $(DESTDIR)$(DATADIR)/icons/hicolor/16x16/apps
  538. # Install icons, 48x48
  539. install -m 644 resources/48x48/carla.png $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
  540. install -m 644 resources/48x48/carla-control.png $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
  541. # Install icons, 128x128
  542. install -m 644 resources/128x128/carla.png $(DESTDIR)$(DATADIR)/icons/hicolor/128x128/apps
  543. install -m 644 resources/128x128/carla-control.png $(DESTDIR)$(DATADIR)/icons/hicolor/128x128/apps
  544. # Install icons, 256x256
  545. install -m 644 resources/256x256/carla.png $(DESTDIR)$(DATADIR)/icons/hicolor/256x256/apps
  546. install -m 644 resources/256x256/carla-control.png $(DESTDIR)$(DATADIR)/icons/hicolor/256x256/apps
  547. # Install icons, scalable
  548. install -m 644 resources/scalable/carla.svg $(DESTDIR)$(DATADIR)/icons/hicolor/scalable/apps
  549. install -m 644 resources/scalable/carla-control.svg $(DESTDIR)$(DATADIR)/icons/hicolor/scalable/apps
  550. # Install resources (re-use python files)
  551. $(LINK) ../modgui $(DESTDIR)$(DATADIR)/carla/resources
  552. $(LINK) ../patchcanvas $(DESTDIR)$(DATADIR)/carla/resources
  553. $(LINK) ../widgets $(DESTDIR)$(DATADIR)/carla/resources
  554. $(LINK) ../carla_app.py $(DESTDIR)$(DATADIR)/carla/resources
  555. $(LINK) ../carla_backend.py $(DESTDIR)$(DATADIR)/carla/resources
  556. $(LINK) ../carla_backend_qt.py $(DESTDIR)$(DATADIR)/carla/resources
  557. $(LINK) ../carla_control.py $(DESTDIR)$(DATADIR)/carla/resources
  558. $(LINK) ../carla_database.py $(DESTDIR)$(DATADIR)/carla/resources
  559. $(LINK) ../carla_host.py $(DESTDIR)$(DATADIR)/carla/resources
  560. $(LINK) ../carla_settings.py $(DESTDIR)$(DATADIR)/carla/resources
  561. $(LINK) ../carla_skin.py $(DESTDIR)$(DATADIR)/carla/resources
  562. $(LINK) ../carla_shared.py $(DESTDIR)$(DATADIR)/carla/resources
  563. $(LINK) ../carla_utils.py $(DESTDIR)$(DATADIR)/carla/resources
  564. $(LINK) ../carla_widgets.py $(DESTDIR)$(DATADIR)/carla/resources
  565. $(LINK) ../externalui.py $(DESTDIR)$(DATADIR)/carla/resources
  566. $(LINK) ../resources_rc.py $(DESTDIR)$(DATADIR)/carla/resources
  567. $(LINK) ../ui_carla_about.py $(DESTDIR)$(DATADIR)/carla/resources
  568. $(LINK) ../ui_carla_about_juce.py $(DESTDIR)$(DATADIR)/carla/resources
  569. $(LINK) ../ui_carla_add_jack.py $(DESTDIR)$(DATADIR)/carla/resources
  570. $(LINK) ../ui_carla_database.py $(DESTDIR)$(DATADIR)/carla/resources
  571. $(LINK) ../ui_carla_edit.py $(DESTDIR)$(DATADIR)/carla/resources
  572. $(LINK) ../ui_carla_host.py $(DESTDIR)$(DATADIR)/carla/resources
  573. $(LINK) ../ui_carla_parameter.py $(DESTDIR)$(DATADIR)/carla/resources
  574. $(LINK) ../ui_carla_plugin_calf.py $(DESTDIR)$(DATADIR)/carla/resources
  575. $(LINK) ../ui_carla_plugin_classic.py $(DESTDIR)$(DATADIR)/carla/resources
  576. $(LINK) ../ui_carla_plugin_compact.py $(DESTDIR)$(DATADIR)/carla/resources
  577. $(LINK) ../ui_carla_plugin_default.py $(DESTDIR)$(DATADIR)/carla/resources
  578. $(LINK) ../ui_carla_plugin_presets.py $(DESTDIR)$(DATADIR)/carla/resources
  579. $(LINK) ../ui_carla_refresh.py $(DESTDIR)$(DATADIR)/carla/resources
  580. $(LINK) ../ui_carla_settings.py $(DESTDIR)$(DATADIR)/carla/resources
  581. $(LINK) ../ui_carla_settings_driver.py $(DESTDIR)$(DATADIR)/carla/resources
  582. $(LINK) ../ui_inputdialog_value.py $(DESTDIR)$(DATADIR)/carla/resources
  583. $(LINK) ../ui_midipattern.py $(DESTDIR)$(DATADIR)/carla/resources
  584. # Install translations
  585. $(foreach l,$(I18N_LANGUAGES),install -m 644 \
  586. source/frontend/translations/carla_$(l).qm \
  587. $(DESTDIR)$(DATADIR)/carla/resources/translations/;)
  588. endif # HAVE_PYQT
  589. # -------------------------------------------------------------------------------------------------------------
  590. # Install lv2 plugin
  591. install -d $(DESTDIR)$(LIBDIR)/lv2/carla.lv2
  592. install -m 644 \
  593. bin/carla.lv2/carla.* \
  594. bin/carla.lv2/*.ttl \
  595. $(DESTDIR)$(LIBDIR)/lv2/carla.lv2
  596. # Link binaries for lv2 plugin
  597. @for i in `find $(DESTDIR)$(LIBDIR)/carla/ -maxdepth 1 -type f -exec basename {} ';'`; do \
  598. $(LINK) ../../carla/$$i $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/$$i; \
  599. done
  600. rm -f $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/libcarla_standalone2.*
  601. ifeq ($(LINUX),true)
  602. # Link jack app bridge
  603. rm -rf $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/jack
  604. $(LINK) ../../carla/jack $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/jack
  605. endif
  606. ifeq ($(HAVE_PYQT),true)
  607. # Link resources for lv2 plugin
  608. rm -rf $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/resources
  609. $(LINK) ../../../share/carla/resources $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/resources
  610. # Link styles for lv2 plugin
  611. rm -rf $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/styles
  612. $(LINK) ../../carla/styles $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/styles
  613. endif
  614. # -------------------------------------------------------------------------------------------------------------
  615. ifneq ($(HAIKU),true)
  616. ifeq ($(HAVE_PYQT),true)
  617. # Install vst plugin
  618. install -d $(DESTDIR)$(LIBDIR)/vst/carla.vst
  619. install -m 644 \
  620. bin/CarlaRack*.* \
  621. bin/CarlaPatchbay*.* \
  622. $(DESTDIR)$(LIBDIR)/vst/carla.vst
  623. # Link binaries for vst plugin
  624. @for i in `find $(DESTDIR)$(LIBDIR)/carla/ -maxdepth 1 -type f -exec basename {} ';'`; do \
  625. $(LINK) ../../carla/$$i $(DESTDIR)$(LIBDIR)/vst/carla.vst/$$i; \
  626. done
  627. rm -f $(DESTDIR)$(LIBDIR)/vst/carla.vst/libcarla_standalone2.*
  628. # Link jack app bridge
  629. rm -rf $(DESTDIR)$(LIBDIR)/vst/carla.vst/jack
  630. $(LINK) ../../carla/jack $(DESTDIR)$(LIBDIR)/vst/carla.vst/jack
  631. # Link resources for vst plugin
  632. rm -rf $(DESTDIR)$(LIBDIR)/vst/carla.vst/resources
  633. $(LINK) ../../../share/carla/resources $(DESTDIR)$(LIBDIR)/vst/carla.vst/resources
  634. # Link styles for vst plugin
  635. rm -rf $(DESTDIR)$(LIBDIR)/vst/carla.vst/styles
  636. $(LINK) ../../carla/styles $(DESTDIR)$(LIBDIR)/vst/carla.vst/styles
  637. endif
  638. endif
  639. # -------------------------------------------------------------------------------------------------------------
  640. ifneq ($(HAVE_PYQT),true)
  641. # Remove gui files for non-gui build
  642. rm $(DESTDIR)$(LIBDIR)/carla/carla-bridge-lv2-modgui
  643. rm $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/carla-bridge-lv2-modgui
  644. endif
  645. # ---------------------------------------------------------------------------------------------------------------------
  646. ifneq ($(EXTERNAL_PLUGINS),true)
  647. install_external_plugins:
  648. endif
  649. install: install_main install_external_plugins
  650. # ---------------------------------------------------------------------------------------------------------------------
  651. uninstall:
  652. rm -f $(DESTDIR)$(BINDIR)/carla*
  653. rm -f $(DESTDIR)$(LIBDIR)/pkgconfig/carla-host-plugin.pc
  654. rm -f $(DESTDIR)$(LIBDIR)/pkgconfig/carla-native-plugin.pc
  655. rm -f $(DESTDIR)$(LIBDIR)/pkgconfig/carla-standalone.pc
  656. rm -f $(DESTDIR)$(LIBDIR)/pkgconfig/carla-utils.pc
  657. rm -f $(DESTDIR)$(DATADIR)/applications/carla.desktop
  658. rm -f $(DESTDIR)$(DATADIR)/applications/carla-control.desktop
  659. rm -f $(DESTDIR)$(DATADIR)/icons/hicolor/*/apps/carla.png
  660. rm -f $(DESTDIR)$(DATADIR)/icons/hicolor/*/apps/carla-control.png
  661. rm -f $(DESTDIR)$(DATADIR)/icons/hicolor/scalable/apps/carla.svg
  662. rm -f $(DESTDIR)$(DATADIR)/icons/hicolor/scalable/apps/carla-control.svg
  663. rm -f $(DESTDIR)$(DATADIR)/mime/packages/carla.xml
  664. rm -rf $(DESTDIR)$(LIBDIR)/carla
  665. rm -rf $(DESTDIR)$(LIBDIR)/lv2/carla.lv2
  666. rm -rf $(DESTDIR)$(LIBDIR)/lv2/carla-native.lv2
  667. rm -rf $(DESTDIR)$(LIBDIR)/vst/carla.vst
  668. rm -rf $(DESTDIR)$(DATADIR)/carla
  669. rm -rf $(DESTDIR)$(INCLUDEDIR)/carla
  670. # ----------------------------------------------------------------------------------------------------------------------------
  671. ifneq ($(MAKE_TERMOUT),)
  672. ANS_NO=\033[31mNO\033[0m
  673. ANS_YES=\033[32mYES\033[0m
  674. mS=\033[33m[
  675. mZ=\033[30;1m[
  676. mE=]\033[0m
  677. tS=\033[36m
  678. tE=\033[0m
  679. else
  680. ANS_NO=NO
  681. ANS_YES=YES
  682. mS=[
  683. mZ=[
  684. mE=]
  685. endif
  686. features_print_main:
  687. @printf -- "$(tS)---> Main features $(tE)\n"
  688. ifeq ($(HAVE_PYQT),true)
  689. @printf -- "Front-End: $(ANS_YES)\n"
  690. @printf -- "LV2 plugin: $(ANS_YES)\n"
  691. ifneq ($(HAIKU),true)
  692. @printf -- "VST2 plugin: $(ANS_YES)\n"
  693. else
  694. @printf -- "VST2 plugin: $(ANS_NO) $(mZ)Not available for Haiku$(mE)\n"
  695. endif
  696. else
  697. @printf -- "Front-End: $(ANS_NO) $(mS)Missing PyQt$(mE)\n"
  698. @printf -- "LV2 plugin: $(ANS_NO) $(mS)No front-end$(mE)\n"
  699. @printf -- "VST2 plugin: $(ANS_NO) $(mS)No front-end$(mE)\n"
  700. endif
  701. ifeq ($(HAVE_HYLIA),true)
  702. @printf -- "Link support: $(ANS_YES)\n"
  703. else
  704. ifeq ($(MACOS_OLD),true)
  705. @printf -- "Link support: $(ANS_NO) $(mZ)MacOS >= 10.8 only$(mE)\n"
  706. else
  707. @printf -- "Link support: $(ANS_NO) $(mZ)Linux, MacOS and Windows only$(mE)\n"
  708. endif
  709. endif
  710. ifeq ($(HAVE_LIBLO),true)
  711. @printf -- "OSC support: $(ANS_YES)\n"
  712. else
  713. @printf -- "OSC support: $(ANS_NO) $(mS)Missing liblo$(mE)\n"
  714. endif
  715. ifeq ($(WIN32),true)
  716. @printf -- "Binary detect: $(ANS_YES)\n"
  717. else
  718. ifeq ($(HAVE_LIBMAGIC),true)
  719. @printf -- "Binary detect: $(ANS_YES)\n"
  720. else
  721. @printf -- "Binary detect: $(ANS_NO) $(mS)Missing libmagic/file$(mE)\n"
  722. endif
  723. endif
  724. @printf -- "\n"
  725. @printf -- "$(tS)---> Engine drivers $(tE)\n"
  726. @printf -- "JACK: $(ANS_YES)\n"
  727. ifeq ($(LINUX),true)
  728. ifeq ($(HAVE_ALSA),true)
  729. @printf -- "ALSA: $(ANS_YES)\n"
  730. else
  731. @printf -- "ALSA: $(ANS_NO) $(mS)Missing ALSA$(mE)\n"
  732. endif
  733. else
  734. @printf -- "ALSA: $(ANS_NO) $(mZ)Linux only$(mE)\n"
  735. endif
  736. ifeq ($(UNIX),true)
  737. ifneq ($(MACOS),true)
  738. ifeq ($(HAVE_PULSEAUDIO),true)
  739. @printf -- "PulseAudio: $(ANS_YES)\n"
  740. else
  741. @printf -- "PulseAudio: $(ANS_NO) $(mS)Missing PulseAudio$(mE)\n"
  742. endif
  743. else
  744. @printf -- "PulseAudio: $(ANS_NO) $(mZ)Not available for MacOS$(mE)\n"
  745. endif
  746. else
  747. @printf -- "PulseAudio: $(ANS_NO) $(mZ)Only available for Unix systems$(mE)\n"
  748. endif
  749. ifeq ($(MACOS),true)
  750. @printf -- "CoreAudio: $(ANS_YES)\n"
  751. else
  752. @printf -- "CoreAudio: $(ANS_NO) $(mZ)MacOS only$(mE)\n"
  753. endif
  754. ifeq ($(WIN32),true)
  755. @printf -- "ASIO: $(ANS_YES)\n"
  756. @printf -- "DirectSound: $(ANS_YES)\n"
  757. @printf -- "WASAPI: $(ANS_YES)\n"
  758. else
  759. @printf -- "ASIO: $(ANS_NO) $(mZ)Windows only$(mE)\n"
  760. @printf -- "DirectSound: $(ANS_NO) $(mZ)Windows only$(mE)\n"
  761. @printf -- "WASAPI: $(ANS_NO) $(mZ)Windows only$(mE)\n"
  762. endif
  763. @printf -- "\n"
  764. @printf -- "$(tS)---> Plugin formats: $(tE)\n"
  765. @printf -- "Internal: $(ANS_YES)\n"
  766. @printf -- "LADSPA: $(ANS_YES)\n"
  767. @printf -- "DSSI: $(ANS_YES)\n"
  768. @printf -- "LV2: $(ANS_YES)\n"
  769. ifeq ($(MACOS_OR_WIN32),true)
  770. ifeq ($(USING_JUCE),true)
  771. @printf -- "VST2: $(ANS_YES) (with UI, using JUCE)\n"
  772. @printf -- "VST3: $(ANS_YES) (with UI, using JUCE)\n"
  773. else # USING_JUCE
  774. @printf -- "VST2: $(ANS_YES) (with UI)\n"
  775. @printf -- "VST3: $(ANS_NO)\n"
  776. endif # USING_JUCE
  777. else # MACOS_OR_WIN32
  778. ifeq ($(HAIKU),true)
  779. @printf -- "VST2: $(ANS_YES) (without UI)\n"
  780. @printf -- "VST3: $(ANS_NO)\n"
  781. else # HAIKU
  782. ifeq ($(HAVE_X11),true)
  783. @printf -- "VST2: $(ANS_YES) (with UI)\n"
  784. ifeq ($(USING_JUCE),true)
  785. @printf -- "VST3: $(ANS_YES) (with UI, using JUCE)\n"
  786. else # USING_JUCE
  787. @printf -- "VST3: $(ANS_NO)\n"
  788. endif # USING_JUCE
  789. else # HAVE_X11
  790. @printf -- "VST2: $(ANS_YES) (without UI) $(mS)Missing X11$(mE)\n"
  791. @printf -- "VST3: $(ANS_NO)\n"
  792. endif # HAVE_X11
  793. endif # HAIKU
  794. endif # MACOS_OR_WIN32
  795. ifeq ($(MACOS),true)
  796. ifeq ($(USING_JUCE),true)
  797. @printf -- "AU: $(ANS_YES) (with UI, using JUCE)\n"
  798. else # USING_JUCE
  799. @printf -- "AU: $(ANS_NO)\n"
  800. endif # USING_JUCE
  801. else # MACOS
  802. @printf -- "AU: $(ANS_NO) $(mZ)MacOS only$(mE)\n"
  803. endif # MACOS
  804. @printf -- "\n"
  805. @printf -- "$(tS)---> LV2 UI toolkit support: $(tE)\n"
  806. @printf -- "External: $(ANS_YES) (direct)\n"
  807. ifneq ($(MACOS_OR_WIN32),true)
  808. ifeq ($(HAVE_GTK2),true)
  809. @printf -- "Gtk2: $(ANS_YES) (bridge)\n"
  810. else
  811. @printf -- "Gtk2: $(ANS_NO) $(mS)Gtk2 missing$(mE)\n"
  812. endif
  813. ifeq ($(HAVE_GTK3),true)
  814. @printf -- "Gtk3: $(ANS_YES) (bridge)\n"
  815. else
  816. @printf -- "Gtk3: $(ANS_NO) $(mS)Gtk3 missing$(mE)\n"
  817. endif
  818. ifeq ($(HAVE_QT4),true)
  819. @printf -- "Qt4: $(ANS_YES) (bridge)\n"
  820. else
  821. @printf -- "Qt4: $(ANS_NO) $(mS)Qt4 missing$(mE)\n"
  822. endif
  823. ifeq ($(HAVE_QT5),true)
  824. @printf -- "Qt5: $(ANS_YES) (bridge)\n"
  825. else
  826. @printf -- "Qt5: $(ANS_NO) $(mS)Qt5 missing$(mE)\n"
  827. endif
  828. ifeq ($(HAVE_X11),true)
  829. @printf -- "X11: $(ANS_YES) (direct+bridge)\n"
  830. else
  831. @printf -- "X11: $(ANS_NO) $(mS)X11 missing$(mE)\n"
  832. endif
  833. else # LINUX
  834. @printf -- "Gtk2: $(ANS_NO) $(mZ)Not available for Windows or MacOS$(mE)\n"
  835. @printf -- "Gtk3: $(ANS_NO) $(mZ)Not available for Windows or MacOS$(mE)\n"
  836. @printf -- "Qt4: $(ANS_NO) $(mZ)Not available for Windows or MacOS$(mE)\n"
  837. @printf -- "Qt5: $(ANS_NO) $(mZ)Not available for Windows or MacOS$(mE)\n"
  838. @printf -- "X11: $(ANS_NO) $(mZ)Not available for Windows or MacOS$(mE)\n"
  839. endif # LINUX
  840. ifeq ($(MACOS),true)
  841. @printf -- "Cocoa: $(ANS_YES) (direct+bridge)\n"
  842. else
  843. @printf -- "Cocoa: $(ANS_NO) $(mZ)MacOS only$(mE)\n"
  844. endif
  845. ifeq ($(WIN32),true)
  846. @printf -- "Windows: $(ANS_YES) (direct+bridge)\n"
  847. else
  848. @printf -- "Windows: $(ANS_NO) $(mZ)Windows only$(mE)\n"
  849. endif
  850. @printf -- "\n"
  851. @printf -- "$(tS)---> File formats: $(tE)\n"
  852. ifeq ($(HAVE_SNDFILE),true)
  853. @printf -- "Basic: $(ANS_YES)\n"
  854. else
  855. @printf -- "Basic: $(ANS_NO) $(mS)libsndfile missing$(mE)\n"
  856. endif
  857. ifeq ($(HAVE_FFMPEG),true)
  858. @printf -- "Extra: $(ANS_YES)\n"
  859. else
  860. @printf -- "Extra: $(ANS_NO) $(mS)FFmpeg missing or too new$(mE)\n"
  861. endif
  862. # ifeq ($(HAVE_FLUIDSYNTH_INSTPATCH),true)
  863. # @printf -- "DLS: $(ANS_YES)\n"
  864. # else
  865. # @printf -- "DLS: $(ANS_NO) $(mS)FluidSynth/instpatch missing or too old$(mE)\n"
  866. # endif
  867. ifeq ($(HAVE_FLUIDSYNTH),true)
  868. @printf -- "SF2/3: $(ANS_YES)\n"
  869. else
  870. @printf -- "SF2/3: $(ANS_NO) $(mS)FluidSynth missing or too old$(mE)\n"
  871. endif
  872. @printf -- "SFZ: $(ANS_YES)\n"
  873. @printf -- "\n"
  874. @printf -- "$(tS)---> Internal plugins: $(tE)\n"
  875. @printf -- "Basic Plugins: $(ANS_YES)\n"
  876. @printf -- "Carla-Patchbay: $(ANS_YES)\n"
  877. @printf -- "Carla-Rack: $(ANS_YES)\n"
  878. ifeq ($(EXTERNAL_PLUGINS),true)
  879. @printf -- "External Plugins: $(ANS_YES)\n"
  880. else
  881. @printf -- "External Plugins: $(ANS_NO)\n"
  882. endif
  883. ifneq ($(EXTERNAL_PLUGINS),true)
  884. features_print_external_plugins:
  885. endif
  886. features: features_print_main features_print_external_plugins
  887. # ---------------------------------------------------------------------------------------------------------------------
  888. .FORCE:
  889. .PHONY: .FORCE
  890. # ---------------------------------------------------------------------------------------------------------------------