-
Notifications
You must be signed in to change notification settings - Fork 38
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
Build the C API with meson rather than cargo-c #108
Conversation
24a058f
to
66d4ffd
Compare
The unsigned int type seems more reasonable, as the size of the attestation report should fit in 4 bytes. Signed-off-by: Tyler Fanelli <[email protected]>
Rather than using cargo-c and building with pkg-config, we can directly incorporate the meson build system to build the library's C API. In doing this, projects using meson will be able to "wrap" the library and directly link with their projects. Signed-off-by: Tyler Fanelli <[email protected]>
Also, there are some linting errors which need to be patched. |
90137fa
to
11d0a83
Compare
The SEV launch C APIs use the launch::sev module, which requires the sev feature enabled. Signed-off-by: Tyler Fanelli <[email protected]>
@larrydewey Can you re-review? |
@@ -21,13 +21,18 @@ maintenance = { status = "actively-developed" } | |||
is-it-maintained-issue-resolution = { repository = "virtee/sev" } | |||
is-it-maintained-open-issues = { repository = "virtee/sev" } | |||
|
|||
[lib] | |||
crate-type = ["staticlib", "dylib", "rlib"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the idea of dylib
here? Unfortunately it breaks builds with panic="abort"
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, dylib
is really for macOS which isn't really a concern here. I think it's safe to remove this. @larrydewey do you agree?
Rather than using
cargo-c
and building withpkg-config
, we can directly incorporate the meson build system to build the library's C API. In doing this, projects usingmeson
will be able to "wrap" the library and directly link with their projects.