Skip to content

Commit ae151f8

Browse files
committed
Ensure that plugin entry points are always exported on macOS and Linux (otherwise, plugins won't load in macOS release builds)
1 parent 580e665 commit ae151f8

26 files changed

Lines changed: 29 additions & 26 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ Introjucer/Builds/MacOSX/The Introjucer.xcodeproj/*.pbxuser
116116
Introjucer/Builds/MacOSX/The Introjucer.xcodeproj/xcuserdata
117117
Introjucer/Builds/MacOSX/The Introjucer.xcodeproj/project.xcworkspace
118118
Introjucer/Builds/MacOSX/build
119+
Projucer/Builds/MacOSX/Projucer.xcodeproj/xcuserdata
120+
Projucer/Builds/MacOSX/Projucer.xcodeproj/project.xcworkspace
119121

120122
# 9. Plugin build dirs
121123
build/

PluginGenerator/JuceLibraryCode/BinaryData.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static const unsigned char temp_binary_data_6[] =
610610
" #include <Windows.h>\n"
611611
" #define EXPORT __declspec(dllexport)\n"
612612
"#else\n"
613-
" #define EXPORT\n"
613+
" #define EXPORT __attribute__((visibility(\"default\")))\n"
614614
"#endif\n"
615615
"\n"
616616
"using namespace Plugin;\n"
@@ -6076,7 +6076,7 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
60766076
case 0x9a9516bc: numBytes = 1817; return openEphys_DataThreadPluginTemplate_h;
60776077
case 0xd768da9a: numBytes = 1487; return openEphys_FileSourcePluginTemplate_cpp;
60786078
case 0xdc872b1f: numBytes = 1450; return openEphys_FileSourcePluginTemplate_h;
6079-
case 0x354e9a48: numBytes = 4216; return openEphys_OpenEphysLibTemplate_cpp;
6079+
case 0x354e9a48: numBytes = 4255; return openEphys_OpenEphysLibTemplate_cpp;
60806080
case 0xbf9557ba: numBytes = 923; return openEphys_PluginMakefile_example;
60816081
case 0x0d98caa2: numBytes = 2993; return openEphys_ProcessorContentComponentTemplate_cpp;
60826082
case 0x20837d27: numBytes = 2348; return openEphys_ProcessorContentComponentTemplate_h;

PluginGenerator/JuceLibraryCode/BinaryData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace BinaryData
2828
const int openEphys_FileSourcePluginTemplate_hSize = 1450;
2929

3030
extern const char* openEphys_OpenEphysLibTemplate_cpp;
31-
const int openEphys_OpenEphysLibTemplate_cppSize = 4216;
31+
const int openEphys_OpenEphysLibTemplate_cppSize = 4255;
3232

3333
extern const char* openEphys_PluginMakefile_example;
3434
const int openEphys_PluginMakefile_exampleSize = 923;

Source/Plugins/ArduinoOutput/OpenEphysLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2828
#include <Windows.h>
2929
#define EXPORT __declspec(dllexport)
3030
#else
31-
#define EXPORT
31+
#define EXPORT __attribute__((visibility("default")))
3232
#endif
3333

3434
using namespace Plugin;

Source/Plugins/BasicSpikeDisplay/OpenEphysLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2929
#include <Windows.h>
3030
#define EXPORT __declspec(dllexport)
3131
#else
32-
#define EXPORT
32+
#define EXPORT __attribute__((visibility("default")))
3333
#endif
3434

3535
using namespace Plugin;

Source/Plugins/BinaryWriter/OpenEphysLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2828
#include <Windows.h>
2929
#define EXPORT __declspec(dllexport)
3030
#else
31-
#define EXPORT
31+
#define EXPORT __attribute__((visibility("default")))
3232
#endif
3333

3434

Source/Plugins/CAR/OpenEphysLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2828
#include <Windows.h>
2929
#define EXPORT __declspec(dllexport)
3030
#else
31-
#define EXPORT
31+
#define EXPORT __attribute__((visibility("default")))
3232
#endif
3333

3434
using namespace Plugin;

Source/Plugins/ChannelMappingNode/OpenEphysLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2828
#include <Windows.h>
2929
#define EXPORT __declspec(dllexport)
3030
#else
31-
#define EXPORT
31+
#define EXPORT __attribute__((visibility("default")))
3232
#endif
3333

3434
using namespace Plugin;

Source/Plugins/EcubeSource/OpenEphysLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2828
#include <Windows.h>
2929
#define EXPORT __declspec(dllexport)
3030
#else
31-
#define EXPORT
31+
#define EXPORT __attribute__((visibility("default")))
3232
#endif
3333

3434
using namespace Plugin;

Source/Plugins/EventBroadcaster/OpenEphysLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2828
#include <Windows.h>
2929
#define EXPORT __declspec(dllexport)
3030
#else
31-
#define EXPORT
31+
#define EXPORT __attribute__((visibility("default")))
3232
#endif
3333

3434
using namespace Plugin;

0 commit comments

Comments
 (0)