The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

187 lines
6.0KB

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