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.

172 lines
5.6KB

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