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

cmake: Redesign bitcoin_crypto and bitcoin_consensus libraries #61

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

hebasto
Copy link
Owner

@hebasto hebasto commented Dec 11, 2023

Source files of both bitcoin_crypto and bitcoin_consensus libraries factored out into interface libraries, which allows us to reuse them when compiling with different build options.

That is required to build upcoming shared libraries that, for example, use additional -DBUILD_BITCOIN_INTERNAL preprocessor flag.

No behavior change.

Split from #41.


What to test:

  1. Absence of behavior change.
  2. The minimum supported CMake 3.16.

With this command, we are free to `include(CheckSourceCompilesAndLinks)`
wherever we want. It won't be duplicated.
The bitcoin_crypto_base interface library only keeps a list of source
files, so we can compile them with different preprocessor definitions,
at least with and without -DBUILD_BITCOIN_INTERNAL.
The bitcoin_consensus_sources interface library only keeps a list of
source files, so we can compile them with different preprocessor
definitions, at least with and without -DBUILD_BITCOIN_INTERNAL.
@hebasto
Copy link
Owner Author

hebasto commented Dec 11, 2023

Copy link

@TheCharlatan TheCharlatan left a comment

Choose a reason for hiding this comment

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

ACK 6433281

Checked that the correct extensions are still activated in crypto, and did not notice behavior changes. Did not check the minimum supported version.

Copy link

@vasild vasild left a comment

Choose a reason for hiding this comment

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

light ACK 6433281

@hebasto hebasto merged commit 7a75267 into cmake-staging Dec 12, 2023
6 checks passed
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.

3 participants