Skip to content

Commit 15f3ebf

Browse files
committed
Added Xcode project for NWBFormat plugin. Addressed a compiler warning.
1 parent a133b31 commit 15f3ebf

6 files changed

Lines changed: 291 additions & 2 deletions

File tree

Builds/MacOSX/OpenEphys.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Builds/MacOSX/OpenEphys.xcworkspace/xcshareddata/xcschemes/All.xcscheme

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,20 @@
188188
ReferencedContainer = "container:Plugins/NetworkEvents/NetworkEvents.xcodeproj">
189189
</BuildableReference>
190190
</BuildActionEntry>
191+
<BuildActionEntry
192+
buildForTesting = "YES"
193+
buildForRunning = "YES"
194+
buildForProfiling = "YES"
195+
buildForArchiving = "YES"
196+
buildForAnalyzing = "YES">
197+
<BuildableReference
198+
BuildableIdentifier = "primary"
199+
BlueprintIdentifier = "E1F91DE31DBE670500FF13EA"
200+
BuildableName = "NWBFormat.bundle"
201+
BlueprintName = "NWBFormat"
202+
ReferencedContainer = "container:Plugins/NWBFormat/NWBFormat.xcodeproj">
203+
</BuildableReference>
204+
</BuildActionEntry>
191205
<BuildActionEntry
192206
buildForTesting = "YES"
193207
buildForRunning = "YES"
Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
E1F91DFA1DBE69C400FF13EA /* NWBFormat.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1F91DF51DBE69C400FF13EA /* NWBFormat.cpp */; };
11+
E1F91DFB1DBE69C400FF13EA /* NWBRecording.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1F91DF71DBE69C400FF13EA /* NWBRecording.cpp */; };
12+
E1F91DFC1DBE69C400FF13EA /* OpenEphysLib.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1F91DF91DBE69C400FF13EA /* OpenEphysLib.cpp */; };
13+
E1F91DFF1DBE6B0400FF13EA /* libOpenEphysHDF5.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = E1F91DFE1DBE6B0400FF13EA /* libOpenEphysHDF5.dylib */; };
14+
/* End PBXBuildFile section */
15+
16+
/* Begin PBXFileReference section */
17+
E1F91DE41DBE670500FF13EA /* NWBFormat.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NWBFormat.bundle; sourceTree = BUILT_PRODUCTS_DIR; };
18+
E1F91DE71DBE670500FF13EA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
19+
E1F91DF21DBE684700FF13EA /* Plugin_Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Plugin_Debug.xcconfig; sourceTree = "<group>"; };
20+
E1F91DF31DBE684700FF13EA /* Plugin_Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Plugin_Release.xcconfig; sourceTree = "<group>"; };
21+
E1F91DF51DBE69C400FF13EA /* NWBFormat.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NWBFormat.cpp; sourceTree = "<group>"; };
22+
E1F91DF61DBE69C400FF13EA /* NWBFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NWBFormat.h; sourceTree = "<group>"; };
23+
E1F91DF71DBE69C400FF13EA /* NWBRecording.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NWBRecording.cpp; sourceTree = "<group>"; };
24+
E1F91DF81DBE69C400FF13EA /* NWBRecording.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NWBRecording.h; sourceTree = "<group>"; };
25+
E1F91DF91DBE69C400FF13EA /* OpenEphysLib.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OpenEphysLib.cpp; sourceTree = "<group>"; };
26+
E1F91DFE1DBE6B0400FF13EA /* libOpenEphysHDF5.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libOpenEphysHDF5.dylib; path = ../Frameworks/libOpenEphysHDF5.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
27+
/* End PBXFileReference section */
28+
29+
/* Begin PBXFrameworksBuildPhase section */
30+
E1F91DE11DBE670500FF13EA /* Frameworks */ = {
31+
isa = PBXFrameworksBuildPhase;
32+
buildActionMask = 2147483647;
33+
files = (
34+
E1F91DFF1DBE6B0400FF13EA /* libOpenEphysHDF5.dylib in Frameworks */,
35+
);
36+
runOnlyForDeploymentPostprocessing = 0;
37+
};
38+
/* End PBXFrameworksBuildPhase section */
39+
40+
/* Begin PBXGroup section */
41+
E1F91DDB1DBE670500FF13EA = {
42+
isa = PBXGroup;
43+
children = (
44+
E1F91DED1DBE67A600FF13EA /* Config */,
45+
E1F91DE61DBE670500FF13EA /* NWBFormat */,
46+
E1F91DFD1DBE6B0400FF13EA /* Frameworks */,
47+
E1F91DE51DBE670500FF13EA /* Products */,
48+
);
49+
sourceTree = "<group>";
50+
};
51+
E1F91DE51DBE670500FF13EA /* Products */ = {
52+
isa = PBXGroup;
53+
children = (
54+
E1F91DE41DBE670500FF13EA /* NWBFormat.bundle */,
55+
);
56+
name = Products;
57+
sourceTree = "<group>";
58+
};
59+
E1F91DE61DBE670500FF13EA /* NWBFormat */ = {
60+
isa = PBXGroup;
61+
children = (
62+
E1F91DF41DBE698E00FF13EA /* Source */,
63+
E1F91DE71DBE670500FF13EA /* Info.plist */,
64+
);
65+
path = NWBFormat;
66+
sourceTree = "<group>";
67+
};
68+
E1F91DED1DBE67A600FF13EA /* Config */ = {
69+
isa = PBXGroup;
70+
children = (
71+
E1F91DF21DBE684700FF13EA /* Plugin_Debug.xcconfig */,
72+
E1F91DF31DBE684700FF13EA /* Plugin_Release.xcconfig */,
73+
);
74+
name = Config;
75+
path = ../Config;
76+
sourceTree = "<group>";
77+
};
78+
E1F91DF41DBE698E00FF13EA /* Source */ = {
79+
isa = PBXGroup;
80+
children = (
81+
E1F91DF61DBE69C400FF13EA /* NWBFormat.h */,
82+
E1F91DF51DBE69C400FF13EA /* NWBFormat.cpp */,
83+
E1F91DF81DBE69C400FF13EA /* NWBRecording.h */,
84+
E1F91DF71DBE69C400FF13EA /* NWBRecording.cpp */,
85+
E1F91DF91DBE69C400FF13EA /* OpenEphysLib.cpp */,
86+
);
87+
name = Source;
88+
path = ../../../../../Source/Plugins/NWBFormat;
89+
sourceTree = "<group>";
90+
};
91+
E1F91DFD1DBE6B0400FF13EA /* Frameworks */ = {
92+
isa = PBXGroup;
93+
children = (
94+
E1F91DFE1DBE6B0400FF13EA /* libOpenEphysHDF5.dylib */,
95+
);
96+
name = Frameworks;
97+
sourceTree = "<group>";
98+
};
99+
/* End PBXGroup section */
100+
101+
/* Begin PBXNativeTarget section */
102+
E1F91DE31DBE670500FF13EA /* NWBFormat */ = {
103+
isa = PBXNativeTarget;
104+
buildConfigurationList = E1F91DEA1DBE670500FF13EA /* Build configuration list for PBXNativeTarget "NWBFormat" */;
105+
buildPhases = (
106+
E1F91DE01DBE670500FF13EA /* Sources */,
107+
E1F91DE11DBE670500FF13EA /* Frameworks */,
108+
E1F91DE21DBE670500FF13EA /* Resources */,
109+
);
110+
buildRules = (
111+
);
112+
dependencies = (
113+
);
114+
name = NWBFormat;
115+
productName = NWBFormat;
116+
productReference = E1F91DE41DBE670500FF13EA /* NWBFormat.bundle */;
117+
productType = "com.apple.product-type.bundle";
118+
};
119+
/* End PBXNativeTarget section */
120+
121+
/* Begin PBXProject section */
122+
E1F91DDC1DBE670500FF13EA /* Project object */ = {
123+
isa = PBXProject;
124+
attributes = {
125+
LastUpgradeCheck = 0800;
126+
ORGANIZATIONNAME = "Open Ephys";
127+
TargetAttributes = {
128+
E1F91DE31DBE670500FF13EA = {
129+
CreatedOnToolsVersion = 8.0;
130+
ProvisioningStyle = Automatic;
131+
};
132+
};
133+
};
134+
buildConfigurationList = E1F91DDF1DBE670500FF13EA /* Build configuration list for PBXProject "NWBFormat" */;
135+
compatibilityVersion = "Xcode 3.2";
136+
developmentRegion = English;
137+
hasScannedForEncodings = 0;
138+
knownRegions = (
139+
en,
140+
);
141+
mainGroup = E1F91DDB1DBE670500FF13EA;
142+
productRefGroup = E1F91DE51DBE670500FF13EA /* Products */;
143+
projectDirPath = "";
144+
projectRoot = "";
145+
targets = (
146+
E1F91DE31DBE670500FF13EA /* NWBFormat */,
147+
);
148+
};
149+
/* End PBXProject section */
150+
151+
/* Begin PBXResourcesBuildPhase section */
152+
E1F91DE21DBE670500FF13EA /* Resources */ = {
153+
isa = PBXResourcesBuildPhase;
154+
buildActionMask = 2147483647;
155+
files = (
156+
);
157+
runOnlyForDeploymentPostprocessing = 0;
158+
};
159+
/* End PBXResourcesBuildPhase section */
160+
161+
/* Begin PBXSourcesBuildPhase section */
162+
E1F91DE01DBE670500FF13EA /* Sources */ = {
163+
isa = PBXSourcesBuildPhase;
164+
buildActionMask = 2147483647;
165+
files = (
166+
E1F91DFC1DBE69C400FF13EA /* OpenEphysLib.cpp in Sources */,
167+
E1F91DFA1DBE69C400FF13EA /* NWBFormat.cpp in Sources */,
168+
E1F91DFB1DBE69C400FF13EA /* NWBRecording.cpp in Sources */,
169+
);
170+
runOnlyForDeploymentPostprocessing = 0;
171+
};
172+
/* End PBXSourcesBuildPhase section */
173+
174+
/* Begin XCBuildConfiguration section */
175+
E1F91DE81DBE670500FF13EA /* Debug */ = {
176+
isa = XCBuildConfiguration;
177+
baseConfigurationReference = E1F91DF21DBE684700FF13EA /* Plugin_Debug.xcconfig */;
178+
buildSettings = {
179+
};
180+
name = Debug;
181+
};
182+
E1F91DE91DBE670500FF13EA /* Release */ = {
183+
isa = XCBuildConfiguration;
184+
baseConfigurationReference = E1F91DF31DBE684700FF13EA /* Plugin_Release.xcconfig */;
185+
buildSettings = {
186+
};
187+
name = Release;
188+
};
189+
E1F91DEB1DBE670500FF13EA /* Debug */ = {
190+
isa = XCBuildConfiguration;
191+
buildSettings = {
192+
HEADER_SEARCH_PATHS = (
193+
"$(inherited)",
194+
"$(MAC_PACKAGE_DIR)/include",
195+
);
196+
INFOPLIST_FILE = NWBFormat/Info.plist;
197+
LIBRARY_SEARCH_PATHS = (
198+
"$(CONFIGURATION_BUILD_DIR)/../Frameworks",
199+
"$(inherited)",
200+
);
201+
PRODUCT_BUNDLE_IDENTIFIER = "org.open-ephys.gui.plugin.NWBFormat";
202+
PRODUCT_NAME = "$(TARGET_NAME)";
203+
};
204+
name = Debug;
205+
};
206+
E1F91DEC1DBE670500FF13EA /* Release */ = {
207+
isa = XCBuildConfiguration;
208+
buildSettings = {
209+
HEADER_SEARCH_PATHS = (
210+
"$(inherited)",
211+
"$(MAC_PACKAGE_DIR)/include",
212+
);
213+
INFOPLIST_FILE = NWBFormat/Info.plist;
214+
LIBRARY_SEARCH_PATHS = (
215+
"$(CONFIGURATION_BUILD_DIR)/../Frameworks",
216+
"$(inherited)",
217+
);
218+
PRODUCT_BUNDLE_IDENTIFIER = "org.open-ephys.gui.plugin.NWBFormat";
219+
PRODUCT_NAME = "$(TARGET_NAME)";
220+
};
221+
name = Release;
222+
};
223+
/* End XCBuildConfiguration section */
224+
225+
/* Begin XCConfigurationList section */
226+
E1F91DDF1DBE670500FF13EA /* Build configuration list for PBXProject "NWBFormat" */ = {
227+
isa = XCConfigurationList;
228+
buildConfigurations = (
229+
E1F91DE81DBE670500FF13EA /* Debug */,
230+
E1F91DE91DBE670500FF13EA /* Release */,
231+
);
232+
defaultConfigurationIsVisible = 0;
233+
defaultConfigurationName = Release;
234+
};
235+
E1F91DEA1DBE670500FF13EA /* Build configuration list for PBXNativeTarget "NWBFormat" */ = {
236+
isa = XCConfigurationList;
237+
buildConfigurations = (
238+
E1F91DEB1DBE670500FF13EA /* Debug */,
239+
E1F91DEC1DBE670500FF13EA /* Release */,
240+
);
241+
defaultConfigurationIsVisible = 0;
242+
};
243+
/* End XCConfigurationList section */
244+
};
245+
rootObject = E1F91DDC1DBE670500FF13EA /* Project object */;
246+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>BNDL</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>1</string>
21+
<key>NSHumanReadableCopyright</key>
22+
<string>Copyright © 2016 Open Ephys. All rights reserved.</string>
23+
<key>NSPrincipalClass</key>
24+
<string></string>
25+
</dict>
26+
</plist>

Source/Plugins/NWBFormat/NWBFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define SPIKE_CHUNK_YSIZE 40
3737
#endif
3838

39-
NWBFile::NWBFile(String fName, String ver, String idText) : HDF5FileBase(), filename(fName), identifierText(idText), GUIVersion(ver), spikeMaxSize(0)
39+
NWBFile::NWBFile(String fName, String ver, String idText) : HDF5FileBase(), filename(fName), GUIVersion(ver), spikeMaxSize(0), identifierText(idText)
4040
{
4141
//Init stuff
4242
readyToOpen=true; //In KWIK this is in initFile, but the new recordEngine methods make it safe for it to be here

Source/Plugins/NWBFormat/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

0 commit comments

Comments
 (0)