OpenShot Audio Library | OpenShotAudio  0.6.0
juce_events.cpp
1 /*
2  ==============================================================================
3 
4  This file is part of the JUCE library.
5  Copyright (c) 2022 - Raw Material Software Limited
6 
7  JUCE is an open source library subject to commercial or open-source
8  licensing.
9 
10  The code included in this file is provided under the terms of the ISC license
11  http://www.isc.org/downloads/software-support-policy/isc-license. Permission
12  To use, copy, modify, and/or distribute this software for any purpose with or
13  without fee is hereby granted provided that the above copyright notice and
14  this permission notice appear in all copies.
15 
16  JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
17  EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
18  DISCLAIMED.
19 
20  ==============================================================================
21 */
22 
23 #ifdef JUCE_EVENTS_H_INCLUDED
24  /* When you add this cpp file to your project, you mustn't include it in a file where you've
25  already included any other headers - just put it inside a file on its own, possibly with your config
26  flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
27  header files that the compiler may be using.
28  */
29  #error "Incorrect use of JUCE cpp file"
30 #endif
31 
32 #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
33 #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
34 #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
35 #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
36 #define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
37 
38 #if JUCE_USE_WINRT_MIDI
39  #define JUCE_EVENTS_INCLUDE_WINRT_WRAPPER 1
40 #endif
41 
42 #include "juce_events.h"
43 
44 //==============================================================================
45 #if JUCE_MAC
46  #import <IOKit/IOKitLib.h>
47  #import <IOKit/IOCFPlugIn.h>
48  #import <IOKit/hid/IOHIDLib.h>
49  #import <IOKit/hid/IOHIDKeys.h>
50  #import <IOKit/pwr_mgt/IOPMLib.h>
51 
52 #elif JUCE_LINUX || JUCE_BSD
53  #include <unistd.h>
54 #endif
55 
56 //==============================================================================
57 #include "messages/juce_ApplicationBase.cpp"
58 #include "messages/juce_DeletedAtShutdown.cpp"
59 #include "messages/juce_MessageListener.cpp"
60 #include "messages/juce_MessageManager.cpp"
61 #include "broadcasters/juce_ActionBroadcaster.cpp"
62 #include "broadcasters/juce_AsyncUpdater.cpp"
63 #include "broadcasters/juce_LockingAsyncUpdater.cpp"
64 #include "broadcasters/juce_ChangeBroadcaster.cpp"
65 #include "timers/juce_MultiTimer.cpp"
66 #include "timers/juce_Timer.cpp"
67 #include "interprocess/juce_ChildProcessManager.cpp"
68 #include "interprocess/juce_InterprocessConnection.cpp"
69 #include "interprocess/juce_InterprocessConnectionServer.cpp"
70 #include "interprocess/juce_ConnectedChildProcess.cpp"
71 #include "interprocess/juce_NetworkServiceDiscovery.cpp"
72 #include "native/juce_ScopedLowPowerModeDisabler.cpp"
73 
74 //==============================================================================
75 #if JUCE_MAC || JUCE_IOS
76 
77  #include "native/juce_MessageQueue_mac.h"
78 
79  #if JUCE_MAC
80  #include "native/juce_MessageManager_mac.mm"
81  #else
82  #include "native/juce_MessageManager_ios.mm"
83  #endif
84 
85 #elif JUCE_WINDOWS
86  #include "native/juce_RunningInUnity.h"
87  #include "native/juce_Messaging_windows.cpp"
88  #if JUCE_EVENTS_INCLUDE_WINRT_WRAPPER
89  #include "native/juce_WinRTWrapper_windows.cpp"
90  #endif
91 
92 #elif JUCE_LINUX || JUCE_BSD
93  #include "native/juce_EventLoopInternal_linux.h"
94  #include "native/juce_Messaging_linux.cpp"
95 
96 #elif JUCE_ANDROID
97  #include "native/juce_Messaging_android.cpp"
98 
99 #endif