Browse Source

Changes for DLL build.

tags/2021-05-28
jules 13 years ago
parent
commit
b305389d46
7 changed files with 14 additions and 11 deletions
  1. +2
    -5
      modules/juce_audio_plugin_client/utility/juce_CheckSettingMacros.h
  2. +1
    -1
      modules/juce_core/memory/juce_Memory.h
  3. +6
    -0
      modules/juce_core/system/juce_StandardHeader.h
  4. +2
    -2
      modules/juce_gui_basics/widgets/juce_ListBox.h
  5. +1
    -1
      modules/juce_gui_basics/widgets/juce_Slider.h
  6. +1
    -1
      modules/juce_gui_basics/widgets/juce_TextEditor.h
  7. +1
    -1
      modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.h

+ 2
- 5
modules/juce_audio_plugin_client/utility/juce_CheckSettingMacros.h View File

@@ -80,12 +80,9 @@
#endif
//==============================================================================
#if __LP64__ && (defined(__APPLE_CPP__) || defined(__APPLE_CC__)) // (disable VSTs and RTAS in a 64-bit mac build)
#undef JucePlugin_Build_RTAS
#endif
#if _WIN64 // (disable RTAS in a 64-bit windows build)
#if _WIN64 || (__LP64__ && (defined(__APPLE_CPP__) || defined(__APPLE_CC__)))
#undef JucePlugin_Build_RTAS
#define JucePlugin_Build_RTAS 0
#endif
//==============================================================================


+ 1
- 1
modules/juce_core/memory/juce_Memory.h View File

@@ -92,7 +92,7 @@ inline Type* createCopyIfNotNull (const Type* pointer) { return pointer != n
avoiding problems when an object is created in one module and passed across to another where it is deleted.
By piggy-backing on the JUCE_LEAK_DETECTOR macro, these allocators can be injected into most juce classes.
*/
#if JUCE_MSVC && defined (JUCE_DLL) && ! DOXYGEN
#if JUCE_MSVC && (defined (JUCE_DLL) || defined (JUCE_DLL_BUILD)) && ! DOXYGEN
extern JUCE_API void* juceDLL_malloc (size_t);
extern JUCE_API void juceDLL_free (void*);


+ 6
- 0
modules/juce_core/system/juce_StandardHeader.h View File

@@ -131,6 +131,12 @@
#define JUCE_API /**< This macro is added to all juce public class declarations. */
#endif
#if JUCE_MSVC && JUCE_DLL_BUILD
#define JUCE_PUBLIC_IN_DLL_BUILD(declaration) public: declaration; private:
#else
#define JUCE_PUBLIC_IN_DLL_BUILD(declaration) declaration;
#endif
/** This macro is added to all juce public function declarations. */
#define JUCE_PUBLIC_FUNCTION JUCE_API JUCE_CALLTYPE


+ 2
- 2
modules/juce_gui_basics/widgets/juce_ListBox.h View File

@@ -553,8 +553,8 @@ public:
private:
//==============================================================================
class ListViewport;
class RowComponent;
JUCE_PUBLIC_IN_DLL_BUILD (class ListViewport);
JUCE_PUBLIC_IN_DLL_BUILD (class RowComponent);
friend class ListViewport;
friend class TableListBox;
ListBoxModel* model;


+ 1
- 1
modules/juce_gui_basics/widgets/juce_Slider.h View File

@@ -813,7 +813,7 @@ protected:
private:
//==============================================================================
class Pimpl;
JUCE_PUBLIC_IN_DLL_BUILD (class Pimpl);
friend class Pimpl;
friend class ScopedPointer<Pimpl>;
ScopedPointer<Pimpl> pimpl;


+ 1
- 1
modules/juce_gui_basics/widgets/juce_TextEditor.h View File

@@ -643,7 +643,7 @@ protected:
private:
//==============================================================================
class Iterator;
class UniformTextSection;
JUCE_PUBLIC_IN_DLL_BUILD (class UniformTextSection);
class TextHolderComponent;
class InsertAction;
class RemoveAction;


+ 1
- 1
modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.h View File

@@ -70,7 +70,7 @@ public:
private:
//==============================================================================
class Pimpl;
JUCE_PUBLIC_IN_DLL_BUILD (class Pimpl);
ScopedPointer<Pimpl> pimpl;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SystemTrayIconComponent);


Loading…
Cancel
Save