Skip to content

Commit 3d60d1e

Browse files
committed
Added Xcode project for BinaryWriter plugin. Addressed a compiler warning.
1 parent e9526e1 commit 3d60d1e

5 files changed

Lines changed: 267 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
@@ -48,6 +48,20 @@
4848
ReferencedContainer = "container:Plugins/BasicSpikeDisplay/BasicSpikeDisplay.xcodeproj">
4949
</BuildableReference>
5050
</BuildActionEntry>
51+
<BuildActionEntry
52+
buildForTesting = "YES"
53+
buildForRunning = "YES"
54+
buildForProfiling = "YES"
55+
buildForArchiving = "YES"
56+
buildForAnalyzing = "YES">
57+
<BuildableReference
58+
BuildableIdentifier = "primary"
59+
BlueprintIdentifier = "E1D300271DAEBBBD0050E0F8"
60+
BuildableName = "BinaryWriter.bundle"
61+
BlueprintName = "BinaryWriter"
62+
ReferencedContainer = "container:Plugins/BinaryWriter/BinaryWriter.xcodeproj">
63+
</BuildableReference>
64+
</BuildActionEntry>
5165
<BuildActionEntry
5266
buildForTesting = "YES"
5367
buildForRunning = "YES"
Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,222 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
E1D300381DAEBC570050E0F8 /* BinaryRecording.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1D300321DAEBC570050E0F8 /* BinaryRecording.cpp */; };
11+
E1D300391DAEBC570050E0F8 /* OpenEphysLib.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1D300351DAEBC570050E0F8 /* OpenEphysLib.cpp */; };
12+
E1D3003A1DAEBC570050E0F8 /* SequentialBlockFile.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1D300361DAEBC570050E0F8 /* SequentialBlockFile.cpp */; };
13+
/* End PBXBuildFile section */
14+
15+
/* Begin PBXFileReference section */
16+
E1D300281DAEBBBD0050E0F8 /* BinaryWriter.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BinaryWriter.bundle; sourceTree = BUILT_PRODUCTS_DIR; };
17+
E1D3002B1DAEBBBD0050E0F8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
18+
E1D300321DAEBC570050E0F8 /* BinaryRecording.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BinaryRecording.cpp; sourceTree = "<group>"; };
19+
E1D300331DAEBC570050E0F8 /* BinaryRecording.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BinaryRecording.h; sourceTree = "<group>"; };
20+
E1D300341DAEBC570050E0F8 /* FileMemoryBlock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileMemoryBlock.h; sourceTree = "<group>"; };
21+
E1D300351DAEBC570050E0F8 /* OpenEphysLib.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OpenEphysLib.cpp; sourceTree = "<group>"; };
22+
E1D300361DAEBC570050E0F8 /* SequentialBlockFile.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SequentialBlockFile.cpp; sourceTree = "<group>"; };
23+
E1D300371DAEBC570050E0F8 /* SequentialBlockFile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SequentialBlockFile.h; sourceTree = "<group>"; };
24+
E1D3003C1DAEBCBD0050E0F8 /* Plugin_Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Plugin_Debug.xcconfig; sourceTree = "<group>"; };
25+
E1D3003D1DAEBCBD0050E0F8 /* Plugin_Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Plugin_Release.xcconfig; sourceTree = "<group>"; };
26+
E1D3003E1DAEBCBD0050E0F8 /* Plugin.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Plugin.xcconfig; sourceTree = "<group>"; };
27+
/* End PBXFileReference section */
28+
29+
/* Begin PBXFrameworksBuildPhase section */
30+
E1D300251DAEBBBD0050E0F8 /* Frameworks */ = {
31+
isa = PBXFrameworksBuildPhase;
32+
buildActionMask = 2147483647;
33+
files = (
34+
);
35+
runOnlyForDeploymentPostprocessing = 0;
36+
};
37+
/* End PBXFrameworksBuildPhase section */
38+
39+
/* Begin PBXGroup section */
40+
E1D3001F1DAEBBBD0050E0F8 = {
41+
isa = PBXGroup;
42+
children = (
43+
E1D3003B1DAEBC9D0050E0F8 /* Config */,
44+
E1D3002A1DAEBBBD0050E0F8 /* BinaryWriter */,
45+
E1D300291DAEBBBD0050E0F8 /* Products */,
46+
);
47+
sourceTree = "<group>";
48+
};
49+
E1D300291DAEBBBD0050E0F8 /* Products */ = {
50+
isa = PBXGroup;
51+
children = (
52+
E1D300281DAEBBBD0050E0F8 /* BinaryWriter.bundle */,
53+
);
54+
name = Products;
55+
sourceTree = "<group>";
56+
};
57+
E1D3002A1DAEBBBD0050E0F8 /* BinaryWriter */ = {
58+
isa = PBXGroup;
59+
children = (
60+
E1D300311DAEBC140050E0F8 /* Source */,
61+
E1D3002B1DAEBBBD0050E0F8 /* Info.plist */,
62+
);
63+
path = BinaryWriter;
64+
sourceTree = "<group>";
65+
};
66+
E1D300311DAEBC140050E0F8 /* Source */ = {
67+
isa = PBXGroup;
68+
children = (
69+
E1D300331DAEBC570050E0F8 /* BinaryRecording.h */,
70+
E1D300321DAEBC570050E0F8 /* BinaryRecording.cpp */,
71+
E1D300341DAEBC570050E0F8 /* FileMemoryBlock.h */,
72+
E1D300371DAEBC570050E0F8 /* SequentialBlockFile.h */,
73+
E1D300361DAEBC570050E0F8 /* SequentialBlockFile.cpp */,
74+
E1D300351DAEBC570050E0F8 /* OpenEphysLib.cpp */,
75+
);
76+
name = Source;
77+
path = ../../../../../Source/Plugins/BinaryWriter;
78+
sourceTree = "<group>";
79+
};
80+
E1D3003B1DAEBC9D0050E0F8 /* Config */ = {
81+
isa = PBXGroup;
82+
children = (
83+
E1D3003E1DAEBCBD0050E0F8 /* Plugin.xcconfig */,
84+
E1D3003C1DAEBCBD0050E0F8 /* Plugin_Debug.xcconfig */,
85+
E1D3003D1DAEBCBD0050E0F8 /* Plugin_Release.xcconfig */,
86+
);
87+
name = Config;
88+
path = ../Config;
89+
sourceTree = "<group>";
90+
};
91+
/* End PBXGroup section */
92+
93+
/* Begin PBXNativeTarget section */
94+
E1D300271DAEBBBD0050E0F8 /* BinaryWriter */ = {
95+
isa = PBXNativeTarget;
96+
buildConfigurationList = E1D3002E1DAEBBBD0050E0F8 /* Build configuration list for PBXNativeTarget "BinaryWriter" */;
97+
buildPhases = (
98+
E1D300241DAEBBBD0050E0F8 /* Sources */,
99+
E1D300251DAEBBBD0050E0F8 /* Frameworks */,
100+
E1D300261DAEBBBD0050E0F8 /* Resources */,
101+
);
102+
buildRules = (
103+
);
104+
dependencies = (
105+
);
106+
name = BinaryWriter;
107+
productName = BinaryWriter;
108+
productReference = E1D300281DAEBBBD0050E0F8 /* BinaryWriter.bundle */;
109+
productType = "com.apple.product-type.bundle";
110+
};
111+
/* End PBXNativeTarget section */
112+
113+
/* Begin PBXProject section */
114+
E1D300201DAEBBBD0050E0F8 /* Project object */ = {
115+
isa = PBXProject;
116+
attributes = {
117+
LastUpgradeCheck = 0800;
118+
ORGANIZATIONNAME = "Open Ephys";
119+
TargetAttributes = {
120+
E1D300271DAEBBBD0050E0F8 = {
121+
CreatedOnToolsVersion = 8.0;
122+
ProvisioningStyle = Automatic;
123+
};
124+
};
125+
};
126+
buildConfigurationList = E1D300231DAEBBBD0050E0F8 /* Build configuration list for PBXProject "BinaryWriter" */;
127+
compatibilityVersion = "Xcode 3.2";
128+
developmentRegion = English;
129+
hasScannedForEncodings = 0;
130+
knownRegions = (
131+
en,
132+
);
133+
mainGroup = E1D3001F1DAEBBBD0050E0F8;
134+
productRefGroup = E1D300291DAEBBBD0050E0F8 /* Products */;
135+
projectDirPath = "";
136+
projectRoot = "";
137+
targets = (
138+
E1D300271DAEBBBD0050E0F8 /* BinaryWriter */,
139+
);
140+
};
141+
/* End PBXProject section */
142+
143+
/* Begin PBXResourcesBuildPhase section */
144+
E1D300261DAEBBBD0050E0F8 /* Resources */ = {
145+
isa = PBXResourcesBuildPhase;
146+
buildActionMask = 2147483647;
147+
files = (
148+
);
149+
runOnlyForDeploymentPostprocessing = 0;
150+
};
151+
/* End PBXResourcesBuildPhase section */
152+
153+
/* Begin PBXSourcesBuildPhase section */
154+
E1D300241DAEBBBD0050E0F8 /* Sources */ = {
155+
isa = PBXSourcesBuildPhase;
156+
buildActionMask = 2147483647;
157+
files = (
158+
E1D300381DAEBC570050E0F8 /* BinaryRecording.cpp in Sources */,
159+
E1D300391DAEBC570050E0F8 /* OpenEphysLib.cpp in Sources */,
160+
E1D3003A1DAEBC570050E0F8 /* SequentialBlockFile.cpp in Sources */,
161+
);
162+
runOnlyForDeploymentPostprocessing = 0;
163+
};
164+
/* End PBXSourcesBuildPhase section */
165+
166+
/* Begin XCBuildConfiguration section */
167+
E1D3002C1DAEBBBD0050E0F8 /* Debug */ = {
168+
isa = XCBuildConfiguration;
169+
baseConfigurationReference = E1D3003C1DAEBCBD0050E0F8 /* Plugin_Debug.xcconfig */;
170+
buildSettings = {
171+
};
172+
name = Debug;
173+
};
174+
E1D3002D1DAEBBBD0050E0F8 /* Release */ = {
175+
isa = XCBuildConfiguration;
176+
baseConfigurationReference = E1D3003D1DAEBCBD0050E0F8 /* Plugin_Release.xcconfig */;
177+
buildSettings = {
178+
};
179+
name = Release;
180+
};
181+
E1D3002F1DAEBBBD0050E0F8 /* Debug */ = {
182+
isa = XCBuildConfiguration;
183+
buildSettings = {
184+
INFOPLIST_FILE = BinaryWriter/Info.plist;
185+
PRODUCT_BUNDLE_IDENTIFIER = "org.open-ephys.gui.BinaryWriter";
186+
PRODUCT_NAME = "$(TARGET_NAME)";
187+
};
188+
name = Debug;
189+
};
190+
E1D300301DAEBBBD0050E0F8 /* Release */ = {
191+
isa = XCBuildConfiguration;
192+
buildSettings = {
193+
INFOPLIST_FILE = BinaryWriter/Info.plist;
194+
PRODUCT_BUNDLE_IDENTIFIER = "org.open-ephys.gui.BinaryWriter";
195+
PRODUCT_NAME = "$(TARGET_NAME)";
196+
};
197+
name = Release;
198+
};
199+
/* End XCBuildConfiguration section */
200+
201+
/* Begin XCConfigurationList section */
202+
E1D300231DAEBBBD0050E0F8 /* Build configuration list for PBXProject "BinaryWriter" */ = {
203+
isa = XCConfigurationList;
204+
buildConfigurations = (
205+
E1D3002C1DAEBBBD0050E0F8 /* Debug */,
206+
E1D3002D1DAEBBBD0050E0F8 /* Release */,
207+
);
208+
defaultConfigurationIsVisible = 0;
209+
defaultConfigurationName = Release;
210+
};
211+
E1D3002E1DAEBBBD0050E0F8 /* Build configuration list for PBXNativeTarget "BinaryWriter" */ = {
212+
isa = XCConfigurationList;
213+
buildConfigurations = (
214+
E1D3002F1DAEBBBD0050E0F8 /* Debug */,
215+
E1D300301DAEBBBD0050E0F8 /* Release */,
216+
);
217+
defaultConfigurationIsVisible = 0;
218+
};
219+
/* End XCConfigurationList section */
220+
};
221+
rootObject = E1D300201DAEBBBD0050E0F8 /* Project object */;
222+
}
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/BinaryWriter/SequentialBlockFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
using namespace BinaryRecordingEngine;
2727

2828
SequentialBlockFile::SequentialBlockFile(int nChannels, int samplesPerBlock) :
29+
m_file(nullptr),
2930
m_nChannels(nChannels),
3031
m_samplesPerBlock(samplesPerBlock),
31-
m_blockSize(nChannels*samplesPerBlock),
32-
m_file(nullptr)
32+
m_blockSize(nChannels*samplesPerBlock)
3333
{
3434
m_memBlocks.ensureStorageAllocated(blockArrayInitSize);
3535
for (int i = 0; i < nChannels; i++)

0 commit comments

Comments
 (0)