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.

147 lines
4.7KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2015 - ROLI Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. #ifdef JUCE_GUI_EXTRA_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_COM_SMART_PTR 1
  28. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  29. #define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
  30. #define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
  31. #include "juce_gui_extra.h"
  32. //==============================================================================
  33. #if JUCE_MAC
  34. #import <WebKit/WebKit.h>
  35. #import <IOKit/IOKitLib.h>
  36. #import <IOKit/IOCFPlugIn.h>
  37. #import <IOKit/hid/IOHIDLib.h>
  38. #import <IOKit/hid/IOHIDKeys.h>
  39. #import <IOKit/pwr_mgt/IOPMLib.h>
  40. #elif JUCE_IOS
  41. //==============================================================================
  42. #elif JUCE_WINDOWS
  43. #include <windowsx.h>
  44. #include <vfw.h>
  45. #include <commdlg.h>
  46. #if JUCE_WEB_BROWSER
  47. #include <exdisp.h>
  48. #include <exdispid.h>
  49. #endif
  50. //==============================================================================
  51. #elif JUCE_LINUX
  52. #include <X11/Xlib.h>
  53. #include <X11/Xatom.h>
  54. #include <X11/Xutil.h>
  55. #undef SIZEOF
  56. #undef KeyPress
  57. #endif
  58. //==============================================================================
  59. namespace juce
  60. {
  61. #include "documents/juce_FileBasedDocument.cpp"
  62. #include "code_editor/juce_CodeDocument.cpp"
  63. #include "code_editor/juce_CodeEditorComponent.cpp"
  64. #include "code_editor/juce_CPlusPlusCodeTokeniser.cpp"
  65. #include "code_editor/juce_XMLCodeTokeniser.cpp"
  66. #include "code_editor/juce_LuaCodeTokeniser.cpp"
  67. #include "misc/juce_BubbleMessageComponent.cpp"
  68. #include "misc/juce_ColourSelector.cpp"
  69. #include "misc/juce_KeyMappingEditorComponent.cpp"
  70. #include "misc/juce_PreferencesPanel.cpp"
  71. #include "misc/juce_RecentlyOpenedFilesList.cpp"
  72. #include "misc/juce_SplashScreen.cpp"
  73. #include "misc/juce_SystemTrayIconComponent.cpp"
  74. #include "misc/juce_LiveConstantEditor.cpp"
  75. #include "misc/juce_AnimatedAppComponent.cpp"
  76. }
  77. using namespace juce;
  78. namespace juce
  79. {
  80. //==============================================================================
  81. #if JUCE_MAC || JUCE_IOS
  82. #if JUCE_MAC
  83. #include "native/juce_mac_NSViewComponent.mm"
  84. #include "native/juce_mac_AppleRemote.mm"
  85. #include "native/juce_mac_SystemTrayIcon.cpp"
  86. #endif
  87. #if JUCE_IOS
  88. #include "native/juce_ios_UIViewComponent.mm"
  89. #endif
  90. #if JUCE_WEB_BROWSER
  91. #include "native/juce_mac_WebBrowserComponent.mm"
  92. #endif
  93. //==============================================================================
  94. #elif JUCE_WINDOWS
  95. #include "native/juce_win32_ActiveXComponent.cpp"
  96. #if JUCE_WEB_BROWSER
  97. #include "native/juce_win32_WebBrowserComponent.cpp"
  98. #endif
  99. #include "native/juce_win32_SystemTrayIcon.cpp"
  100. //==============================================================================
  101. #elif JUCE_LINUX
  102. #if JUCE_WEB_BROWSER
  103. #include "native/juce_linux_WebBrowserComponent.cpp"
  104. #endif
  105. #include "native/juce_linux_SystemTrayIcon.cpp"
  106. //==============================================================================
  107. #elif JUCE_ANDROID
  108. #if JUCE_WEB_BROWSER
  109. #include "native/juce_android_WebBrowserComponent.cpp"
  110. #endif
  111. #endif
  112. #if JUCE_WEB_BROWSER
  113. bool WebBrowserComponent::pageAboutToLoad (const String&) { return true; }
  114. void WebBrowserComponent::pageFinishedLoading (const String&) {}
  115. void WebBrowserComponent::windowCloseRequest() {}
  116. void WebBrowserComponent::newWindowAttemptingToLoad (const String&) {}
  117. #endif
  118. }