Skip to content

Commit cea6281

Browse files
authored
Merge pull request #95 from cstawarz/symbol_visibility_fixes
Symbol visibility fixes
2 parents d3849ec + ae151f8 commit cea6281

30 files changed

Lines changed: 40 additions & 36 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/

Builds/MacOSX/Plugins/Config/Plugin.xcconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ DEBUG_INFORMATION_FORMAT = dwarf
3232
ENABLE_STRICT_OBJC_MSGSEND = YES
3333
GCC_C_LANGUAGE_STANDARD = c99
3434
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
35-
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
3635
GCC_NO_COMMON_BLOCKS = YES
3736
GCC_OPTIMIZATION_LEVEL = 3
3837
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) OEPLUGIN JUCER_XCODE_MAC_F6D2F4CF=1 JUCE_APP_VERSION=0.4.1 JUCE_APP_VERSION_HEX=0x401

Builds/MacOSX/Plugins/Config/Plugin_Debug.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
ENABLE_TESTABILITY = YES
44
GCC_DYNAMIC_NO_PIC = NO
5+
GCC_INLINES_ARE_PRIVATE_EXTERN = NO
56
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1 _DEBUG=1
67
MTL_ENABLE_DEBUG_INFO = YES
78
ONLY_ACTIVE_ARCH = YES

Builds/MacOSX/open-ephys.xcodeproj/project.pbxproj

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,7 @@
20202020
9069CE21141F5A4C5721BCF3,
20212021
65F4459CC1832883FFF6C166,
20222022
9069CE21141F5A4C5721BCF3, ); name = "juce_audio_devices"; sourceTree = "<group>"; };
2023-
43D700D1965DF684964ACAE6 = {isa = PBXGroup; children = (
2023+
217479BAEDCDC02C29C466EB = {isa = PBXGroup; children = (
20242024
B47FEE41896F01CE6EB42B36,
20252025
92A6643073EB8E38F6BBD39C,
20262026
30B1B20F186FC5FBA93D4C90,
@@ -2037,15 +2037,15 @@
20372037
9493FB479E4B4FA2D5C86724,
20382038
BE15A2B0B537B5CC343EF6F9,
20392039
63E801199DEC51DCFBB61890, ); name = private; sourceTree = "<group>"; };
2040-
81ED6AB2A5472FC995B6653F = {isa = PBXGroup; children = (
2040+
35E22AE46A6F6A700C3B3D94 = {isa = PBXGroup; children = (
20412041
AC91C85D2437C7D1286AFAAB,
20422042
D1B150DF1455287F67E629B2,
20432043
FE88B876367616EBFEA00713, ); name = protected; sourceTree = "<group>"; };
2044-
178CBDC0FAC7D537E3CC7E78 = {isa = PBXGroup; children = (
2045-
43D700D1965DF684964ACAE6,
2046-
81ED6AB2A5472FC995B6653F, ); name = include; sourceTree = "<group>"; };
2047-
DC301071305052CAAA2F0AB6 = {isa = PBXGroup; children = (
2048-
178CBDC0FAC7D537E3CC7E78,
2044+
17A7656AF0E66E5C7AD93D8E = {isa = PBXGroup; children = (
2045+
217479BAEDCDC02C29C466EB,
2046+
35E22AE46A6F6A700C3B3D94, ); name = include; sourceTree = "<group>"; };
2047+
2FC2E6E13664F64828C03461 = {isa = PBXGroup; children = (
2048+
17A7656AF0E66E5C7AD93D8E,
20492049
AD9B515651FF2143CA089351,
20502050
6C12F08C8B6CBD125DC897AF,
20512051
5F8BCA4580A738F645A05D8A,
@@ -2062,7 +2062,7 @@
20622062
D45F7C723822356F362B8262,
20632063
AF2216C76163EB0A76390FE9, ); name = libFLAC; sourceTree = "<group>"; };
20642064
1EA82693D5711953C949B39F = {isa = PBXGroup; children = (
2065-
DC301071305052CAAA2F0AB6,
2065+
2FC2E6E13664F64828C03461,
20662066
C68F078AF94886343CBF6DAD,
20672067
18ADA4B7F8ABC14FC3ABCD39,
20682068
BFD1914F80C897BF775D7C92,
@@ -3340,6 +3340,7 @@
33403340
CONFIGURATION_BUILD_DIR = "$(PROJECT_DIR)/build/$(CONFIGURATION)";
33413341
COPY_PHASE_STRIP = NO;
33423342
GCC_DYNAMIC_NO_PIC = NO;
3343+
GCC_INLINES_ARE_PRIVATE_EXTERN = NO;
33433344
GCC_OPTIMIZATION_LEVEL = 3;
33443345
GCC_PREPROCESSOR_DEFINITIONS = (
33453346
"_DEBUG=1",

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;

0 commit comments

Comments
 (0)