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.

172 lines
5.5KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. #if defined (JUCE_GRAPHICS_H_INCLUDED) && ! JUCE_AMALGAMATED_INCLUDE
  18. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  19. already included any other headers - just put it inside a file on its own, possibly with your config
  20. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  21. header files that the compiler may be using.
  22. */
  23. #error "Incorrect use of JUCE cpp file"
  24. #endif
  25. // Your project must contain an AppConfig.h file with your project-specific settings in it,
  26. // and your header search path must make it accessible to the module's files.
  27. #include "AppConfig.h"
  28. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  29. #include "juce_graphics.h"
  30. //==============================================================================
  31. #if JUCE_MAC
  32. #import <QuartzCore/QuartzCore.h>
  33. #elif JUCE_WINDOWS
  34. #if JUCE_MINGW && JUCE_USE_DIRECTWRITE
  35. #warning "DirectWrite not currently implemented with mingw..."
  36. #undef JUCE_USE_DIRECTWRITE
  37. #endif
  38. #if JUCE_USE_DIRECTWRITE
  39. /* If you hit a compile error trying to include these files, you may need to update
  40. your version of the Windows SDK to the latest one. The DirectWrite and Direct2D
  41. headers are in the version 7 SDKs.
  42. */
  43. #include <d2d1.h>
  44. #include <dwrite.h>
  45. #endif
  46. #if JUCE_MINGW
  47. #include <malloc.h>
  48. #endif
  49. #elif JUCE_IOS
  50. #import <QuartzCore/QuartzCore.h>
  51. #import <CoreText/CoreText.h>
  52. #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_3_2
  53. #error "JUCE no longer supports targets earlier than iOS 3.2"
  54. #endif
  55. #elif JUCE_LINUX
  56. #ifndef JUCE_USE_FREETYPE
  57. #define JUCE_USE_FREETYPE 1
  58. #endif
  59. #endif
  60. #if JUCE_USE_FREETYPE
  61. #if JUCE_USE_FREETYPE_AMALGAMATED
  62. #include "native/freetype/FreeTypeAmalgam.h"
  63. #else
  64. #include <ft2build.h>
  65. #include FT_FREETYPE_H
  66. #endif
  67. #endif
  68. #undef SIZEOF
  69. #if (JUCE_MAC || JUCE_IOS) && USE_COREGRAPHICS_RENDERING && JUCE_USE_COREIMAGE_LOADER
  70. #define JUCE_USING_COREIMAGE_LOADER 1
  71. #else
  72. #define JUCE_USING_COREIMAGE_LOADER 0
  73. #endif
  74. //==============================================================================
  75. namespace juce
  76. {
  77. #include "colour/juce_Colour.cpp"
  78. #include "colour/juce_ColourGradient.cpp"
  79. #include "colour/juce_Colours.cpp"
  80. #include "colour/juce_FillType.cpp"
  81. #include "geometry/juce_AffineTransform.cpp"
  82. #include "geometry/juce_EdgeTable.cpp"
  83. #include "geometry/juce_Path.cpp"
  84. #include "geometry/juce_PathIterator.cpp"
  85. #include "geometry/juce_PathStrokeType.cpp"
  86. #include "placement/juce_RectanglePlacement.cpp"
  87. #include "contexts/juce_GraphicsContext.cpp"
  88. #include "contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp"
  89. #include "contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp"
  90. #include "images/juce_Image.cpp"
  91. #include "images/juce_ImageCache.cpp"
  92. #include "images/juce_ImageConvolutionKernel.cpp"
  93. #include "images/juce_ImageFileFormat.cpp"
  94. #include "image_formats/juce_GIFLoader.cpp"
  95. #include "image_formats/juce_JPEGLoader.cpp"
  96. #include "image_formats/juce_PNGLoader.cpp"
  97. #include "fonts/juce_AttributedString.cpp"
  98. #include "fonts/juce_Typeface.cpp"
  99. #include "fonts/juce_CustomTypeface.cpp"
  100. #include "fonts/juce_Font.cpp"
  101. #include "fonts/juce_GlyphArrangement.cpp"
  102. #include "fonts/juce_TextLayout.cpp"
  103. #include "effects/juce_DropShadowEffect.cpp"
  104. #include "effects/juce_GlowEffect.cpp"
  105. #if JUCE_USE_FREETYPE
  106. #include "native/juce_freetype_Fonts.cpp"
  107. #endif
  108. //==============================================================================
  109. #if JUCE_MAC || JUCE_IOS
  110. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  111. #include "native/juce_mac_CoreGraphicsHelpers.h"
  112. #include "native/juce_mac_Fonts.mm"
  113. #include "native/juce_mac_CoreGraphicsContext.mm"
  114. #elif JUCE_WINDOWS
  115. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  116. #include "native/juce_win32_DirectWriteTypeface.cpp"
  117. #include "native/juce_win32_DirectWriteTypeLayout.cpp"
  118. #include "native/juce_win32_Fonts.cpp"
  119. #if JUCE_DIRECT2D
  120. #include "native/juce_win32_Direct2DGraphicsContext.cpp"
  121. #endif
  122. #elif JUCE_LINUX
  123. #include "native/juce_linux_Fonts.cpp"
  124. #elif JUCE_ANDROID
  125. #include "../juce_core/native/juce_android_JNIHelpers.h"
  126. #include "native/juce_android_GraphicsContext.cpp"
  127. #include "native/juce_android_Fonts.cpp"
  128. #endif
  129. }
  130. //==============================================================================
  131. #if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
  132. #undef PIXEL_MASK
  133. #undef ZLIB_VERSION
  134. #undef Z_ASCII
  135. #undef ZEXTERN
  136. #undef ZEXPORT
  137. extern "C"
  138. {
  139. #include "native/freetype/FreeTypeAmalgam.c"
  140. }
  141. #endif