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.

161 lines
5.1KB

  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. By using JUCE, you agree to the terms of both the JUCE 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  19. #ifdef JUCE_GUI_EXTRA_H_INCLUDED
  20. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  21. already included any other headers - just put it inside a file on its own, possibly with your config
  22. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  23. header files that the compiler may be using.
  24. */
  25. #error "Incorrect use of JUCE cpp file"
  26. #endif
  27. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  28. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 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. #include "juce_gui_extra.h"
  33. //==============================================================================
  34. #if JUCE_MAC
  35. #import <WebKit/WebKit.h>
  36. #import <IOKit/IOKitLib.h>
  37. #import <IOKit/IOCFPlugIn.h>
  38. #import <IOKit/hid/IOHIDLib.h>
  39. #import <IOKit/hid/IOHIDKeys.h>
  40. #import <IOKit/pwr_mgt/IOPMLib.h>
  41. #elif JUCE_IOS
  42. //==============================================================================
  43. #elif JUCE_WINDOWS
  44. #include <windowsx.h>
  45. #include <vfw.h>
  46. #include <commdlg.h>
  47. #if JUCE_WEB_BROWSER
  48. #include <exdisp.h>
  49. #include <exdispid.h>
  50. #endif
  51. //==============================================================================
  52. #elif JUCE_LINUX
  53. #include <X11/Xlib.h>
  54. #include <X11/Xatom.h>
  55. #include <X11/Xutil.h>
  56. #undef SIZEOF
  57. #undef KeyPress
  58. #if JUCE_WEB_BROWSER
  59. #include <unistd.h>
  60. #include <fcntl.h>
  61. #include <sys/wait.h>
  62. #include <gtk/gtk.h>
  63. #include <gtk/gtkx.h>
  64. #include <glib-unix.h>
  65. #include <webkit2/webkit2.h>
  66. #endif
  67. #endif
  68. //==============================================================================
  69. #include "documents/juce_FileBasedDocument.cpp"
  70. #include "code_editor/juce_CodeDocument.cpp"
  71. #include "code_editor/juce_CodeEditorComponent.cpp"
  72. #include "code_editor/juce_CPlusPlusCodeTokeniser.cpp"
  73. #include "code_editor/juce_XMLCodeTokeniser.cpp"
  74. #include "code_editor/juce_LuaCodeTokeniser.cpp"
  75. #include "misc/juce_BubbleMessageComponent.cpp"
  76. #include "misc/juce_ColourSelector.cpp"
  77. #include "misc/juce_KeyMappingEditorComponent.cpp"
  78. #include "misc/juce_PreferencesPanel.cpp"
  79. #include "misc/juce_RecentlyOpenedFilesList.cpp"
  80. #include "misc/juce_SplashScreen.cpp"
  81. #include "misc/juce_SystemTrayIconComponent.cpp"
  82. #include "misc/juce_LiveConstantEditor.cpp"
  83. #include "misc/juce_AnimatedAppComponent.cpp"
  84. //==============================================================================
  85. #if JUCE_MAC || JUCE_IOS
  86. #if JUCE_CLANG
  87. #pragma clang diagnostic push
  88. #pragma clang diagnostic ignored "-Wundeclared-selector"
  89. #endif
  90. #if JUCE_MAC
  91. #include "native/juce_mac_NSViewComponent.mm"
  92. #include "native/juce_mac_AppleRemote.mm"
  93. #include "native/juce_mac_SystemTrayIcon.cpp"
  94. #endif
  95. #if JUCE_IOS
  96. #include "native/juce_ios_UIViewComponent.mm"
  97. #endif
  98. #if JUCE_WEB_BROWSER
  99. #include "native/juce_mac_WebBrowserComponent.mm"
  100. #endif
  101. #if JUCE_CLANG
  102. #pragma clang diagnostic pop
  103. #endif
  104. //==============================================================================
  105. #elif JUCE_WINDOWS
  106. #include "native/juce_win32_ActiveXComponent.cpp"
  107. #if JUCE_WEB_BROWSER
  108. #include "native/juce_win32_WebBrowserComponent.cpp"
  109. #endif
  110. #include "native/juce_win32_SystemTrayIcon.cpp"
  111. //==============================================================================
  112. #elif JUCE_LINUX
  113. #include "native/juce_linux_XEmbedComponent.cpp"
  114. #if JUCE_WEB_BROWSER
  115. #include "native/juce_linux_X11_WebBrowserComponent.cpp"
  116. #endif
  117. #include "native/juce_linux_X11_SystemTrayIcon.cpp"
  118. //==============================================================================
  119. #elif JUCE_ANDROID
  120. #if JUCE_WEB_BROWSER
  121. #include "native/juce_android_WebBrowserComponent.cpp"
  122. #endif
  123. #endif
  124. #if JUCE_WEB_BROWSER
  125. namespace juce
  126. {
  127. bool WebBrowserComponent::pageAboutToLoad (const String&) { return true; }
  128. void WebBrowserComponent::pageFinishedLoading (const String&) {}
  129. bool WebBrowserComponent::pageLoadHadNetworkError (const String&) { return true; }
  130. void WebBrowserComponent::windowCloseRequest() {}
  131. void WebBrowserComponent::newWindowAttemptingToLoad (const String&) {}
  132. }
  133. #endif