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.3KB

10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. #!/usr/bin/make -f
  2. # Makefile for theme #
  3. # ------------------ #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += -I. -I../../includes -I../../utils
  9. ifeq ($(HAVE_QT4),true)
  10. QT4_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  11. QT4_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtGui)
  12. QT4_LINK_FLAGS += $(shell pkg-config --libs QtCore QtGui)
  13. QT4_STYLES_DIR = $(shell pkg-config --variable=libdir QtCore)/qt4/plugins/styles
  14. endif
  15. ifeq ($(HAVE_QT5),true)
  16. QT5_CXX_FLAGS = $(BUILD_CXX_FLAGS)
  17. QT5_CXX_FLAGS += $(shell pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets)
  18. QT5_LINK_FLAGS += $(shell pkg-config --libs Qt5Core Qt5Gui Qt5Widgets)
  19. QT5_STYLES_DIR = $(shell pkg-config --variable=libdir Qt5Core)/qt5/plugins/styles
  20. endif
  21. ifeq ($(HAVE_QT4),true)
  22. QT_STYLES_DIR = $(QT4_STYLES_DIR)
  23. SHARED_LINK_FLAGS = $(QT4_LINK_FLAGS)
  24. else
  25. QT_STYLES_DIR = $(QT5_STYLES_DIR)
  26. SHARED_LINK_FLAGS = $(QT5_LINK_FLAGS)
  27. endif
  28. # --------------------------------------------------------------
  29. FILES_qt4 = \
  30. moc_CarlaStyle.qt4.cpp \
  31. moc_CarlaStyleAnimations.qt4.cpp \
  32. moc_CarlaStylePlugin.qt4.cpp \
  33. moc_CarlaStylePrivate.qt4.cpp \
  34. resources.qt4.cpp
  35. FILES_qt5 = \
  36. moc_CarlaStyle.qt5.cpp \
  37. moc_CarlaStyleAnimations.qt5.cpp \
  38. moc_CarlaStylePlugin.qt5.cpp \
  39. moc_CarlaStylePrivate.qt5.cpp \
  40. resources.qt5.cpp
  41. ifeq ($(HAVE_QT4),true)
  42. FILES_shared = $(FILES_qt4)
  43. else
  44. FILES_shared = $(FILES_qt5)
  45. endif
  46. # --------------------------------------------------------------
  47. OBJS_qt4 = \
  48. CarlaStyle.cpp.qt4.o \
  49. moc_CarlaStyle.qt4.cpp.o \
  50. moc_CarlaStyleAnimations.qt4.cpp.o \
  51. moc_CarlaStylePrivate.qt4.cpp.o \
  52. resources.qt4.cpp.o
  53. OBJS_qt5 = \
  54. CarlaStyle.cpp.qt5.o \
  55. moc_CarlaStyle.qt5.cpp.o \
  56. moc_CarlaStyleAnimations.qt5.cpp.o \
  57. moc_CarlaStylePrivate.qt5.cpp.o \
  58. resources.qt5.cpp.o
  59. ifeq ($(HAVE_QT4),true)
  60. OBJS_shared += $(OBJS_qt4) \
  61. CarlaStylePlugin.cpp.qt4.o \
  62. moc_CarlaStylePlugin.qt4.cpp.o
  63. else
  64. OBJS_shared += $(OBJS_qt5) \
  65. CarlaStylePlugin.cpp.qt5.o \
  66. moc_CarlaStylePlugin.qt5.cpp.o
  67. endif
  68. # --------------------------------------------------------------
  69. ifeq ($(WIN32),true)
  70. CARLASTYLE = styles/carlastyle.dll
  71. else
  72. ifeq ($(MACOS),true)
  73. CARLASTYLE = styles/carlastyle.dylib
  74. else
  75. CARLASTYLE = styles/carlastyle.so
  76. endif
  77. endif
  78. all: $(CARLASTYLE)
  79. qt4: ../theme.qt4.a
  80. qt5: ../theme.qt5.a
  81. # --------------------------------------------------------------
  82. ../theme.qt4.a: $(FILES_qt4) $(OBJS_qt4)
  83. $(RM) $@
  84. $(AR) crs $@ $(OBJS_qt4)
  85. ../theme.qt5.a: $(FILES_qt5) $(OBJS_qt5)
  86. $(RM) $@
  87. $(AR) crs $@ $(OBJS_qt5)
  88. # --------------------------------------------------------------
  89. styles/carlastyle.dll: $(FILES_shared) $(OBJS_shared)
  90. $(CXX) $(OBJS_shared) $(SHARED_LINK_FLAGS) -luuid -lwinspool -lgdi32 -limm32 -lole32 -lshell32 -lws2_32 -shared -o $@
  91. # $(CXX) $(OBJS_shared) \
  92. # -L/home/falktx/.winepy3/drive_c/Python33/Lib/site-packages/PyQt4/ -lQtGui4 -lQtCore4 \
  93. # -shared -o $@
  94. styles/carlastyle.dylib: $(FILES_shared) $(OBJS_shared)
  95. $(CXX) $(OBJS_shared) $(SHARED_LINK_FLAGS) -dynamiclib -o $@
  96. styles/carlastyle.so: $(FILES_shared) $(OBJS_shared)
  97. $(CXX) $(OBJS_shared) $(SHARED_LINK_FLAGS) -shared -o $@
  98. # --------------------------------------------------------------
  99. %.qt4.cpp.o: %.qt4.cpp CarlaStyle.hpp moc_CarlaStyle.qt4.cpp
  100. $(CXX) $< $(QT4_CXX_FLAGS) -c -o $@
  101. %.qt5.cpp.o: %.qt5.cpp CarlaStyle.hpp moc_CarlaStyle.qt5.cpp
  102. $(CXX) $< $(QT5_CXX_FLAGS) -c -o $@
  103. %.cpp.qt4.o: %.cpp CarlaStyle.hpp moc_CarlaStyle.qt4.cpp
  104. $(CXX) $< $(QT4_CXX_FLAGS) -c -o $@
  105. %.cpp.qt5.o: %.cpp CarlaStyle.hpp moc_CarlaStyle.qt5.cpp
  106. $(CXX) $< $(QT5_CXX_FLAGS) -c -o $@
  107. moc_%.qt4.cpp: %.hpp
  108. $(MOC_QT4) $< -o $@
  109. moc_%.qt5.cpp: %.hpp
  110. $(MOC_QT5) -Istyles $< -o $@
  111. resources.qt4.cpp: ../../../resources/resources-theme.qrc
  112. $(RCC_QT4) $< -o $@
  113. resources.qt5.cpp: ../../../resources/resources-theme.qrc
  114. $(RCC_QT5) $< -o $@
  115. # --------------------------------------------------------------
  116. clean:
  117. $(RM) *.o ../theme*.a $(CARLASTYLE) $(FILES_qt4) $(FILES_qt5)
  118. debug:
  119. $(MAKE) DEBUG=true
  120. install: $(CARLASTYLE) styles/carlastyle.json
  121. install -d $(QT_STYLES_DIR)
  122. install -m 644 $^ $(QT_STYLES_DIR)
  123. install-main: $(CARLASTYLE) styles/carlastyle.json
  124. install -d $(STYLES_DIR)
  125. install -m 644 $^ $(STYLES_DIR)
  126. # --------------------------------------------------------------