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.

132 lines
6.5KB

  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. /*
  19. This file wraps together all the mac-specific code, so that
  20. we can include all the native headers just once, and compile all our
  21. platform-specific stuff in one big lump, keeping it out of the way of
  22. the rest of the codebase.
  23. */
  24. #include "juce_mac_NativeIncludes.h"
  25. BEGIN_JUCE_NAMESPACE
  26. //==============================================================================
  27. #include "../../../src/juce_core/basics/juce_Singleton.h"
  28. #include "../../../src/juce_core/basics/juce_Random.h"
  29. #include "../../../src/juce_core/basics/juce_SystemStats.h"
  30. #include "../../../src/juce_core/threads/juce_Process.h"
  31. #include "../../../src/juce_core/threads/juce_Thread.h"
  32. #include "../../../src/juce_core/threads/juce_InterProcessLock.h"
  33. #include "../../../src/juce_core/io/files/juce_FileInputStream.h"
  34. #include "../../../src/juce_core/io/files/juce_NamedPipe.h"
  35. #include "../../../src/juce_core/io/network/juce_URL.h"
  36. #include "../../../src/juce_core/misc/juce_PlatformUtilities.h"
  37. #include "../../../src/juce_core/text/juce_LocalisedStrings.h"
  38. #include "../../../src/juce_appframework/application/juce_DeletedAtShutdown.h"
  39. #include "../../../src/juce_appframework/application/juce_Application.h"
  40. #include "../../../src/juce_appframework/application/juce_SystemClipboard.h"
  41. #include "../../../src/juce_appframework/events/juce_MessageManager.h"
  42. #include "../../../src/juce_appframework/gui/graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.h"
  43. #include "../../../src/juce_appframework/gui/graphics/imaging/juce_ImageFileFormat.h"
  44. #include "../../../src/juce_appframework/gui/graphics/imaging/juce_CameraDevice.h"
  45. #include "../../../src/juce_appframework/gui/components/windows/juce_AlertWindow.h"
  46. #include "../../../src/juce_appframework/gui/components/juce_Desktop.h"
  47. #include "../../../src/juce_appframework/gui/components/menus/juce_MenuBarModel.h"
  48. #include "../../../src/juce_appframework/gui/components/special/juce_OpenGLComponent.h"
  49. #include "../../../src/juce_appframework/gui/components/special/juce_QuickTimeMovieComponent.h"
  50. #include "../../../src/juce_appframework/gui/components/mouse/juce_DragAndDropContainer.h"
  51. #include "../../../src/juce_appframework/gui/components/keyboard/juce_KeyPressMappingSet.h"
  52. #include "../../../src/juce_appframework/gui/components/special/juce_NSViewComponent.h"
  53. #include "../../../src/juce_appframework/gui/components/layout/juce_ComponentMovementWatcher.h"
  54. #include "../../../src/juce_appframework/gui/components/special/juce_WebBrowserComponent.h"
  55. #include "../../../src/juce_appframework/gui/components/filebrowser/juce_FileChooser.h"
  56. #include "../../../src/juce_appframework/audio/audio_file_formats/juce_AudioCDBurner.h"
  57. #include "../../../src/juce_appframework/audio/audio_file_formats/juce_AudioCDReader.h"
  58. #include "../../../src/juce_appframework/audio/audio_sources/juce_AudioSource.h"
  59. #include "../../../src/juce_appframework/audio/dsp/juce_AudioDataConverters.h"
  60. #include "../../../src/juce_appframework/audio/devices/juce_AudioIODeviceType.h"
  61. #include "../../../src/juce_appframework/audio/devices/juce_MidiOutput.h"
  62. #include "../../../src/juce_appframework/audio/devices/juce_MidiInput.h"
  63. #undef Point
  64. //==============================================================================
  65. /** This suffix is used for naming all Obj-C classes that are used inside juce.
  66. Because of the flat naming structure used by Obj-C, you can get horrible situations where
  67. two DLLs are loaded into a host, each of which uses classes with the same names, and these get
  68. cross-linked so that when you make a call to a class that you thought was private, it ends up
  69. actually calling into a similarly named class in the other module's address space.
  70. By changing this macro to a unique value, you ensure that all the obj-C classes in your app
  71. have unique names, and should avoid this problem.
  72. If you're using the amalgamated version, you can just set this macro to something unique before
  73. you include juce_amalgamated.cpp.
  74. */
  75. #ifndef JUCE_ObjCExtraSuffix
  76. #define JUCE_ObjCExtraSuffix 3
  77. #endif
  78. #define appendMacro1(a, b, c, d) a ## _ ## b ## _ ## c ## _ ## d
  79. #define appendMacro2(a, b, c, d) appendMacro1(a, b, c, d)
  80. #define MakeObjCClassName(rootName) appendMacro2 (rootName, JUCE_MAJOR_VERSION, JUCE_MINOR_VERSION, JUCE_ObjCExtraSuffix)
  81. //==============================================================================
  82. #define JUCE_INCLUDED_FILE 1
  83. // Now include the actual code files..
  84. #include "juce_mac_Strings.mm"
  85. #include "juce_mac_SystemStats.mm"
  86. #include "juce_mac_Network.mm"
  87. #include "juce_mac_NamedPipe.cpp"
  88. #include "juce_mac_Threads.mm"
  89. #include "juce_posix_SharedCode.h"
  90. #include "juce_mac_Files.mm"
  91. #include "juce_mac_MiscUtilities.mm"
  92. #include "juce_mac_Debugging.mm"
  93. #if ! JUCE_ONLY_BUILD_CORE_LIBRARY
  94. #include "juce_mac_NSViewComponentPeer.mm"
  95. #include "juce_mac_MouseCursor.mm"
  96. #include "juce_mac_NSViewComponent.mm"
  97. #include "juce_mac_AppleRemote.mm"
  98. #include "juce_mac_OpenGLComponent.mm"
  99. #include "juce_mac_MainMenu.mm"
  100. #include "juce_mac_FileChooser.mm"
  101. #include "juce_mac_QuickTimeMovieComponent.mm"
  102. #include "juce_mac_AudioCDBurner.mm"
  103. #include "juce_mac_Fonts.mm"
  104. #include "juce_mac_MessageManager.mm"
  105. #include "juce_mac_WebBrowserComponent.mm"
  106. #include "juce_mac_CoreAudio.cpp"
  107. #include "juce_mac_CoreMidi.cpp"
  108. #include "juce_mac_CameraDevice.mm"
  109. #endif
  110. END_JUCE_NAMESPACE