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

Refactor sys-crate Cmake build logic #301

Merged
merged 3 commits into from
Jan 4, 2024
Merged

Conversation

justsmth
Copy link
Contributor

Issues:

N/A

Description of changes:

  • Refactor CMake-specific build logic into a separate module.
  • Updated both aws-lc-sys and aws-lc-fips-sys.

Call-outs:

  • Created a Builder trait to provide an abstraction.

Testing:

N/A

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@justsmth justsmth requested a review from a team as a code owner December 18, 2023 19:28
@codecov-commenter
Copy link

codecov-commenter commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4de01fc) 95.27% compared to head (9c0a2d7) 95.27%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #301   +/-   ##
=======================================
  Coverage   95.27%   95.27%           
=======================================
  Files          55       55           
  Lines        7010     7010           
=======================================
  Hits         6679     6679           
  Misses        331      331           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

aws-lc-fips-sys/builder/cmake_builder.rs Outdated Show resolved Hide resolved
aws-lc-sys/builder/cmake_builder.rs Outdated Show resolved Hide resolved
}

if target_vendor() == "apple" {
if target_os().trim() == "ios" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to .trim() on other calls to target_os() (e.g. L88)?

i suppose similar question applies to non-fips

Comment on lines +17 to +22
fn test_perl_command() -> bool {
test_command("perl".as_ref(), &["--version".as_ref()])
}

fn test_go_command() -> bool {
test_command("go".as_ref(), &["version".as_ref()])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to enforce minimum versions here?

i suppose similar question applies to non-fips

@justsmth justsmth merged commit 6aea85b into aws:main Jan 4, 2024
104 of 109 checks passed
@justsmth justsmth deleted the cmake-refactor branch August 28, 2024 17:06
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.

4 participants