mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Removed some cross-module header inclusions, replacing them with macros to optionally make native helper classes public
This commit is contained in:
parent
567e0d5fb7
commit
08b853ee35
18 changed files with 80 additions and 59 deletions
|
|
@ -9,7 +9,7 @@
|
|||
<uses-feature android:glEsVersion="0x00020000" android:required="true"/>
|
||||
<application android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar" android:icon="@drawable/icon"
|
||||
android:hardwareAccelerated="false">
|
||||
<activity android:name="JuceDemo" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"
|
||||
<activity android:name="JuceDemo" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:screenOrientation="unspecified">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,12 @@
|
|||
#error "Incorrect use of JUCE cpp file"
|
||||
#endif
|
||||
|
||||
#include "../juce_core/native/juce_BasicNativeHeaders.h"
|
||||
#define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
|
||||
#define JUCE_CORE_INCLUDE_JNI_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
||||
#define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
|
||||
|
||||
#include "juce_audio_devices.h"
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -141,7 +146,6 @@ namespace juce
|
|||
|
||||
//==============================================================================
|
||||
#if JUCE_MAC
|
||||
#include "../juce_core/native/juce_osx_ObjCHelpers.h"
|
||||
#include "native/juce_mac_CoreAudio.cpp"
|
||||
#include "native/juce_mac_CoreMidi.cpp"
|
||||
|
||||
|
|
@ -160,8 +164,6 @@ namespace juce
|
|||
|
||||
//==============================================================================
|
||||
#elif JUCE_WINDOWS
|
||||
#include "../juce_core/native/juce_win32_ComSmartPtr.h"
|
||||
#include "../juce_events/native/juce_win32_HiddenMessageWindow.h"
|
||||
|
||||
#if JUCE_WASAPI
|
||||
#include "native/juce_win32_WASAPI.cpp"
|
||||
|
|
@ -203,7 +205,6 @@ namespace juce
|
|||
|
||||
//==============================================================================
|
||||
#elif JUCE_ANDROID
|
||||
#include "../juce_core/native/juce_android_JNIHelpers.h"
|
||||
#include "native/juce_android_Audio.cpp"
|
||||
#include "native/juce_android_Midi.cpp"
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,10 @@
|
|||
#error "Incorrect use of JUCE cpp file"
|
||||
#endif
|
||||
|
||||
#include "../juce_core/native/juce_BasicNativeHeaders.h"
|
||||
#define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
|
||||
#define JUCE_CORE_INCLUDE_JNI_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
||||
|
||||
#include "juce_audio_formats.h"
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -81,14 +84,9 @@ namespace juce
|
|||
{
|
||||
|
||||
#if JUCE_ANDROID
|
||||
#include "../juce_core/native/juce_android_JNIHelpers.h"
|
||||
#undef JUCE_QUICKTIME
|
||||
#endif
|
||||
|
||||
#if JUCE_WINDOWS
|
||||
#include "../juce_core/native/juce_win32_ComSmartPtr.h"
|
||||
#endif
|
||||
|
||||
#include "format/juce_AudioFormat.cpp"
|
||||
#include "format/juce_AudioFormatManager.cpp"
|
||||
#include "format/juce_AudioFormatReader.cpp"
|
||||
|
|
|
|||
|
|
@ -71,12 +71,12 @@
|
|||
#endif
|
||||
|
||||
#define JUCE_MAC_WINDOW_VISIBITY_BODGE 1
|
||||
#define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
|
||||
|
||||
#include "../utility/juce_IncludeModuleHeaders.h"
|
||||
#include "../utility/juce_FakeMouseMoveGenerator.h"
|
||||
#include "../utility/juce_CarbonVisibility.h"
|
||||
#include "../utility/juce_PluginBusUtilities.h"
|
||||
#include "../../juce_core/native/juce_osx_ObjCHelpers.h"
|
||||
|
||||
//==============================================================================
|
||||
static Array<void*> activePlugins, activeUIs;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@
|
|||
#error "Incorrect use of JUCE cpp file"
|
||||
#endif
|
||||
|
||||
#include "../juce_core/native/juce_BasicNativeHeaders.h"
|
||||
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
||||
|
||||
#include "juce_audio_processors.h"
|
||||
#include "../juce_gui_extra/juce_gui_extra.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,9 @@
|
|||
#error "Incorrect use of JUCE cpp file"
|
||||
#endif
|
||||
|
||||
#include "../juce_core/native/juce_BasicNativeHeaders.h"
|
||||
#define JUCE_CORE_INCLUDE_JNI_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
||||
|
||||
#include "juce_audio_utils.h"
|
||||
|
||||
namespace juce
|
||||
|
|
@ -54,7 +56,6 @@ namespace juce
|
|||
#elif JUCE_IOS
|
||||
#include "native/juce_ios_BluetoothMidiDevicePairingDialogue.mm"
|
||||
#elif JUCE_ANDROID
|
||||
#include "../juce_core/native/juce_android_JNIHelpers.h"
|
||||
#include "native/juce_android_BluetoothMidiDevicePairingDialogue.cpp"
|
||||
#elif JUCE_LINUX
|
||||
#include "native/juce_linux_BluetoothMidiDevicePairingDialogue.cpp"
|
||||
|
|
|
|||
|
|
@ -35,7 +35,10 @@
|
|||
#error "Incorrect use of JUCE cpp file"
|
||||
#endif
|
||||
|
||||
#include "native/juce_BasicNativeHeaders.h"
|
||||
#define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
|
||||
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
||||
|
||||
#include "juce_core.h"
|
||||
|
||||
#include <locale>
|
||||
|
|
@ -180,10 +183,6 @@ namespace juce
|
|||
#include "files/juce_WildcardFileFilter.cpp"
|
||||
|
||||
//==============================================================================
|
||||
#if JUCE_MAC || JUCE_IOS
|
||||
#include "native/juce_osx_ObjCHelpers.h"
|
||||
#endif
|
||||
|
||||
#if JUCE_ANDROID
|
||||
#include "native/juce_android_JNIHelpers.h"
|
||||
#endif
|
||||
|
|
@ -203,7 +202,6 @@ namespace juce
|
|||
|
||||
//==============================================================================
|
||||
#elif JUCE_WINDOWS
|
||||
#include "native/juce_win32_ComSmartPtr.h"
|
||||
#include "native/juce_win32_Files.cpp"
|
||||
#include "native/juce_win32_Network.cpp"
|
||||
#include "native/juce_win32_Registry.cpp"
|
||||
|
|
|
|||
|
|
@ -133,6 +133,10 @@
|
|||
//=============================================================================
|
||||
//=============================================================================
|
||||
|
||||
#if JUCE_CORE_INCLUDE_NATIVE_HEADERS
|
||||
#include "native/juce_BasicNativeHeaders.h"
|
||||
#endif
|
||||
|
||||
#include "system/juce_StandardHeader.h"
|
||||
|
||||
namespace juce
|
||||
|
|
@ -269,6 +273,19 @@ extern JUCE_API void JUCE_CALLTYPE logAssertion (const char* file, int line) noe
|
|||
#include "containers/juce_PropertySet.h"
|
||||
#include "memory/juce_SharedResourcePointer.h"
|
||||
|
||||
#if JUCE_CORE_INCLUDE_OBJC_HELPERS && (JUCE_MAC || JUCE_IOS)
|
||||
#include "native/juce_osx_ObjCHelpers.h"
|
||||
#endif
|
||||
|
||||
#if JUCE_CORE_INCLUDE_COM_SMART_PTR && JUCE_WINDOWS
|
||||
#include "native/juce_win32_ComSmartPtr.h"
|
||||
#endif
|
||||
|
||||
#if JUCE_CORE_INCLUDE_JNI_HELPERS && JUCE_ANDROID
|
||||
#include "native/juce_android_JNIHelpers.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef DOXYGEN
|
||||
/*
|
||||
As the very long class names here try to explain, the purpose of this code is to cause
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
#ifndef JUCE_BASICNATIVEHEADERS_H_INCLUDED
|
||||
#define JUCE_BASICNATIVEHEADERS_H_INCLUDED
|
||||
|
||||
#include "../system/juce_TargetPlatform.h"
|
||||
#undef T
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -31,7 +31,11 @@
|
|||
#error "Incorrect use of JUCE cpp file"
|
||||
#endif
|
||||
|
||||
#include "../juce_core/native/juce_BasicNativeHeaders.h"
|
||||
#define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_JNI_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
||||
#define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
|
||||
|
||||
#include "juce_events.h"
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -69,17 +73,14 @@ namespace juce
|
|||
|
||||
//==============================================================================
|
||||
#if JUCE_MAC
|
||||
#include "../juce_core/native/juce_osx_ObjCHelpers.h"
|
||||
#include "native/juce_osx_MessageQueue.h"
|
||||
#include "native/juce_mac_MessageManager.mm"
|
||||
|
||||
#elif JUCE_IOS
|
||||
#include "../juce_core/native/juce_osx_ObjCHelpers.h"
|
||||
#include "native/juce_osx_MessageQueue.h"
|
||||
#include "native/juce_ios_MessageManager.mm"
|
||||
|
||||
#elif JUCE_WINDOWS
|
||||
#include "native/juce_win32_HiddenMessageWindow.h"
|
||||
#include "native/juce_win32_Messaging.cpp"
|
||||
|
||||
#elif JUCE_LINUX
|
||||
|
|
@ -87,7 +88,6 @@ namespace juce
|
|||
#include "native/juce_linux_Messaging.cpp"
|
||||
|
||||
#elif JUCE_ANDROID
|
||||
#include "../juce_core/native/juce_android_JNIHelpers.h"
|
||||
#include "native/juce_android_Messaging.cpp"
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -52,6 +52,10 @@ namespace juce
|
|||
#include "interprocess/juce_ConnectedChildProcess.h"
|
||||
#include "native/juce_ScopedXLock.h"
|
||||
|
||||
#if JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW && JUCE_WINDOWS
|
||||
#include "native/juce_win32_HiddenMessageWindow.h"
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endif // JUCE_EVENTS_H_INCLUDED
|
||||
|
|
|
|||
|
|
@ -31,7 +31,12 @@
|
|||
#error "Incorrect use of JUCE cpp file"
|
||||
#endif
|
||||
|
||||
#include "../juce_core/native/juce_BasicNativeHeaders.h"
|
||||
#define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
|
||||
#define JUCE_CORE_INCLUDE_JNI_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
||||
#define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
|
||||
|
||||
#include "juce_graphics.h"
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -127,13 +132,10 @@ namespace juce
|
|||
|
||||
//==============================================================================
|
||||
#if JUCE_MAC || JUCE_IOS
|
||||
#include "../juce_core/native/juce_osx_ObjCHelpers.h"
|
||||
#include "native/juce_mac_CoreGraphicsHelpers.h"
|
||||
#include "native/juce_mac_Fonts.mm"
|
||||
#include "native/juce_mac_CoreGraphicsContext.mm"
|
||||
|
||||
#elif JUCE_WINDOWS
|
||||
#include "../juce_core/native/juce_win32_ComSmartPtr.h"
|
||||
#include "native/juce_win32_DirectWriteTypeface.cpp"
|
||||
#include "native/juce_win32_DirectWriteTypeLayout.cpp"
|
||||
#include "native/juce_win32_Fonts.cpp"
|
||||
|
|
@ -145,7 +147,6 @@ namespace juce
|
|||
#include "native/juce_linux_Fonts.cpp"
|
||||
|
||||
#elif JUCE_ANDROID
|
||||
#include "../juce_core/native/juce_android_JNIHelpers.h"
|
||||
#include "native/juce_android_GraphicsContext.cpp"
|
||||
#include "native/juce_android_Fonts.cpp"
|
||||
|
||||
|
|
|
|||
|
|
@ -108,6 +108,11 @@ class LowLevelGraphicsContext;
|
|||
#include "effects/juce_DropShadowEffect.h"
|
||||
#include "effects/juce_GlowEffect.h"
|
||||
|
||||
#if JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS && JUCE_MAC
|
||||
#include "native/juce_mac_CoreGraphicsHelpers.h"
|
||||
#include "native/juce_mac_CoreGraphicsContext.h"
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endif // JUCE_GRAPHICS_H_INCLUDED
|
||||
|
|
|
|||
|
|
@ -33,7 +33,13 @@
|
|||
|
||||
#define NS_FORMAT_FUNCTION(F,A) // To avoid spurious warnings from GCC
|
||||
|
||||
#include "../juce_core/native/juce_BasicNativeHeaders.h"
|
||||
#define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
|
||||
#define JUCE_CORE_INCLUDE_JNI_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
||||
#define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
|
||||
#define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
|
||||
|
||||
#include "juce_gui_basics.h"
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -256,9 +262,6 @@ extern bool juce_areThereAnyAlwaysOnTopWindows();
|
|||
#endif
|
||||
|
||||
#if JUCE_MAC || JUCE_IOS
|
||||
#include "../juce_core/native/juce_osx_ObjCHelpers.h"
|
||||
#include "../juce_graphics/native/juce_mac_CoreGraphicsHelpers.h"
|
||||
#include "../juce_graphics/native/juce_mac_CoreGraphicsContext.h"
|
||||
|
||||
#if JUCE_IOS
|
||||
#include "native/juce_ios_UIViewComponentPeer.mm"
|
||||
|
|
@ -273,8 +276,6 @@ extern bool juce_areThereAnyAlwaysOnTopWindows();
|
|||
#include "native/juce_mac_FileChooser.mm"
|
||||
|
||||
#elif JUCE_WINDOWS
|
||||
#include "../juce_core/native/juce_win32_ComSmartPtr.h"
|
||||
#include "../juce_events/native/juce_win32_HiddenMessageWindow.h"
|
||||
#include "native/juce_win32_Windowing.cpp"
|
||||
#include "native/juce_win32_DragAndDrop.cpp"
|
||||
#include "native/juce_win32_FileChooser.cpp"
|
||||
|
|
@ -285,7 +286,6 @@ extern bool juce_areThereAnyAlwaysOnTopWindows();
|
|||
#include "native/juce_linux_FileChooser.cpp"
|
||||
|
||||
#elif JUCE_ANDROID
|
||||
#include "../juce_core/native/juce_android_JNIHelpers.h"
|
||||
#include "native/juce_android_Windowing.cpp"
|
||||
#include "native/juce_android_FileChooser.cpp"
|
||||
|
||||
|
|
|
|||
|
|
@ -792,7 +792,6 @@ public:
|
|||
#if USE_COREGRAPHICS_RENDERING
|
||||
if (usingCoreGraphics)
|
||||
{
|
||||
|
||||
CoreGraphicsContext context (cg, (float) [view frame].size.height, displayScale);
|
||||
|
||||
insideDrawRect = true;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,12 @@
|
|||
#error "Incorrect use of JUCE cpp file"
|
||||
#endif
|
||||
|
||||
#include "../juce_core/native/juce_BasicNativeHeaders.h"
|
||||
#define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
|
||||
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
||||
#define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
|
||||
#define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
|
||||
|
||||
#include "juce_gui_extra.h"
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -69,10 +74,6 @@
|
|||
namespace juce
|
||||
{
|
||||
|
||||
#if JUCE_MAC || JUCE_IOS
|
||||
#include "../juce_core/native/juce_osx_ObjCHelpers.h"
|
||||
#endif
|
||||
|
||||
#include "documents/juce_FileBasedDocument.cpp"
|
||||
#include "code_editor/juce_CodeDocument.cpp"
|
||||
#include "code_editor/juce_CodeEditorComponent.cpp"
|
||||
|
|
@ -98,9 +99,6 @@ namespace juce
|
|||
|
||||
//==============================================================================
|
||||
#if JUCE_MAC || JUCE_IOS
|
||||
#include "../juce_core/native/juce_osx_ObjCHelpers.h"
|
||||
#include "../juce_graphics/native/juce_mac_CoreGraphicsHelpers.h"
|
||||
|
||||
#if JUCE_MAC
|
||||
#include "native/juce_mac_NSViewComponent.mm"
|
||||
#include "native/juce_mac_AppleRemote.mm"
|
||||
|
|
@ -117,8 +115,6 @@ namespace juce
|
|||
|
||||
//==============================================================================
|
||||
#elif JUCE_WINDOWS
|
||||
#include "../juce_core/native/juce_win32_ComSmartPtr.h"
|
||||
#include "../juce_events/native/juce_win32_HiddenMessageWindow.h"
|
||||
#include "native/juce_win32_ActiveXComponent.cpp"
|
||||
#if JUCE_WEB_BROWSER
|
||||
#include "native/juce_win32_WebBrowserComponent.cpp"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,11 @@
|
|||
#error "Incorrect use of JUCE cpp file"
|
||||
#endif
|
||||
|
||||
#include "../juce_core/native/juce_BasicNativeHeaders.h"
|
||||
#define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_JNI_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
||||
#define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
|
||||
|
||||
#include "juce_opengl.h"
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -193,8 +197,6 @@ private:
|
|||
|
||||
//==============================================================================
|
||||
#if JUCE_MAC || JUCE_IOS
|
||||
#include "../juce_core/native/juce_osx_ObjCHelpers.h"
|
||||
#include "../juce_graphics/native/juce_mac_CoreGraphicsHelpers.h"
|
||||
|
||||
#if JUCE_MAC
|
||||
#include "native/juce_OpenGL_osx.h"
|
||||
|
|
@ -209,7 +211,6 @@ private:
|
|||
#include "native/juce_OpenGL_linux.h"
|
||||
|
||||
#elif JUCE_ANDROID
|
||||
#include "../juce_core/native/juce_android_JNIHelpers.h"
|
||||
#include "native/juce_OpenGL_android.h"
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -31,7 +31,10 @@
|
|||
#error "Incorrect use of JUCE cpp file"
|
||||
#endif
|
||||
|
||||
#include "../juce_core/native/juce_BasicNativeHeaders.h"
|
||||
#define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
|
||||
#define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
|
||||
#define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
|
||||
|
||||
#include "../juce_gui_extra/juce_gui_extra.h"
|
||||
#include "juce_video.h"
|
||||
|
||||
|
|
@ -98,8 +101,6 @@ namespace juce
|
|||
{
|
||||
|
||||
#if JUCE_MAC || JUCE_IOS
|
||||
#include "../juce_core/native/juce_osx_ObjCHelpers.h"
|
||||
|
||||
#if JUCE_USE_CAMERA
|
||||
#include "native/juce_mac_CameraDevice.mm"
|
||||
#endif
|
||||
|
|
@ -109,7 +110,6 @@ namespace juce
|
|||
#endif
|
||||
|
||||
#elif JUCE_WINDOWS
|
||||
#include "../juce_core/native/juce_win32_ComSmartPtr.h"
|
||||
|
||||
#if JUCE_USE_CAMERA
|
||||
#include "native/juce_win32_CameraDevice.cpp"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue