Skip to content

Generated digidocPINVOKE.cs contained bad library name without lib prefix in macOS#670

Open
svenzik wants to merge 1 commit intoopen-eid:masterfrom
svenzik:WE2-1073
Open

Generated digidocPINVOKE.cs contained bad library name without lib prefix in macOS#670
svenzik wants to merge 1 commit intoopen-eid:masterfrom
svenzik:WE2-1073

Conversation

@svenzik
Copy link

@svenzik svenzik commented Apr 30, 2025

WE2-1073

Signed-off-by: Sven Mitt svenzik@users.noreply.github.com

How to test:

Install swig and all dependencies. Use macOS and run

cmake --preset macos -DCMAKE_BUILD_TYPE=RelWithDebInfo && cmake --build --preset macos

Test result with:

grep DllImport ./build/macos/src/csharp/digidocPINVOKE.cs | sed -e 's/, Entry.*/.../g'|sort|uniq

Should be:
[global::System.Runtime.InteropServices.DllImport("digidoc"...
[global::System.Runtime.InteropServices.DllImport("libdigidoc_csharp"...
[global::System.Runtime.InteropServices.DllImport("libdigidoc_csharp"...

…efix in macOS. This commit fixes the generated code to global::System.Runtime.InteropServices.DllImport("libdigidoc_csharp",...

WE2-1073

Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants