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.

182 lines
5.6KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  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 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  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. #ifdef JUCE_MSVC
  39. #pragma warning (push)
  40. #pragma warning (disable : 4458)
  41. #endif
  42. #if JUCE_MINGW && JUCE_USE_DIRECTWRITE
  43. #warning "DirectWrite not currently implemented with mingw..."
  44. #undef JUCE_USE_DIRECTWRITE
  45. #endif
  46. #if JUCE_USE_DIRECTWRITE || JUCE_DIRECT2D
  47. /* If you hit a compile error trying to include these files, you may need to update
  48. your version of the Windows SDK to the latest one. The DirectWrite and Direct2D
  49. headers are in the version 7 SDKs.
  50. */
  51. #include <d2d1.h>
  52. #include <dwrite.h>
  53. #endif
  54. #if JUCE_MINGW
  55. #include <malloc.h>
  56. #include <cstdio>
  57. #endif
  58. #ifdef JUCE_MSVC
  59. #pragma warning (pop)
  60. #endif
  61. #elif JUCE_IOS
  62. #import <QuartzCore/QuartzCore.h>
  63. #import <CoreText/CoreText.h>
  64. #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_3_2
  65. #error "JUCE no longer supports targets earlier than iOS 3.2"
  66. #endif
  67. #elif JUCE_LINUX
  68. #ifndef JUCE_USE_FREETYPE
  69. #define JUCE_USE_FREETYPE 1
  70. #endif
  71. #endif
  72. #if JUCE_USE_FREETYPE
  73. #if JUCE_USE_FREETYPE_AMALGAMATED
  74. #include "native/freetype/FreeTypeAmalgam.h"
  75. #else
  76. #include <ft2build.h>
  77. #include FT_FREETYPE_H
  78. #endif
  79. #endif
  80. #undef SIZEOF
  81. #if (JUCE_MAC || JUCE_IOS) && USE_COREGRAPHICS_RENDERING && JUCE_USE_COREIMAGE_LOADER
  82. #define JUCE_USING_COREIMAGE_LOADER 1
  83. #else
  84. #define JUCE_USING_COREIMAGE_LOADER 0
  85. #endif
  86. //==============================================================================
  87. #include "colour/juce_Colour.cpp"
  88. #include "colour/juce_ColourGradient.cpp"
  89. #include "colour/juce_Colours.cpp"
  90. #include "colour/juce_FillType.cpp"
  91. #include "geometry/juce_AffineTransform.cpp"
  92. #include "geometry/juce_EdgeTable.cpp"
  93. #include "geometry/juce_Path.cpp"
  94. #include "geometry/juce_PathIterator.cpp"
  95. #include "geometry/juce_PathStrokeType.cpp"
  96. #include "placement/juce_RectanglePlacement.cpp"
  97. #include "contexts/juce_GraphicsContext.cpp"
  98. #include "contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp"
  99. #include "contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp"
  100. #include "images/juce_Image.cpp"
  101. #include "images/juce_ImageCache.cpp"
  102. #include "images/juce_ImageConvolutionKernel.cpp"
  103. #include "images/juce_ImageFileFormat.cpp"
  104. #include "image_formats/juce_GIFLoader.cpp"
  105. #include "image_formats/juce_JPEGLoader.cpp"
  106. #include "image_formats/juce_PNGLoader.cpp"
  107. #include "fonts/juce_AttributedString.cpp"
  108. #include "fonts/juce_Typeface.cpp"
  109. #include "fonts/juce_CustomTypeface.cpp"
  110. #include "fonts/juce_Font.cpp"
  111. #include "fonts/juce_GlyphArrangement.cpp"
  112. #include "fonts/juce_TextLayout.cpp"
  113. #include "effects/juce_DropShadowEffect.cpp"
  114. #include "effects/juce_GlowEffect.cpp"
  115. #if JUCE_USE_FREETYPE
  116. #include "native/juce_freetype_Fonts.cpp"
  117. #endif
  118. //==============================================================================
  119. #if JUCE_MAC || JUCE_IOS
  120. #include "native/juce_mac_Fonts.mm"
  121. #include "native/juce_mac_CoreGraphicsContext.mm"
  122. #include "native/juce_mac_IconHelpers.cpp"
  123. #elif JUCE_WINDOWS
  124. #include "native/juce_win32_DirectWriteTypeface.cpp"
  125. #include "native/juce_win32_DirectWriteTypeLayout.cpp"
  126. #include "native/juce_win32_Fonts.cpp"
  127. #include "native/juce_win32_IconHelpers.cpp"
  128. #if JUCE_DIRECT2D
  129. #include "native/juce_win32_Direct2DGraphicsContext.cpp"
  130. #endif
  131. #elif JUCE_LINUX
  132. #include "native/juce_linux_Fonts.cpp"
  133. #include "native/juce_linux_IconHelpers.cpp"
  134. #elif JUCE_ANDROID
  135. #include "native/juce_android_GraphicsContext.cpp"
  136. #include "native/juce_android_Fonts.cpp"
  137. #include "native/juce_android_IconHelpers.cpp"
  138. #endif
  139. //==============================================================================
  140. #if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
  141. #undef PIXEL_MASK
  142. #undef ZLIB_VERSION
  143. #undef Z_ASCII
  144. #undef ZEXTERN
  145. #undef ZEXPORT
  146. extern "C"
  147. {
  148. #include "native/freetype/FreeTypeAmalgam.c"
  149. }
  150. #endif