Skip to content
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

Implemented CLibMojo - mojo for C native libraries compilation. #3260

Closed
wants to merge 21 commits into from

Conversation

c71n93
Copy link
Member

@c71n93 c71n93 commented Jul 8, 2024

Related to #3236

CLibMojo is necessary for syscall implementation via JNI. Since we cannot use JNA in runtime, we need to write syscalls wrapper ourselves using JNI. This mojo will compile our syscall wrapper (check example eo-runtime/src/main/c/eo/lib/syscall.c) and place target library in specific folder in eo-runtime.

This library then can be used via JNI. Thus, we will be able to move eo-sys logic in here.


PR-Codex overview

This PR focuses on adding C source files, updating Maven workflows, and introducing classes for JNI functionality.

Detailed summary

  • Added C source files for testing
  • Updated Maven workflows for different operating systems
  • Added classes for JNI functionality

The following files were skipped due to too many changes: eo-maven-plugin/src/test/java/org/eolang/maven/NativeCLibTest.java, eo-maven-plugin/src/main/java/org/eolang/maven/NativeCLib.java, eo-maven-plugin/src/test/java/org/eolang/maven/CLibMojoTest.java

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@c71n93 c71n93 closed this Aug 7, 2024
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.

1 participant