Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions builds/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ if ( MSVC )
set( CMAKE_SHARED_LIBRARY_PREFIX "lib" )
endif()

include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
include(CheckCXXSourceCompiles)

#------------------------------------------------------------------------------
# Project options.
#------------------------------------------------------------------------------
Expand All @@ -106,13 +102,12 @@ set( libbitcoin_network_VERSION ${libbitcoin-network_VERSION} )

find_package( Boost 1.86.0 REQUIRED )

#------------------------------------------------------------------------------
# Architecture options.
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Compiler options.
#------------------------------------------------------------------------------
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
include(CheckCXXSourceCompiles)

check_cxx_compiler_flag( "-Wall" HAS_FLAG_WALL )
if ( !HAS_FLAG_WALL )
Expand Down
6 changes: 2 additions & 4 deletions builds/cmake/install-cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -493,14 +493,12 @@ main()
libbitcoin_system_FLAGS=()

libbitcoin_system_OPTIONS=(
"-Dwith-tests:BOOL=OFF"
"-Dwith-examples:BOOL=OFF")
"-Dwith-tests:BOOL=OFF")

libbitcoin_database_FLAGS=()

libbitcoin_database_OPTIONS=(
"-Dwith-tests:BOOL=OFF"
"-Dwith-tools:BOOL=OFF")
"-Dwith-tests:BOOL=OFF")

libbitcoin_network_FLAGS=()

Expand Down
6 changes: 2 additions & 4 deletions builds/cmake/install-presets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -509,14 +509,12 @@ main()
libbitcoin_system_FLAGS=()

libbitcoin_system_OPTIONS=(
"-Dwith-tests:BOOL=OFF"
"-Dwith-examples:BOOL=OFF")
"-Dwith-tests:BOOL=OFF")

libbitcoin_database_FLAGS=()

libbitcoin_database_OPTIONS=(
"-Dwith-tests:BOOL=OFF"
"-Dwith-tools:BOOL=OFF")
"-Dwith-tests:BOOL=OFF")

libbitcoin_network_FLAGS=()

Expand Down
2 changes: 0 additions & 2 deletions builds/gnu/install-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -525,15 +525,13 @@ main()

libbitcoin_system_OPTIONS=(
"--without-tests"
"--without-examples"
"${with_boost}"
"${with_pkgconfigdir}")

libbitcoin_database_FLAGS=()

libbitcoin_database_OPTIONS=(
"--without-tests"
"--without-tools"
"${with_boost}"
"${with_pkgconfigdir}")

Expand Down
2 changes: 0 additions & 2 deletions builds/msvc/build-msvc.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,8 @@ if "!libbitcoin_node_TAG!" == "" (
)

set "REMAPPED_PARAMS=!REMAPPED_PARAMS! !libbitcoin-system_PARAMS!"
set "REMAPPED_PARAMS=!REMAPPED_PARAMS! !libbitcoin-system-examples_PARAMS!"
set "REMAPPED_PARAMS=!REMAPPED_PARAMS! !libbitcoin-system-test_PARAMS!"
set "REMAPPED_PARAMS=!REMAPPED_PARAMS! !libbitcoin-database_PARAMS!"
set "REMAPPED_PARAMS=!REMAPPED_PARAMS! !libbitcoin-database-tools_PARAMS!"
set "REMAPPED_PARAMS=!REMAPPED_PARAMS! !libbitcoin-database-test_PARAMS!"
set "REMAPPED_PARAMS=!REMAPPED_PARAMS! !libbitcoin-network_PARAMS!"
set "REMAPPED_PARAMS=!REMAPPED_PARAMS! !libbitcoin-network-test_PARAMS!"
Expand Down
25 changes: 0 additions & 25 deletions include/bitcoin/node/define.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,28 +76,3 @@ using type_id = network::messages::peer::inventory_item::type_id;
} // namespace libbitcoin

#endif

// define.hpp is the common include for /node.
// All non-node headers include define.hpp.
// Node inclusions are chained as follows.

// version : <generated>
// error : version
// events : error
// chase : events
// define : chase

// Other directory common includes are not internally chained.
// Each header includes only its required common headers.

// estimator : define
// settings : define
// configuration : define settings
// parser : define configuration
// /chasers : define configuration estimator [forward: full_node]
// /channels : define configuration
// full_node : define estimator /chasers
// session : define estimator [forward: full_node]
// /messages : define
// /protocols : define estimator /channels [session.hpp]
// /sessions : define /protocols [forward: full_node]
46 changes: 46 additions & 0 deletions src/define.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* Copyright (c) 2011-2026 libbitcoin developers
*
* This file is part of libbitcoin.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <bitcoin/node/define.hpp>

// define.hpp is the common include for /node.
// All non-node headers include define.hpp.
// Node inclusions are chained as follows.

// version : <generated>
// error : version <bitcoin/system>
// events : error
// chase : events <bitcoin/database>
// define : chase <bitcoin/network>

// Other directory common includes are not internally chained.
// Each header includes only its required common headers.

// block_arena : define
// block_memory : block_arena
// settings : define
// configuration : settings
// estimator : define
// /chasers : configuration estimator [forward: full_node]
// /channels : configuration
// /protocols : /channels /chasers [sessions/session.hpp]
// /sessions : /protocols [forward: full_node]
// full_node : /sessions

// When a symbol is unexplainably undefined, its defining include is probably
// creating the circularity.
Loading