Skip to content

Commit

Permalink
Merge pull request #1 from Fluigent/unique_version
Browse files Browse the repository at this point in the history
Provide a unique version
  • Loading branch information
mtrellet authored Sep 4, 2023
2 parents ae77537 + c4f1644 commit 738dd2b
Show file tree
Hide file tree
Showing 37 changed files with 31 additions and 33 deletions.
Binary file modified Aria_SDK.pdf
Binary file not shown.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ Here are the package contents:
| C++ | **main.cpp** example script <br> **aria_sdk_example_cpp.sln** Visual Studio complete solution containing middleware and examples |
| C# | **Program.cs** example script <br> **aria-sdk-example.sln** Visual Studio complete solution containing middleware and examples |
| Python | **aria-sdk-example.py** example script |

## Support

For any question, please contact [email protected]
6 changes: 3 additions & 3 deletions cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
This is a console application written in C++ 14, demonstrating the basic usage of the Fluigent Aria SDK.

## Instructions
- Copy the shared folder (containing the SDK DLLs and headers) to the root folder of the example (the folder which contains this README file)
- Open the aria_sdk_example_cpp.sln solution file with Visual Studio
- Build and run the aria_sdk_example_cpp project
- Make sure there is a `dll/` folder containing the SDK DLLs (`win/[x86|x64]/[*.dll|*.lib]`) and headers (`Headers/*.h`) in the root folder of the example
- Open the `aria_sdk_example_cpp.sln` solution file with Visual Studio
- Build and run the `aria_sdk_example_cpp` project
16 changes: 8 additions & 8 deletions cpp/aria_sdk_example_cpp.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(MSBuildProjectDirectory)\shared\Headers\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(MSBuildProjectDirectory)\dll\Headers\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>$(CoreLibraryDependencies);%(AdditionalDependencies);$(MSBuildProjectDirectory)\shared\win\x86\aria_sdk_clr.lib</AdditionalDependencies>
<AdditionalDependencies>$(CoreLibraryDependencies);%(AdditionalDependencies);$(MSBuildProjectDirectory)\dll\win\x86\aria_sdk_clr.lib</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>copy "$(ProjectDir)\shared\win\x86\aria_sdk.dll" "$(OutDir)aria_sdk.dll"
copy "$(ProjectDir)\shared\win\x86\aria_sdk_clr.dll" "$(OutDir)aria_sdk_clr.dll"</Command>
<Command>copy "$(ProjectDir)\dll\win\x86\aria_sdk.dll" "$(OutDir)aria_sdk.dll"
copy "$(ProjectDir)\dll\win\x86\aria_sdk_clr.dll" "$(OutDir)aria_sdk_clr.dll"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand Down Expand Up @@ -116,16 +116,16 @@ copy $(ProjectDir)aria_sdk_clr.dll $(OutDir)aria_sdk_clr.dll</Command>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>$(MSBuildProjectDirectory)\shared\Headers\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(MSBuildProjectDirectory)\dll\Headers\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>$(CoreLibraryDependencies);%(AdditionalDependencies);$(MSBuildProjectDirectory)\shared\win\x64\aria_sdk_clr.lib</AdditionalDependencies>
<AdditionalDependencies>$(CoreLibraryDependencies);%(AdditionalDependencies);$(MSBuildProjectDirectory)\dll\win\x64\aria_sdk_clr.lib</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>copy "$(ProjectDir)\shared\win\x64\aria_sdk.dll" "$(OutDir)aria_sdk.dll"
copy "$(ProjectDir)\shared\win\x64\aria_sdk_clr.dll" "$(OutDir)aria_sdk_clr.dll"</Command>
<Command>copy "$(ProjectDir)\dll\win\x64\aria_sdk.dll" "$(OutDir)aria_sdk.dll"
copy "$(ProjectDir)\dll\win\x64\aria_sdk_clr.dll" "$(OutDir)aria_sdk_clr.dll"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed cpp/dll/win/x64/aria_sdk_clr_Msw.dll
Binary file not shown.
Binary file removed cpp/dll/win/x64/aria_sdk_clr_Msw.lib
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed cpp/dll/win/x86/aria_sdk_clr_Msw.dll
Binary file not shown.
Binary file removed cpp/dll/win/x86/aria_sdk_clr_Msw.lib
Binary file not shown.
4 changes: 2 additions & 2 deletions csharp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
This is a console application written in C# for .NET Framework 4.8, demonstrating the basic usage of the Fluigent Aria SDK.

