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.

Makefile 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. #!/usr/bin/make -f
  2. # Makefile for carla-frontend #
  3. # --------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. include $(CWD)/Makefile.mk
  8. # ---------------------------------------------------------------------------------------------------------------------
  9. BINDIR := $(CWD)/../bin
  10. RESDIR := $(CWD)/../resources
  11. # ---------------------------------------------------------------------------------------------------------------------
  12. # Translations
  13. TSs = $(patsubst %,translations/carla_%.ts,$(I18N_LANGUAGES))
  14. QMs = $(patsubst %,translations/carla_%.qm,$(I18N_LANGUAGES))
  15. # ---------------------------------------------------------------------------------------------------------------------
  16. # Resources
  17. RES = \
  18. resources_rc.py \
  19. $(BINDIR)/resources/modgui \
  20. $(BINDIR)/resources/patchcanvas \
  21. $(BINDIR)/resources/widgets \
  22. $(BINDIR)/resources/bigmeter-ui \
  23. $(BINDIR)/resources/carla-plugin \
  24. $(BINDIR)/resources/carla-plugin-patchbay \
  25. $(BINDIR)/resources/carla_app.py \
  26. $(BINDIR)/resources/carla_backend.py \
  27. $(BINDIR)/resources/carla_backend_qt.py \
  28. $(BINDIR)/resources/carla_control.py \
  29. $(BINDIR)/resources/carla_database.py \
  30. $(BINDIR)/resources/carla_host.py \
  31. $(BINDIR)/resources/carla_modgui.py \
  32. $(BINDIR)/resources/carla_settings.py \
  33. $(BINDIR)/resources/carla_skin.py \
  34. $(BINDIR)/resources/carla_shared.py \
  35. $(BINDIR)/resources/carla_utils.py \
  36. $(BINDIR)/resources/carla_widgets.py \
  37. $(BINDIR)/resources/externalui.py \
  38. $(BINDIR)/resources/midipattern-ui \
  39. $(BINDIR)/resources/notes-ui \
  40. $(BINDIR)/resources/xycontroller-ui \
  41. $(BINDIR)/resources/resources_rc.py \
  42. $(BINDIR)/resources/ui_carla_about.py \
  43. $(BINDIR)/resources/ui_carla_about_juce.py \
  44. $(BINDIR)/resources/ui_carla_add_jack.py \
  45. $(BINDIR)/resources/ui_carla_database.py \
  46. $(BINDIR)/resources/ui_carla_edit.py \
  47. $(BINDIR)/resources/ui_carla_host.py \
  48. $(BINDIR)/resources/ui_carla_osc_connect.py \
  49. $(BINDIR)/resources/ui_carla_parameter.py \
  50. $(BINDIR)/resources/ui_carla_plugin_calf.py \
  51. $(BINDIR)/resources/ui_carla_plugin_classic.py \
  52. $(BINDIR)/resources/ui_carla_plugin_compact.py \
  53. $(BINDIR)/resources/ui_carla_plugin_default.py \
  54. $(BINDIR)/resources/ui_carla_plugin_presets.py \
  55. $(BINDIR)/resources/ui_carla_refresh.py \
  56. $(BINDIR)/resources/ui_carla_settings.py \
  57. $(BINDIR)/resources/ui_carla_settings_driver.py \
  58. $(BINDIR)/resources/ui_inputdialog_value.py \
  59. $(BINDIR)/resources/ui_midipattern.py \
  60. $(BINDIR)/resources/ui_xycontroller.py
  61. ifneq ($(SKIP_ZYN_SYNTH),true)
  62. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  63. RES += \
  64. $(BINDIR)/resources/zynaddsubfx \
  65. $(BINDIR)/resources/zynaddsubfx-ui
  66. endif
  67. endif
  68. # ---------------------------------------------------------------------------------------------------------------------
  69. # UI code
  70. UIs = \
  71. ui_carla_about.py \
  72. ui_carla_about_juce.py \
  73. ui_carla_add_jack.py \
  74. ui_carla_database.py \
  75. ui_carla_edit.py \
  76. ui_carla_host.py \
  77. ui_carla_osc_connect.py \
  78. ui_carla_parameter.py \
  79. ui_carla_plugin_calf.py \
  80. ui_carla_plugin_classic.py \
  81. ui_carla_plugin_compact.py \
  82. ui_carla_plugin_default.py \
  83. ui_carla_plugin_presets.py \
  84. ui_carla_refresh.py \
  85. ui_carla_settings.py \
  86. ui_carla_settings_driver.py \
  87. ui_inputdialog_value.py \
  88. ui_midipattern.py \
  89. ui_xycontroller.py
  90. # ---------------------------------------------------------------------------------------------------------------------
  91. all: $(QMs) $(RES) $(UIs)
  92. # ---------------------------------------------------------------------------------------------------------------------
  93. ui_%.py: $(RESDIR)/ui/%.ui
  94. $(PYUIC) $< -o $@
  95. resources_rc.py: $(RESDIR)/resources.qrc $(RESDIR)/*/*.png $(RESDIR)/*/*.svg $(RESDIR)/*/*.svgz
  96. $(PYRCC) $< -o $@
  97. $(BINDIR)/resources/%: %
  98. -@mkdir -p $(BINDIR)/resources
  99. $(LINK) $(CURDIR)/$* $(BINDIR)/resources/
  100. $(BINDIR)/resources/zynaddsubfx: ../native-plugins/resources/zynaddsubfx
  101. -@mkdir -p $(BINDIR)/resources
  102. $(LINK) $(CURDIR)/$< $(BINDIR)/resources/
  103. $(BINDIR)/resources/zynaddsubfx-ui: ../native-plugins/resources/zynaddsubfx-ui
  104. -@mkdir -p $(BINDIR)/resources
  105. $(LINK) $(CURDIR)/$< $(BINDIR)/resources/
  106. # ---------------------------------------------------------------------------------------------------------------------
  107. clean:
  108. rm -rf $(UIs) $(RES) $(QMs) __pycache__ *.pyc
  109. debug:
  110. $(MAKE) DEBUG=true
  111. # ---------------------------------------------------------------------------------------------------------------------
  112. i18n_update: $(TSs)
  113. i18n_release: $(QMs)
  114. translations/%.ts:
  115. @install -d translations
  116. pylupdate5 *.py $(RESDIR)/ui/*.ui -ts $@
  117. %.qm: %.ts
  118. lrelease $< -qm $@
  119. # ---------------------------------------------------------------------------------------------------------------------