Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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