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.

205 lines
6.5KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2020 - Raw Material Software Limited
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 6 End-User License
  8. Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020).
  9. End User License Agreement: www.juce.com/juce-6-licence
  10. Privacy Policy: www.juce.com/juce-privacy-policy
  11. Or: You may also use this code under the terms of the GPL v3 (see
  12. www.gnu.org/licenses).
  13. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  14. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  15. DISCLAIMED.
  16. ==============================================================================
  17. */
  18. #ifdef JUCE_GUI_EXTRA_H_INCLUDED
  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. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  27. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  28. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  29. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  30. #define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
  31. #define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
  32. #define JUCE_GUI_BASICS_INCLUDE_XHEADERS 1
  33. #if JUCE_USE_WIN_WEBVIEW2
  34. #define JUCE_EVENTS_INCLUDE_WINRT_WRAPPER 1
  35. #endif
  36. #ifndef JUCE_PUSH_NOTIFICATIONS
  37. #define JUCE_PUSH_NOTIFICATIONS 0
  38. #endif
  39. #include "juce_gui_extra.h"
  40. //==============================================================================
  41. #if JUCE_MAC
  42. #import <WebKit/WebKit.h>
  43. #import <IOKit/IOKitLib.h>
  44. #import <IOKit/IOCFPlugIn.h>
  45. #import <IOKit/hid/IOHIDLib.h>
  46. #import <IOKit/hid/IOHIDKeys.h>
  47. #import <IOKit/pwr_mgt/IOPMLib.h>
  48. #if JUCE_PUSH_NOTIFICATIONS
  49. #import <Foundation/NSUserNotification.h>
  50. #include "native/juce_mac_PushNotifications.cpp"
  51. #endif
  52. //==============================================================================
  53. #elif JUCE_IOS
  54. #import <WebKit/WebKit.h>
  55. #if JUCE_PUSH_NOTIFICATIONS
  56. #if defined (__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
  57. #import <UserNotifications/UserNotifications.h>
  58. #endif
  59. #include "native/juce_ios_PushNotifications.cpp"
  60. #endif
  61. //==============================================================================
  62. #elif JUCE_ANDROID
  63. #if JUCE_PUSH_NOTIFICATIONS
  64. #include "native/juce_android_PushNotifications.cpp"
  65. #endif
  66. //==============================================================================
  67. #elif JUCE_WINDOWS
  68. #include <windowsx.h>
  69. #include <vfw.h>
  70. #include <commdlg.h>
  71. #if JUCE_WEB_BROWSER
  72. #include <exdisp.h>
  73. #include <exdispid.h>
  74. #if JUCE_USE_WIN_WEBVIEW2
  75. #include <windows.foundation.h>
  76. #include <windows.foundation.collections.h>
  77. #pragma warning (push)
  78. #pragma warning (disable: 4265)
  79. #include <wrl.h>
  80. #include <wrl/wrappers/corewrappers.h>
  81. #pragma warning (pop)
  82. #include "WebView2.h"
  83. #pragma warning (push)
  84. #pragma warning (disable: 4458)
  85. #include "WebView2EnvironmentOptions.h"
  86. #pragma warning (pop)
  87. #endif
  88. #endif
  89. //==============================================================================
  90. #elif JUCE_LINUX && JUCE_WEB_BROWSER
  91. JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wzero-as-null-pointer-constant", "-Wparentheses")
  92. // If you're missing this header, you need to install the webkit2gtk-4.0 package
  93. #include <gtk/gtk.h>
  94. JUCE_END_IGNORE_WARNINGS_GCC_LIKE
  95. // If you're missing these headers, you need to install the webkit2gtk-4.0 package
  96. #include <gtk/gtkx.h>
  97. #include <glib-unix.h>
  98. #include <webkit2/webkit2.h>
  99. #endif
  100. //==============================================================================
  101. #include "documents/juce_FileBasedDocument.cpp"
  102. #include "code_editor/juce_CodeDocument.cpp"
  103. #include "code_editor/juce_CodeEditorComponent.cpp"
  104. #include "code_editor/juce_CPlusPlusCodeTokeniser.cpp"
  105. #include "code_editor/juce_XMLCodeTokeniser.cpp"
  106. #include "code_editor/juce_LuaCodeTokeniser.cpp"
  107. #include "misc/juce_BubbleMessageComponent.cpp"
  108. #include "misc/juce_ColourSelector.cpp"
  109. #include "misc/juce_KeyMappingEditorComponent.cpp"
  110. #include "misc/juce_PreferencesPanel.cpp"
  111. #include "misc/juce_PushNotifications.cpp"
  112. #include "misc/juce_RecentlyOpenedFilesList.cpp"
  113. #include "misc/juce_SplashScreen.cpp"
  114. #if !JUCE_MAC || MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_8
  115. #include "misc/juce_SystemTrayIconComponent.cpp"
  116. #endif
  117. #include "misc/juce_LiveConstantEditor.cpp"
  118. #include "misc/juce_AnimatedAppComponent.cpp"
  119. //==============================================================================
  120. #if JUCE_MAC || JUCE_IOS
  121. JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wundeclared-selector")
  122. #if JUCE_MAC
  123. #include "native/juce_mac_NSViewComponent.mm"
  124. #include "native/juce_mac_AppleRemote.mm"
  125. #if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_8
  126. #include "native/juce_mac_SystemTrayIcon.cpp"
  127. #endif
  128. #endif
  129. #if JUCE_IOS
  130. #include "native/juce_ios_UIViewComponent.mm"
  131. #endif
  132. #if JUCE_WEB_BROWSER
  133. #include "native/juce_mac_WebBrowserComponent.mm"
  134. #endif
  135. JUCE_END_IGNORE_WARNINGS_GCC_LIKE
  136. //==============================================================================
  137. #elif JUCE_WINDOWS
  138. #include "native/juce_win32_ActiveXComponent.cpp"
  139. #include "native/juce_win32_HWNDComponent.cpp"
  140. #if JUCE_WEB_BROWSER
  141. #include "native/juce_win32_WebBrowserComponent.cpp"
  142. #endif
  143. #include "native/juce_win32_SystemTrayIcon.cpp"
  144. //==============================================================================
  145. #elif JUCE_LINUX
  146. JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wzero-as-null-pointer-constant")
  147. #include "native/juce_linux_XEmbedComponent.cpp"
  148. #if JUCE_WEB_BROWSER
  149. #include "native/juce_linux_X11_WebBrowserComponent.cpp"
  150. #endif
  151. JUCE_END_IGNORE_WARNINGS_GCC_LIKE
  152. #include "native/juce_linux_X11_SystemTrayIcon.cpp"
  153. //==============================================================================
  154. #elif JUCE_ANDROID
  155. #include "native/juce_AndroidViewComponent.cpp"
  156. #if JUCE_WEB_BROWSER
  157. #include "native/juce_android_WebBrowserComponent.cpp"
  158. #endif
  159. #endif