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.

184 lines
5.9KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2022 - Raw Material Software Limited
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 7 End-User License
  8. Agreement and JUCE Privacy Policy.
  9. End User License Agreement: www.juce.com/juce-7-licence
  10. Privacy Policy: www.juce.com/juce-privacy-policy
  11. Or: You may also use this code under the terms of the GPL v3 (see
  12. www.gnu.org/licenses).
  13. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  14. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  15. DISCLAIMED.
  16. ==============================================================================
  17. */
  18. #ifdef JUCE_GRAPHICS_H_INCLUDED
  19. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  20. already included any other headers - just put it inside a file on its own, possibly with your config
  21. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  22. header files that the compiler may be using.
  23. */
  24. #error "Incorrect use of JUCE cpp file"
  25. #endif
  26. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  27. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  28. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  29. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  30. #define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
  31. #include "juce_graphics.h"
  32. //==============================================================================
  33. #if JUCE_MAC
  34. #import <QuartzCore/QuartzCore.h>
  35. #elif JUCE_WINDOWS
  36. // get rid of some warnings in Window's own headers
  37. JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4458)
  38. #if JUCE_MINGW && JUCE_USE_DIRECTWRITE
  39. #warning "DirectWrite not currently implemented with mingw..."
  40. #undef JUCE_USE_DIRECTWRITE
  41. #endif
  42. #if JUCE_USE_DIRECTWRITE || JUCE_DIRECT2D
  43. /* This is a workaround for broken-by-default function definitions
  44. in the MinGW headers. If you're using a newer distribution of MinGW,
  45. then your headers may substitute the broken definitions with working definitions
  46. when this flag is enabled. Unfortunately, not all MinGW headers contain this
  47. workaround, so Direct2D remains disabled by default when building with MinGW.
  48. */
  49. #define WIDL_EXPLICIT_AGGREGATE_RETURNS 1
  50. /* If you hit a compile error trying to include these files, you may need to update
  51. your version of the Windows SDK to the latest one. The DirectWrite and Direct2D
  52. headers are in the version 7 SDKs.
  53. */
  54. #include <d2d1.h>
  55. #include <dwrite.h>
  56. #endif
  57. #if JUCE_MINGW
  58. #include <malloc.h>
  59. #include <cstdio>
  60. #endif
  61. JUCE_END_IGNORE_WARNINGS_MSVC
  62. #elif JUCE_IOS
  63. #import <QuartzCore/QuartzCore.h>
  64. #import <CoreText/CoreText.h>
  65. #elif JUCE_LINUX || JUCE_BSD
  66. #ifndef JUCE_USE_FREETYPE
  67. #define JUCE_USE_FREETYPE 1
  68. #endif
  69. #endif
  70. #if JUCE_USE_FREETYPE
  71. #if JUCE_USE_FREETYPE_AMALGAMATED
  72. #include "native/freetype/FreeTypeAmalgam.h"
  73. #else
  74. #include <ft2build.h>
  75. #include FT_FREETYPE_H
  76. #endif
  77. #endif
  78. #undef SIZEOF
  79. #if (JUCE_MAC || JUCE_IOS) && USE_COREGRAPHICS_RENDERING && JUCE_USE_COREIMAGE_LOADER
  80. #define JUCE_USING_COREIMAGE_LOADER 1
  81. #else
  82. #define JUCE_USING_COREIMAGE_LOADER 0
  83. #endif
  84. //==============================================================================
  85. #include "colour/juce_Colour.cpp"
  86. #include "colour/juce_ColourGradient.cpp"
  87. #include "colour/juce_Colours.cpp"
  88. #include "colour/juce_FillType.cpp"
  89. #include "geometry/juce_AffineTransform.cpp"
  90. #include "geometry/juce_EdgeTable.cpp"
  91. #include "geometry/juce_Path.cpp"
  92. #include "geometry/juce_PathIterator.cpp"
  93. #include "geometry/juce_PathStrokeType.cpp"
  94. #include "placement/juce_RectanglePlacement.cpp"
  95. #include "contexts/juce_GraphicsContext.cpp"
  96. #include "contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp"
  97. #include "contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp"
  98. #include "images/juce_Image.cpp"
  99. #include "images/juce_ImageCache.cpp"
  100. #include "images/juce_ImageConvolutionKernel.cpp"
  101. #include "images/juce_ImageFileFormat.cpp"
  102. #include "image_formats/juce_GIFLoader.cpp"
  103. #include "image_formats/juce_JPEGLoader.cpp"
  104. #include "image_formats/juce_PNGLoader.cpp"
  105. #include "fonts/juce_AttributedString.cpp"
  106. #include "fonts/juce_Typeface.cpp"
  107. #include "fonts/juce_CustomTypeface.cpp"
  108. #include "fonts/juce_Font.cpp"
  109. #include "fonts/juce_GlyphArrangement.cpp"
  110. #include "fonts/juce_TextLayout.cpp"
  111. #include "effects/juce_DropShadowEffect.cpp"
  112. #include "effects/juce_GlowEffect.cpp"
  113. #if JUCE_UNIT_TESTS
  114. #include "geometry/juce_Rectangle_test.cpp"
  115. #endif
  116. #if JUCE_USE_FREETYPE
  117. #include "native/juce_freetype_Fonts.cpp"
  118. #endif
  119. //==============================================================================
  120. #if JUCE_MAC || JUCE_IOS
  121. #include "native/juce_mac_Fonts.mm"
  122. #include "native/juce_mac_CoreGraphicsContext.mm"
  123. #include "native/juce_mac_IconHelpers.cpp"
  124. #elif JUCE_WINDOWS
  125. #include "native/juce_win32_DirectWriteTypeface.cpp"
  126. #include "native/juce_win32_DirectWriteTypeLayout.cpp"
  127. #include "native/juce_win32_Fonts.cpp"
  128. #include "native/juce_win32_IconHelpers.cpp"
  129. #if JUCE_DIRECT2D
  130. #include "native/juce_win32_Direct2DGraphicsContext.cpp"
  131. #endif
  132. #elif JUCE_LINUX || JUCE_BSD
  133. #include "native/juce_linux_Fonts.cpp"
  134. #include "native/juce_linux_IconHelpers.cpp"
  135. #elif JUCE_ANDROID
  136. #include "native/juce_android_GraphicsContext.cpp"
  137. #include "native/juce_android_Fonts.cpp"
  138. #include "native/juce_android_IconHelpers.cpp"
  139. #endif
  140. //==============================================================================
  141. #if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
  142. #undef PIXEL_MASK
  143. #undef ZLIB_VERSION
  144. #undef Z_ASCII
  145. #undef ZEXTERN
  146. #undef ZEXPORT
  147. extern "C"
  148. {
  149. #include "native/freetype/FreeTypeAmalgam.c"
  150. }
  151. #endif