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.

juce_events.cpp 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. The code included in this file is provided under the terms of the ISC license
  8. http://www.isc.org/downloads/software-support-policy/isc-license. Permission
  9. To use, copy, modify, and/or distribute this software for any purpose with or
  10. without fee is hereby granted provided that the above copyright notice and
  11. this permission notice appear in all copies.
  12. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  13. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  14. DISCLAIMED.
  15. ==============================================================================
  16. */
  17. #ifdef JUCE_EVENTS_H_INCLUDED
  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. #include "AppConfig.h"
  26. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  27. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  28. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  29. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  30. #define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
  31. #if JUCE_USE_WINRT_MIDI
  32. #define JUCE_EVENTS_INCLUDE_WINRT_WRAPPER 1
  33. #endif
  34. #include "juce_events.h"
  35. //==============================================================================
  36. #if JUCE_MAC
  37. #import <IOKit/IOKitLib.h>
  38. #import <IOKit/IOCFPlugIn.h>
  39. #import <IOKit/hid/IOHIDLib.h>
  40. #import <IOKit/hid/IOHIDKeys.h>
  41. #import <IOKit/pwr_mgt/IOPMLib.h>
  42. #elif JUCE_LINUX
  43. #include <unistd.h>
  44. #endif
  45. //==============================================================================
  46. #include "messages/juce_ApplicationBase.cpp"
  47. #include "messages/juce_DeletedAtShutdown.cpp"
  48. #include "messages/juce_MessageListener.cpp"
  49. #include "messages/juce_MessageManager.cpp"
  50. #include "broadcasters/juce_ActionBroadcaster.cpp"
  51. #include "broadcasters/juce_AsyncUpdater.cpp"
  52. #include "broadcasters/juce_ChangeBroadcaster.cpp"
  53. #include "timers/juce_MultiTimer.cpp"
  54. #include "timers/juce_Timer.cpp"
  55. #include "interprocess/juce_InterprocessConnection.cpp"
  56. #include "interprocess/juce_InterprocessConnectionServer.cpp"
  57. #include "interprocess/juce_ConnectedChildProcess.cpp"
  58. //==============================================================================
  59. #if JUCE_MAC || JUCE_IOS
  60. #include "native/juce_osx_MessageQueue.h"
  61. #if JUCE_CLANG
  62. #pragma clang diagnostic push
  63. #pragma clang diagnostic ignored "-Wundeclared-selector"
  64. #endif
  65. #if JUCE_MAC
  66. #include "native/juce_mac_MessageManager.mm"
  67. #else
  68. #include "native/juce_ios_MessageManager.mm"
  69. #endif
  70. #if JUCE_CLANG
  71. #pragma clang diagnostic pop
  72. #endif
  73. #elif JUCE_WINDOWS
  74. #include "native/juce_win32_Messaging.cpp"
  75. #if JUCE_EVENTS_INCLUDE_WINRT_WRAPPER
  76. #include "native/juce_win32_WinRTWrapper.cpp"
  77. #endif
  78. #elif JUCE_LINUX
  79. #include "native/juce_linux_Messaging.cpp"
  80. #elif JUCE_ANDROID
  81. #include "native/juce_android_Messaging.cpp"
  82. #endif