Skip to content

Commit

Permalink
Add LSLVer example
Browse files Browse the repository at this point in the history
  • Loading branch information
myd7349 committed Jul 28, 2024
1 parent 4cdd9c6 commit d28d4f0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Examples/LSLVer/LSLVer.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\Source\SharpLSL.Natives\SharpLSL.Native.all\SharpLSL.Native.all.csproj" />
<ProjectReference Include="..\..\Source\SharpLSL\SharpLSL.csproj" />
</ItemGroup>

</Project>
16 changes: 16 additions & 0 deletions Examples/LSLVer/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Port of https://github.com/sccn/liblsl/blob/master/testing/lslver.c
using SharpLSL;
using SharpLSL.Interop;

namespace LSLVer
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine($"LSL version: {LSL.lsl_library_version()}");
Console.WriteLine(Lsl.GetLibraryInfo());
Console.WriteLine(Lsl.GetLocalClock());
}
}
}
11 changes: 11 additions & 0 deletions SharpLSL.Full.sln
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharpLSL.Native.osx-x64", "
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharpLSL.Native.all", "Source\SharpLSL.Natives\SharpLSL.Native.all\SharpLSL.Native.all.csproj", "{532D997C-B29A-484B-AADC-8F1AD4835199}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{6D86CC19-E8B3-4C47-89CE-452D1BC2F3BB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LSLVer", "Examples\LSLVer\LSLVer.csproj", "{D0579532-FD2C-41EB-9F2E-FFC602631313}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -105,10 +109,17 @@ Global
{532D997C-B29A-484B-AADC-8F1AD4835199}.Debug|Any CPU.Build.0 = Debug|Any CPU
{532D997C-B29A-484B-AADC-8F1AD4835199}.Release|Any CPU.ActiveCfg = Release|Any CPU
{532D997C-B29A-484B-AADC-8F1AD4835199}.Release|Any CPU.Build.0 = Release|Any CPU
{D0579532-FD2C-41EB-9F2E-FFC602631313}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D0579532-FD2C-41EB-9F2E-FFC602631313}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D0579532-FD2C-41EB-9F2E-FFC602631313}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D0579532-FD2C-41EB-9F2E-FFC602631313}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{D0579532-FD2C-41EB-9F2E-FFC602631313} = {6D86CC19-E8B3-4C47-89CE-452D1BC2F3BB}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DC951642-0519-4898-B040-D6869C5CF3B2}
EndGlobalSection
Expand Down

0 comments on commit d28d4f0

Please sign in to comment.