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.

160 lines
5.3KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-9 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. #ifndef __JUCE_JUCEHEADER__
  19. #define __JUCE_JUCEHEADER__
  20. //==============================================================================
  21. /*
  22. This is the main JUCE header file that applications need to include.
  23. */
  24. //==============================================================================
  25. #define JUCE_PUBLIC_INCLUDES 1
  26. // (this includes things that need defining outside of the JUCE namespace)
  27. #include "src/core/juce_StandardHeader.h"
  28. BEGIN_JUCE_NAMESPACE
  29. #if JUCE_MSVC
  30. // this is set explicitly in case the app is using a different packing size.
  31. #pragma pack (push, 8)
  32. #pragma warning (push)
  33. #pragma warning (disable: 4786) // (old vc6 warning about long class names)
  34. #endif
  35. // this is where all the class header files get brought in..
  36. #include "src/juce_core_includes.h"
  37. // if you're compiling a command-line app, you might want to just include the core headers,
  38. // so you can set this macro before including juce.h
  39. #if ! JUCE_ONLY_BUILD_CORE_LIBRARY
  40. #include "src/juce_app_includes.h"
  41. #endif
  42. #if JUCE_MSVC
  43. #pragma warning (pop)
  44. #pragma pack (pop)
  45. #endif
  46. #if JUCE_DLL
  47. #undef JUCE_LEAK_DETECTOR(OwnerClass)
  48. #define JUCE_LEAK_DETECTOR(OwnerClass)
  49. #endif
  50. END_JUCE_NAMESPACE
  51. //==============================================================================
  52. #ifndef DONT_SET_USING_JUCE_NAMESPACE
  53. #ifdef JUCE_NAMESPACE
  54. // this will obviously save a lot of typing, but can be disabled by
  55. // defining DONT_SET_USING_JUCE_NAMESPACE, in case there are conflicts.
  56. using namespace JUCE_NAMESPACE;
  57. /* On the Mac, these symbols are defined in the Mac libraries, so
  58. these macros make it easier to reference them without writing out
  59. the namespace every time.
  60. If you run into difficulties where these macros interfere with the contents
  61. of 3rd party header files, you may need to use the juce_WithoutMacros.h file - see
  62. the comments in that file for more information.
  63. */
  64. #if (JUCE_MAC || JUCE_IOS) && ! JUCE_DONT_DEFINE_MACROS
  65. #define Component JUCE_NAMESPACE::Component
  66. #define MemoryBlock JUCE_NAMESPACE::MemoryBlock
  67. #define Point JUCE_NAMESPACE::Point
  68. #define Button JUCE_NAMESPACE::Button
  69. #endif
  70. /* "Rectangle" is defined in some of the newer windows header files, so this makes
  71. it easier to use the juce version explicitly.
  72. If you run into difficulties where this macro interferes with other 3rd party header
  73. files, you may need to use the juce_WithoutMacros.h file - see the comments in that
  74. file for more information.
  75. */
  76. #if JUCE_WINDOWS && ! JUCE_DONT_DEFINE_MACROS
  77. #define Rectangle JUCE_NAMESPACE::Rectangle
  78. #endif
  79. #endif
  80. #endif
  81. //==============================================================================
  82. /* Easy autolinking to the right JUCE libraries under win32.
  83. Note that this can be disabled by defining DONT_AUTOLINK_TO_JUCE_LIBRARY before
  84. including this header file.
  85. */
  86. #if JUCE_MSVC
  87. #ifndef DONT_AUTOLINK_TO_JUCE_LIBRARY
  88. /** If you want your application to link to Juce as a DLL instead of
  89. a static library (on win32), just define the JUCE_DLL macro before
  90. including juce.h
  91. */
  92. #ifdef JUCE_DLL
  93. #if JUCE_DEBUG
  94. #define AUTOLINKEDLIB "JUCE_debug.lib"
  95. #else
  96. #define AUTOLINKEDLIB "JUCE.lib"
  97. #endif
  98. #else
  99. #if JUCE_DEBUG
  100. #ifdef _WIN64
  101. #define AUTOLINKEDLIB "jucelib_static_x64_debug.lib"
  102. #else
  103. #define AUTOLINKEDLIB "jucelib_static_Win32_debug.lib"
  104. #endif
  105. #else
  106. #ifdef _WIN64
  107. #define AUTOLINKEDLIB "jucelib_static_x64.lib"
  108. #else
  109. #define AUTOLINKEDLIB "jucelib_static_Win32.lib"
  110. #endif
  111. #endif
  112. #endif
  113. #pragma comment(lib, AUTOLINKEDLIB)
  114. #if ! DONT_LIST_JUCE_AUTOLINKEDLIBS
  115. #pragma message("JUCE! Library to link to: " AUTOLINKEDLIB)
  116. #endif
  117. // Auto-link the other win32 libs that are needed by library calls..
  118. #if ! (defined (DONT_AUTOLINK_TO_WIN32_LIBRARIES) || defined (JUCE_DLL))
  119. #include "src/native/windows/juce_win32_AutoLinkLibraries.h"
  120. #endif
  121. #endif
  122. #endif
  123. #endif // __JUCE_JUCEHEADER__