|
| 1 | +# Copyright (c) 2024-present The Bitcoin Core developers |
| 2 | +# Distributed under the MIT software license, see the accompanying |
| 3 | +# file COPYING or https://opensource.org/license/mit/. |
| 4 | + |
| 5 | +# TODO: libbitcoinkernel is a work in progress consensus engine |
| 6 | +# library, as more and more modules are decoupled from the |
| 7 | +# consensus engine, this list will shrink to only those |
| 8 | +# which are absolutely necessary. |
| 9 | +add_library(bitcoinkernel |
| 10 | + bitcoinkernel.cpp |
| 11 | + chain.cpp |
| 12 | + checks.cpp |
| 13 | + chainparams.cpp |
| 14 | + coinstats.cpp |
| 15 | + context.cpp |
| 16 | + cs_main.cpp |
| 17 | + disconnected_transactions.cpp |
| 18 | + mempool_removal_reason.cpp |
| 19 | + ../arith_uint256.cpp |
| 20 | + ../chain.cpp |
| 21 | + ../coins.cpp |
| 22 | + ../compressor.cpp |
| 23 | + ../consensus/merkle.cpp |
| 24 | + ../consensus/tx_check.cpp |
| 25 | + ../consensus/tx_verify.cpp |
| 26 | + ../core_read.cpp |
| 27 | + ../dbwrapper.cpp |
| 28 | + ../deploymentinfo.cpp |
| 29 | + ../deploymentstatus.cpp |
| 30 | + ../flatfile.cpp |
| 31 | + ../hash.cpp |
| 32 | + ../logging.cpp |
| 33 | + ../node/blockstorage.cpp |
| 34 | + ../node/chainstate.cpp |
| 35 | + ../node/utxo_snapshot.cpp |
| 36 | + ../policy/feerate.cpp |
| 37 | + ../policy/packages.cpp |
| 38 | + ../policy/policy.cpp |
| 39 | + ../policy/rbf.cpp |
| 40 | + ../policy/settings.cpp |
| 41 | + ../policy/truc_policy.cpp |
| 42 | + ../pow.cpp |
| 43 | + ../primitives/block.cpp |
| 44 | + ../primitives/transaction.cpp |
| 45 | + ../pubkey.cpp |
| 46 | + ../random.cpp |
| 47 | + ../randomenv.cpp |
| 48 | + ../script/interpreter.cpp |
| 49 | + ../script/script.cpp |
| 50 | + ../script/script_error.cpp |
| 51 | + ../script/sigcache.cpp |
| 52 | + ../script/solver.cpp |
| 53 | + ../signet.cpp |
| 54 | + ../streams.cpp |
| 55 | + ../support/lockedpool.cpp |
| 56 | + ../sync.cpp |
| 57 | + ../txdb.cpp |
| 58 | + ../txmempool.cpp |
| 59 | + ../uint256.cpp |
| 60 | + ../util/chaintype.cpp |
| 61 | + ../util/check.cpp |
| 62 | + ../util/feefrac.cpp |
| 63 | + ../util/fs.cpp |
| 64 | + ../util/fs_helpers.cpp |
| 65 | + ../util/hasher.cpp |
| 66 | + ../util/moneystr.cpp |
| 67 | + ../util/rbf.cpp |
| 68 | + ../util/serfloat.cpp |
| 69 | + ../util/signalinterrupt.cpp |
| 70 | + ../util/strencodings.cpp |
| 71 | + ../util/string.cpp |
| 72 | + ../util/syserror.cpp |
| 73 | + ../util/threadnames.cpp |
| 74 | + ../util/time.cpp |
| 75 | + ../util/tokenpipe.cpp |
| 76 | + ../validation.cpp |
| 77 | + ../validationinterface.cpp |
| 78 | + ../versionbits.cpp |
| 79 | +) |
| 80 | +target_link_libraries(bitcoinkernel |
| 81 | + PRIVATE |
| 82 | + core_interface |
| 83 | + bitcoin_clientversion |
| 84 | + bitcoin_crypto |
| 85 | + leveldb |
| 86 | + secp256k1 |
| 87 | + PUBLIC |
| 88 | + Boost::headers |
| 89 | +) |
| 90 | + |
| 91 | +# libbitcoinkernel requires default symbol visibility, explicitly |
| 92 | +# specify that here so that things still work even when user |
| 93 | +# configures with -DREDUCE_EXPORTS=ON |
| 94 | +# |
| 95 | +# Note this is a quick hack that will be removed as we |
| 96 | +# incrementally define what to export from the library. |
| 97 | +set_target_properties(bitcoinkernel PROPERTIES |
| 98 | + CXX_VISIBILITY_PRESET default |
| 99 | +) |
0 commit comments