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.

178 lines
5.6KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2020 - 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 6 End-User License
  8. Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020).
  9. End User License Agreement: www.juce.com/juce-6-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. /* If you hit a compile error trying to include these files, you may need to update
  44. your version of the Windows SDK to the latest one. The DirectWrite and Direct2D
  45. headers are in the version 7 SDKs.
  46. */
  47. #include <d2d1.h>
  48. #include <dwrite.h>
  49. #endif
  50. #if JUCE_MINGW
  51. #include <malloc.h>
  52. #include <cstdio>
  53. #endif
  54. #include <unordered_map>
  55. JUCE_END_IGNORE_WARNINGS_MSVC
  56. #elif JUCE_IOS
  57. #import <QuartzCore/QuartzCore.h>
  58. #import <CoreText/CoreText.h>
  59. #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_3_2
  60. #error "JUCE no longer supports targets earlier than iOS 3.2"
  61. #endif
  62. #elif JUCE_LINUX
  63. #ifndef JUCE_USE_FREETYPE
  64. #define JUCE_USE_FREETYPE 1
  65. #endif
  66. #endif
  67. #if JUCE_USE_FREETYPE
  68. #if JUCE_USE_FREETYPE_AMALGAMATED
  69. #include "native/freetype/FreeTypeAmalgam.h"
  70. #else
  71. #include <ft2build.h>
  72. #include FT_FREETYPE_H
  73. #endif
  74. #endif
  75. #undef SIZEOF
  76. #if (JUCE_MAC || JUCE_IOS) && USE_COREGRAPHICS_RENDERING && JUCE_USE_COREIMAGE_LOADER
  77. #define JUCE_USING_COREIMAGE_LOADER 1
  78. #else
  79. #define JUCE_USING_COREIMAGE_LOADER 0
  80. #endif
  81. //==============================================================================
  82. #include "colour/juce_Colour.cpp"
  83. #include "colour/juce_ColourGradient.cpp"
  84. #include "colour/juce_Colours.cpp"
  85. #include "colour/juce_FillType.cpp"
  86. #include "geometry/juce_AffineTransform.cpp"
  87. #include "geometry/juce_EdgeTable.cpp"
  88. #include "geometry/juce_Path.cpp"
  89. #include "geometry/juce_PathIterator.cpp"
  90. #include "geometry/juce_PathStrokeType.cpp"
  91. #include "placement/juce_RectanglePlacement.cpp"
  92. #include "contexts/juce_GraphicsContext.cpp"
  93. #include "contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp"
  94. #include "contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp"
  95. #include "images/juce_Image.cpp"
  96. #include "images/juce_ImageCache.cpp"
  97. #include "images/juce_ImageConvolutionKernel.cpp"
  98. #include "images/juce_ImageFileFormat.cpp"
  99. #include "image_formats/juce_GIFLoader.cpp"
  100. #include "image_formats/juce_JPEGLoader.cpp"
  101. #include "image_formats/juce_PNGLoader.cpp"
  102. #include "fonts/juce_AttributedString.cpp"
  103. #include "fonts/juce_Typeface.cpp"
  104. #include "fonts/juce_CustomTypeface.cpp"
  105. #include "fonts/juce_Font.cpp"
  106. #include "fonts/juce_GlyphArrangement.cpp"
  107. #include "fonts/juce_TextLayout.cpp"
  108. #include "effects/juce_DropShadowEffect.cpp"
  109. #include "effects/juce_GlowEffect.cpp"
  110. #if JUCE_USE_FREETYPE
  111. #include "native/juce_freetype_Fonts.cpp"
  112. #endif
  113. //==============================================================================
  114. #if JUCE_MAC || JUCE_IOS
  115. #include "native/juce_mac_Fonts.mm"
  116. #include "native/juce_mac_CoreGraphicsContext.mm"
  117. #include "native/juce_mac_IconHelpers.cpp"
  118. #elif JUCE_WINDOWS
  119. #include "native/juce_win32_DirectWriteTypeface.cpp"
  120. #include "native/juce_win32_DirectWriteTypeLayout.cpp"
  121. #include "native/juce_win32_Fonts.cpp"
  122. #include "native/juce_win32_IconHelpers.cpp"
  123. #if JUCE_DIRECT2D
  124. #include "native/juce_win32_Direct2DGraphicsContext.cpp"
  125. #endif
  126. #elif JUCE_LINUX
  127. #include "native/juce_linux_Fonts.cpp"
  128. #include "native/juce_linux_IconHelpers.cpp"
  129. #elif JUCE_ANDROID
  130. #include "native/juce_android_GraphicsContext.cpp"
  131. #include "native/juce_android_Fonts.cpp"
  132. #include "native/juce_android_IconHelpers.cpp"
  133. #endif
  134. //==============================================================================
  135. #if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
  136. #undef PIXEL_MASK
  137. #undef ZLIB_VERSION
  138. #undef Z_ASCII
  139. #undef ZEXTERN
  140. #undef ZEXPORT
  141. extern "C"
  142. {
  143. #include "native/freetype/FreeTypeAmalgam.c"
  144. }
  145. #endif