## Instructions
- Copy the aria-sdk.dll file to the example folder
- Build and run the aria-sdk-example project.
- Copy the aria-sdk.dll file for your target architecture to the root folder
- Build and run the `aria-sdk-example` project.
File renamed without changes.
Binary file removed csharp/dll/win/x64/aria_sdk_2sw.dll
Binary file not shown.
File renamed without changes.
Binary file removed csharp/dll/win/x86/aria_sdk_2sw.dll
Binary file not shown.
1 change: 0 additions & 1 deletion python/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*.dll
*egg-info/
dist/
__pycache__/
6 changes: 3 additions & 3 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
This groups a package structure that allows for a quick installation with `pip` and a basic example script written in Python (3+), demonstrating the basic usage of the Fluigent Aria SDK.

## Setup and test
- Place the SDK DLLs in a folder called `dlls/` in the repository root, with the paths `win/x86/*.dll` and `win/x64/*.dll`
- Place the SDK DLLs in a folder called `dlls/` in the repository root, with the paths `win/x86/aria_sdk.dll` and `win/x64/aria_sdk.dll`
- Go to the package directory: `cd package/`
- Run `python deploy.py`
- Install the SDK with `pip install dist/2sw/aria_sdk-1.2.0.zip` or `pip install dist/Msw/aria_sdk-1.2.0.zip`
- Install the SDK with `pip install dist/aria_sdk-X.X.X.zip`
- Then test with the example script: `cd ../ && python example/aria-sdk-example.py`

## Distribution
- Once generated, copy `package/dist/2sw/aria_sdk-1.2.0.zip` and/or `package/dist/Msw/aria_sdk-1.2.0.zip` file and the `example/` folder to the release archive.
- Once generated, copy `package/dist/aria_sdk-X.X.X.zip` file and the `example/` folder to the release archive.
Binary file not shown.
Binary file not shown.
27 changes: 11 additions & 16 deletions python/package/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,16 @@
from distutils.core import run_setup

version = "1.2.0"
packages = ["2sw", "Msw"]

for suffix in packages:
dist_suffix = os.path.join("dist", suffix)
try:
shutil.rmtree(os.path.join("Aria", "SDK", "shared"))
except:
pass
dll_src_name = f"aria_sdk_{suffix}.dll"
dll_dst_name= "aria_sdk.dll"
for arch in ["x86", "x64"]:
os.makedirs(os.path.join("Aria", "SDK", "shared", "windows", arch))
shutil.copy(os.path.join("..", "dlls", "win", arch, dll_src_name), os.path.join("Aria", "SDK", "shared", "windows", arch, dll_dst_name))
run_setup("setup.py", ["sdist","--format=zip"])
os.makedirs(os.path.join(dist_suffix), exist_ok = True)
shutil.copy(os.path.join("dist", f"aria_sdk-{version}.zip"), dist_suffix)
os.remove(os.path.join("dist", f"aria_sdk-{version}.zip"))
try:
shutil.rmtree(os.path.join("Aria", "SDK", "shared"))
except:
pass
dll_dst_name= "aria_sdk.dll"

for arch in ["x86", "x64"]:
os.makedirs(os.path.join("Aria", "SDK", "shared", "windows", arch))
shutil.copy(os.path.join("..", "dll", "win", arch, dll_dst_name), os.path.join("Aria", "SDK", "shared", "windows", arch, dll_dst_name))

run_setup("setup.py", ["sdist","--format=zip"])

0 comments on commit 738dd2b

Please sign in to comment.