Cross-Platform build scripts for audio plugins
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.

113 lines
2.7KB

  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 1c290ba..7c23e9e 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -24,7 +24,10 @@ pkg_check_modules(SND sndfile REQUIRED)
  6. include_directories( ${SND_INCLUDE_DIRS} )
  7. #target_link_libraries( avtkDemo ${CAIRO_LIBRARIES} )
  8. -SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fPIC -shared -L./src/avtk -Wl,--no-undefined")
  9. +SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fPIC -shared -L./src/avtk")
  10. +if(NOT APPLE)
  11. + SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
  12. +endif()
  13. SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -O1 -Wno-unused-variable")
  14. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -O1 -Wno-unused-variable -ftree-vectorize")
  15. diff --git a/src/dsp/artyfx.cxx b/src/dsp/artyfx.cxx
  16. index 49ace32..5258490 100644
  17. --- a/src/dsp/artyfx.cxx
  18. +++ b/src/dsp/artyfx.cxx
  19. @@ -49,6 +49,7 @@ static const LV2_Descriptor descriptors[] = {
  20. Bitta::cleanup,
  21. Bitta::extension_data
  22. },
  23. +#ifndef _WIN32
  24. {
  25. CAPTA_URI,
  26. Capta::instantiate,
  27. @@ -59,6 +60,7 @@ static const LV2_Descriptor descriptors[] = {
  28. Capta::cleanup,
  29. Capta::extension_data
  30. },
  31. +#endif
  32. {
  33. DELLA_URI,
  34. Della::instantiate,
  35. diff --git a/src/dsp/capta.cxx b/src/dsp/capta.cxx
  36. index 26cf298..c99a850 100644
  37. --- a/src/dsp/capta.cxx
  38. +++ b/src/dsp/capta.cxx
  39. @@ -29,6 +29,8 @@
  40. #include <sstream>
  41. #include <sndfile.hh>
  42. +#ifndef _WIN32
  43. +
  44. LV2_Handle Capta::instantiate(const LV2_Descriptor* descriptor,
  45. double samplerate,
  46. const char* bundle_path,
  47. @@ -207,3 +209,4 @@ const void* Capta::extension_data(const char* uri)
  48. return NULL;
  49. }
  50. +#endif
  51. diff --git a/src/dsp/capta.hxx b/src/dsp/capta.hxx
  52. index 39bbb11..083b21e 100644
  53. --- a/src/dsp/capta.hxx
  54. +++ b/src/dsp/capta.hxx
  55. @@ -45,6 +45,8 @@ typedef enum {
  56. #include "zix/sem.h"
  57. #include "zix/thread.h"
  58. +#ifndef _WIN32
  59. +
  60. class SndfileHandle;
  61. class Capta
  62. @@ -101,4 +103,6 @@ private:
  63. }
  64. };
  65. +#endif
  66. +
  67. #endif // OPENAV_CAPTA
  68. diff --git a/src/dsp/driva.hxx b/src/dsp/driva.hxx
  69. index 7657c85..67399da 100644
  70. --- a/src/dsp/driva.hxx
  71. +++ b/src/dsp/driva.hxx
  72. @@ -26,22 +26,22 @@
  73. #define DRIVA_URI "http://www.openavproductions.com/artyfx#driva"
  74. #define DRIVA_UI_URI "http://www.openavproductions.com/artyfx#driva/gui"
  75. -typedef enum {
  76. - // Audio
  77. - INPUT = 0,
  78. - OUTPUT,
  79. -
  80. - // Top signal
  81. - DRIVA_TONE,
  82. - DRIVA_AMOUNT,
  83. -
  84. -} DrivaPortIndex;
  85. -
  86. class StompBox;
  87. class Driva
  88. {
  89. public:
  90. + typedef enum {
  91. + // Audio
  92. + INPUT = 0,
  93. + OUTPUT,
  94. +
  95. + // Top signal
  96. + DRIVA_TONE,
  97. + DRIVA_AMOUNT,
  98. +
  99. + } DrivaPortIndex;
  100. +
  101. Driva(int rate);
  102. ~Driva();
  103. static LV2_Handle instantiate(const LV2_Descriptor* descriptor,