forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 5
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: Add CMake-based build system (6 of N) #15
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b2bea9f
[FIXUP] cmake: Consider `ASM` option when checking for `HAVE_64BIT_ASM`
hebasto 5fc2cee
[FIXUP] cmake: Add workaround for https://gitlab.kitware.com/cmake/cm…
hebasto 1934755
cmake: Build `bitcoin-cli` executable
hebasto d1c319d
cmake: Build `bitcoin-tx` executable
hebasto f944ccd
cmake: Build `bitcoin-util` executable
hebasto 2e3721e
cmake: Add wallet functionality
hebasto 2fd303f
test: Make `util/test_runner.py` honor `BITCOINUTIL` and `BITCOINTX`
hebasto cb7dc94
test: Explicitly specify directory where to search tests for
hebasto a2c3493
cmake: Add test config and runners
hebasto 751453f
cmake: Build `bench_bitcoin` executable
hebasto cb19814
cmake: Build `test_bitcoin` executable
hebasto a112470
cmake: Include CTest
hebasto 2d8930e
FIXUP: Same as PR27656
hebasto 43123cf
FIXUP: Same as PR27458
hebasto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright (c) 2023 The Bitcoin Core developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
include(GenerateHeaders) | ||
generate_header_from_raw(data/block413567.raw) | ||
|
||
add_executable(bench_bitcoin | ||
bench_bitcoin.cpp | ||
bench.cpp | ||
data.cpp | ||
nanobench.cpp | ||
${CMAKE_CURRENT_BINARY_DIR}/data/block413567.raw.h | ||
# Benchmarks: | ||
addrman.cpp | ||
base58.cpp | ||
bech32.cpp | ||
block_assemble.cpp | ||
ccoins_caching.cpp | ||
chacha20.cpp | ||
chacha_poly_aead.cpp | ||
checkblock.cpp | ||
checkqueue.cpp | ||
crypto_hash.cpp | ||
descriptors.cpp | ||
duplicate_inputs.cpp | ||
examples.cpp | ||
gcs_filter.cpp | ||
hashpadding.cpp | ||
load_external.cpp | ||
lockedpool.cpp | ||
logging.cpp | ||
mempool_eviction.cpp | ||
mempool_stress.cpp | ||
merkle_root.cpp | ||
peer_eviction.cpp | ||
poly1305.cpp | ||
pool.cpp | ||
prevector.cpp | ||
rollingbloom.cpp | ||
rpc_blockchain.cpp | ||
rpc_mempool.cpp | ||
strencodings.cpp | ||
util_time.cpp | ||
verify_script.cpp | ||
) | ||
|
||
target_link_libraries(bench_bitcoin | ||
test_util | ||
leveldb | ||
univalue | ||
Boost::headers | ||
) | ||
|
||
if(ENABLE_WALLET) | ||
target_sources(bench_bitcoin | ||
PRIVATE | ||
coin_selection.cpp | ||
wallet_balance.cpp | ||
wallet_create_tx.cpp | ||
wallet_loading.cpp | ||
) | ||
target_link_libraries(bench_bitcoin bitcoin_wallet) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright (c) 2023 The Bitcoin Core developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
add_library(test_util STATIC EXCLUDE_FROM_ALL | ||
blockfilter.cpp | ||
coins.cpp | ||
json.cpp | ||
logging.cpp | ||
mining.cpp | ||
net.cpp | ||
script.cpp | ||
setup_common.cpp | ||
str.cpp | ||
transaction_utils.cpp | ||
txmempool.cpp | ||
validation.cpp | ||
) | ||
target_link_libraries(test_util | ||
PRIVATE | ||
bitcoin_common | ||
bitcoin_node | ||
leveldb | ||
univalue | ||
Boost::headers | ||
) | ||
|
||
if(ENABLE_WALLET) | ||
target_sources(test_util | ||
PRIVATE | ||
../../wallet/test/util.cpp | ||
) | ||
endif() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nit: Is there a particular reason these are relative paths? Otherwise, I'd prefer an absolute path for these (also in the following commits).
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.
We can improve it later, after dropping Autotools, by moving source files into better directories.