Skip to content

Commit

Permalink
Compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Dec 3, 2023
1 parent 009c876 commit 4130094
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 22 deletions.
5 changes: 2 additions & 3 deletions Libraries/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,8 @@ if("${CMAKE_SYSTEM}" MATCHES "Linux")
add_library(pd INTERFACE)
add_library(pd-multi INTERFACE)
find_library(MATH_LIB m)
target_link_libraries(pd INTERFACE ${MATH_LIB} ${CMAKE_DL_LIBS} externals pd-src ${externals_libs})
target_link_libraries(pd-multi INTERFACE ${MATH_LIB} ${CMAKE_DL_LIBS} externals-multi pd-src-multi ${externals_libs})

target_link_libraries(externals ${externals_libs})
target_link_libraries(externals-multi ${externals_libs})
elseif(MSVC)
add_library(pd SHARED $<TARGET_OBJECTS:externals> $<TARGET_OBJECTS:pd-src>)
add_library(pd-multi STATIC $<TARGET_OBJECTS:externals-multi> $<TARGET_OBJECTS:pd-src-multi>)
Expand Down
2 changes: 1 addition & 1 deletion Source/Components/ObjectDragAndDrop.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "ZoomableDragAndDropContainer.h"
#include "Utility/OfflineObjectRenderer.h"
#include "../PluginEditor.h"
Expand Down
3 changes: 2 additions & 1 deletion Source/Components/ZoomableDragAndDropContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

#pragma once

#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "Utility/Config.h"

//==============================================================================
/**
Expand Down
1 change: 1 addition & 0 deletions Source/Dialogs/Dialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <juce_gui_basics/juce_gui_basics.h>
#include <juce_gui_extra/juce_gui_extra.h>
#include <juce_audio_devices/juce_audio_devices.h>

#include <utility>
Expand Down
2 changes: 1 addition & 1 deletion Source/Dialogs/ObjectBrowserDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*/

#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include <utility>

#include "Components/BouncingViewport.h"
Expand Down
2 changes: 1 addition & 1 deletion Source/Dialogs/ObjectReferenceDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*/

#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "LookAndFeel.h"
#include "PluginEditor.h"
#include "PluginProcessor.h"
Expand Down
1 change: 1 addition & 0 deletions Source/Dialogs/TextEditorDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <utility>

#include "Utility/Config.h"
#include "Constants.h"

#define GUTTER_WIDTH 48.f
Expand Down
2 changes: 1 addition & 1 deletion Source/Object.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#pragma once

#include "Utility/ModifierKeyListener.h"
#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "Utility/SettingsFile.h"
#include "Utility/RateReducer.h"
#include "Pd/WeakReference.h"
Expand Down
2 changes: 1 addition & 1 deletion Source/Objects/KnobObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*/

#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "TclColours.h"

extern "C" {
Expand Down
4 changes: 2 additions & 2 deletions Source/Pd/Instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ class Instance {
// JYG added this
void* dataBufferReceiver = nullptr;

std::atomic<bool> canUndo = false;
std::atomic<bool> canRedo = false;
std::atomic<bool> undoAvailable = false;
std::atomic<bool> redoAvailable = false;

inline static const String defaultPatch = "#N canvas 827 239 527 327 12;";

Expand Down
3 changes: 1 addition & 2 deletions Source/Sidebar/PaletteItem.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include <JuceHeader.h>

#include <juce_gui_basics/juce_gui_basics.h>
#include "LookAndFeel.h"
#include "Pd/Instance.h"
#include "Components/ObjectDragAndDrop.h"
Expand Down
2 changes: 1 addition & 1 deletion Source/Sidebar/Palettes.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*/
#pragma once
#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "Canvas.h"
#include "Connection.h"
#include "Dialogs/Dialogs.h"
Expand Down
2 changes: 1 addition & 1 deletion Source/Tabbar/ResizableTabbedComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "Tabbar.h"
#include "Utility/SplitModeEnum.h"

Expand Down
3 changes: 1 addition & 2 deletions Source/Tabbar/SplitView.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

#pragma once

#include <JuceHeader.h>

#include <juce_gui_basics/juce_gui_basics.h>
#include "SplitViewResizer.h"
#include "ResizableTabbedComponent.h"

Expand Down
2 changes: 1 addition & 1 deletion Source/Tabbar/SplitViewResizer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "Tabbar.h"
#include "Utility/SplitModeEnum.h"
#include "Utility/RateReducer.h"
Expand Down
3 changes: 2 additions & 1 deletion Source/Tabbar/TabBarButtonComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

#pragma once

#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "Utility/Config.h"

class CloseTabButton;
class TabComponent;
Expand Down
2 changes: 1 addition & 1 deletion Source/Utility/ObjectThemeManager.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>

/*
* This is a static class that handles all theming & formatting for UI objects placed onto the canvas
Expand Down
3 changes: 2 additions & 1 deletion Source/Utility/OfflineObjectRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

#pragma once

#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "Utility/Config.h"
#include "Pd/Instance.h"

class ImageWithOffset {
Expand Down
2 changes: 1 addition & 1 deletion Source/Utility/StackShadow.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// https://gist.github.com/benjamin9999/3809142
// http://www.antigrain.com/__code/include/agg_blur.h.html

#include <JuceHeader.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "Utility/HashUtils.h"
#include "Utility/Config.h"

Expand Down

0 comments on commit 4130094

Please sign in to comment.