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.

168 lines
5.3KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2015 - ROLI 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. #ifdef JUCE_GRAPHICS_H_INCLUDED
  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. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  26. #include "juce_graphics.h"
  27. //==============================================================================
  28. #if JUCE_MAC
  29. #import <QuartzCore/QuartzCore.h>
  30. #elif JUCE_WINDOWS
  31. #if JUCE_MINGW && JUCE_USE_DIRECTWRITE
  32. #warning "DirectWrite not currently implemented with mingw..."
  33. #undef JUCE_USE_DIRECTWRITE
  34. #endif
  35. #if JUCE_USE_DIRECTWRITE
  36. /* If you hit a compile error trying to include these files, you may need to update
  37. your version of the Windows SDK to the latest one. The DirectWrite and Direct2D
  38. headers are in the version 7 SDKs.
  39. */
  40. #include <d2d1.h>
  41. #include <dwrite.h>
  42. #endif
  43. #if JUCE_MINGW
  44. #include <malloc.h>
  45. #endif
  46. #elif JUCE_IOS
  47. #import <QuartzCore/QuartzCore.h>
  48. #import <CoreText/CoreText.h>
  49. #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_3_2
  50. #error "JUCE no longer supports targets earlier than iOS 3.2"
  51. #endif
  52. #elif JUCE_LINUX
  53. #ifndef JUCE_USE_FREETYPE
  54. #define JUCE_USE_FREETYPE 1
  55. #endif
  56. #endif
  57. #if JUCE_USE_FREETYPE
  58. #if JUCE_USE_FREETYPE_AMALGAMATED
  59. #include "native/freetype/FreeTypeAmalgam.h"
  60. #else
  61. #include <ft2build.h>
  62. #include FT_FREETYPE_H
  63. #endif
  64. #endif
  65. #undef SIZEOF
  66. #if (JUCE_MAC || JUCE_IOS) && USE_COREGRAPHICS_RENDERING && JUCE_USE_COREIMAGE_LOADER
  67. #define JUCE_USING_COREIMAGE_LOADER 1
  68. #else
  69. #define JUCE_USING_COREIMAGE_LOADER 0
  70. #endif
  71. //==============================================================================
  72. namespace juce
  73. {
  74. #include "colour/juce_Colour.cpp"
  75. #include "colour/juce_ColourGradient.cpp"
  76. #include "colour/juce_Colours.cpp"
  77. #include "colour/juce_FillType.cpp"
  78. #include "geometry/juce_AffineTransform.cpp"
  79. #include "geometry/juce_EdgeTable.cpp"
  80. #include "geometry/juce_Path.cpp"
  81. #include "geometry/juce_PathIterator.cpp"
  82. #include "geometry/juce_PathStrokeType.cpp"
  83. #include "placement/juce_RectanglePlacement.cpp"
  84. #include "contexts/juce_GraphicsContext.cpp"
  85. #include "contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp"
  86. #include "contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp"
  87. #include "images/juce_Image.cpp"
  88. #include "images/juce_ImageCache.cpp"
  89. #include "images/juce_ImageConvolutionKernel.cpp"
  90. #include "images/juce_ImageFileFormat.cpp"
  91. #include "image_formats/juce_GIFLoader.cpp"
  92. #include "image_formats/juce_JPEGLoader.cpp"
  93. #include "image_formats/juce_PNGLoader.cpp"
  94. #include "fonts/juce_AttributedString.cpp"
  95. #include "fonts/juce_Typeface.cpp"
  96. #include "fonts/juce_CustomTypeface.cpp"
  97. #include "fonts/juce_Font.cpp"
  98. #include "fonts/juce_GlyphArrangement.cpp"
  99. #include "fonts/juce_TextLayout.cpp"
  100. #include "effects/juce_DropShadowEffect.cpp"
  101. #include "effects/juce_GlowEffect.cpp"
  102. #if JUCE_USE_FREETYPE
  103. #include "native/juce_freetype_Fonts.cpp"
  104. #endif
  105. //==============================================================================
  106. #if JUCE_MAC || JUCE_IOS
  107. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  108. #include "native/juce_mac_CoreGraphicsHelpers.h"
  109. #include "native/juce_mac_Fonts.mm"
  110. #include "native/juce_mac_CoreGraphicsContext.mm"
  111. #elif JUCE_WINDOWS
  112. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  113. #include "native/juce_win32_DirectWriteTypeface.cpp"
  114. #include "native/juce_win32_DirectWriteTypeLayout.cpp"
  115. #include "native/juce_win32_Fonts.cpp"
  116. #if JUCE_DIRECT2D
  117. #include "native/juce_win32_Direct2DGraphicsContext.cpp"
  118. #endif
  119. #elif JUCE_LINUX
  120. #include "native/juce_linux_Fonts.cpp"
  121. #elif JUCE_ANDROID
  122. #include "../juce_core/native/juce_android_JNIHelpers.h"
  123. #include "native/juce_android_GraphicsContext.cpp"
  124. #include "native/juce_android_Fonts.cpp"
  125. #endif
  126. }
  127. //==============================================================================
  128. #if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
  129. #undef PIXEL_MASK
  130. #undef ZLIB_VERSION
  131. #undef Z_ASCII
  132. #undef ZEXTERN
  133. #undef ZEXPORT
  134. extern "C"
  135. {
  136. #include "native/freetype/FreeTypeAmalgam.c"
  137. }
  138. #endif