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.

175 lines
5.8KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-11 by Raw Material Software Ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the GNU General
  7. Public License (Version 2), as published by the Free Software Foundation.
  8. A copy of the license is included in the JUCE distribution, or can be found
  9. online at www.gnu.org/licenses.
  10. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ------------------------------------------------------------------------------
  14. To release a closed-source product which uses JUCE, commercial licenses are
  15. available: visit www.rawmaterialsoftware.com/juce for more information.
  16. ==============================================================================
  17. */
  18. #if defined (__JUCE_GRAPHICS_MODULE_JUCEHEADER__) && ! JUCE_AMALGAMATED_INCLUDE
  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. // Your project must contain an AppConfig.h file with your project-specific settings in it,
  27. // and your header search path must make it accessible to the module's files.
  28. #include "AppConfig.h"
  29. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  30. #include "juce_graphics.h"
  31. //==============================================================================
  32. #if JUCE_MAC
  33. #import <QuartzCore/QuartzCore.h>
  34. #elif JUCE_WINDOWS
  35. #if JUCE_MINGW && JUCE_USE_DIRECTWRITE
  36. #warning "DirectWrite not currently implemented with mingw..."
  37. #undef JUCE_USE_DIRECTWRITE
  38. #endif
  39. #if JUCE_USE_DIRECTWRITE
  40. /* If you hit a compile error trying to include these files, you may need to update
  41. your version of the Windows SDK to the latest one. The DirectWrite and Direct2D
  42. headers are in the version 7 SDKs.
  43. */
  44. #include <d2d1.h>
  45. #include <dwrite.h>
  46. #endif
  47. #if JUCE_MINGW
  48. #include <malloc.h>
  49. #endif
  50. #elif JUCE_IOS
  51. #import <QuartzCore/QuartzCore.h>
  52. #import <CoreText/CoreText.h>
  53. #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_3_2
  54. #error "JUCE no longer supports targets earlier than iOS 3.2"
  55. #endif
  56. #elif JUCE_LINUX
  57. #ifndef JUCE_USE_FREETYPE
  58. #define JUCE_USE_FREETYPE 1
  59. #endif
  60. #if ! JUCE_USE_FREETYPE_AMALGAMATED
  61. #include <ft2build.h>
  62. #include FT_FREETYPE_H
  63. #endif
  64. #endif
  65. #if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
  66. #include "native/freetype/FreeTypeAmalgam.h"
  67. #endif
  68. #undef SIZEOF
  69. #if (JUCE_MAC || JUCE_IOS) && USE_COREGRAPHICS_RENDERING && JUCE_USE_COREIMAGE_LOADER
  70. #define JUCE_USING_COREIMAGE_LOADER 1
  71. #else
  72. #define JUCE_USING_COREIMAGE_LOADER 0
  73. #endif
  74. //==============================================================================
  75. namespace juce
  76. {
  77. #include "colour/juce_Colour.cpp"
  78. #include "colour/juce_ColourGradient.cpp"
  79. #include "colour/juce_Colours.cpp"
  80. #include "colour/juce_FillType.cpp"
  81. #include "geometry/juce_AffineTransform.cpp"
  82. #include "geometry/juce_EdgeTable.cpp"
  83. #include "geometry/juce_Path.cpp"
  84. #include "geometry/juce_PathIterator.cpp"
  85. #include "geometry/juce_PathStrokeType.cpp"
  86. #include "geometry/juce_RectangleList.cpp"
  87. #include "placement/juce_Justification.cpp"
  88. #include "placement/juce_RectanglePlacement.cpp"
  89. #include "contexts/juce_GraphicsContext.cpp"
  90. #include "contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp"
  91. #include "contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp"
  92. #include "images/juce_Image.cpp"
  93. #include "images/juce_ImageCache.cpp"
  94. #include "images/juce_ImageConvolutionKernel.cpp"
  95. #include "images/juce_ImageFileFormat.cpp"
  96. #include "image_formats/juce_GIFLoader.cpp"
  97. #include "image_formats/juce_JPEGLoader.cpp"
  98. #include "image_formats/juce_PNGLoader.cpp"
  99. #include "fonts/juce_AttributedString.cpp"
  100. #include "fonts/juce_Typeface.cpp"
  101. #include "fonts/juce_CustomTypeface.cpp"
  102. #include "fonts/juce_Font.cpp"
  103. #include "fonts/juce_GlyphArrangement.cpp"
  104. #include "fonts/juce_TextLayout.cpp"
  105. #include "effects/juce_DropShadowEffect.cpp"
  106. #include "effects/juce_GlowEffect.cpp"
  107. #if JUCE_USE_FREETYPE
  108. #include "native/juce_freetype_Fonts.cpp"
  109. #endif
  110. //==============================================================================
  111. #if JUCE_MAC || JUCE_IOS
  112. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  113. #include "native/juce_mac_CoreGraphicsHelpers.h"
  114. #include "native/juce_mac_Fonts.mm"
  115. #include "native/juce_mac_CoreGraphicsContext.mm"
  116. #elif JUCE_WINDOWS
  117. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  118. #include "native/juce_win32_DirectWriteTypeface.cpp"
  119. #include "native/juce_win32_DirectWriteTypeLayout.cpp"
  120. #include "native/juce_win32_Fonts.cpp"
  121. #if JUCE_DIRECT2D
  122. #include "native/juce_win32_Direct2DGraphicsContext.cpp"
  123. #endif
  124. #elif JUCE_LINUX
  125. #include "native/juce_linux_Fonts.cpp"
  126. #elif JUCE_ANDROID
  127. #include "../juce_core/native/juce_android_JNIHelpers.h"
  128. #include "native/juce_android_GraphicsContext.cpp"
  129. #include "native/juce_android_Fonts.cpp"
  130. #endif
  131. }
  132. //==============================================================================
  133. #if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
  134. #undef PIXEL_MASK
  135. #undef ZLIB_VERSION
  136. #undef Z_ASCII
  137. #undef ZEXTERN
  138. #undef ZEXPORT
  139. extern "C"
  140. {
  141. #include "native/freetype/FreeTypeAmalgam.c"
  142. }
  143. #endif