Skip to content

Commit a9598e5

Browse files
committed
build: drop miniupnpc dependency
1 parent a5fcfb7 commit a9598e5

File tree

6 files changed

+0
-99
lines changed

6 files changed

+0
-99
lines changed

CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ option(REDUCE_EXPORTS "Attempt to reduce exported symbols in the resulting execu
121121
option(WERROR "Treat compiler warnings as errors." OFF)
122122
option(WITH_CCACHE "Attempt to use ccache for compiling." ON)
123123

124-
option(WITH_MINIUPNPC "Enable UPnP." OFF)
125-
if(WITH_MINIUPNPC)
126-
find_package(MiniUPnPc MODULE REQUIRED)
127-
endif()
128-
129124
option(WITH_ZMQ "Enable ZMQ notifications." OFF)
130125
if(WITH_ZMQ)
131126
if(VCPKG_TARGET_TRIPLET)
@@ -234,7 +229,6 @@ if(BUILD_FOR_FUZZING)
234229
set(BUILD_WALLET_TOOL OFF)
235230
set(BUILD_GUI OFF)
236231
set(ENABLE_EXTERNAL_SIGNER OFF)
237-
set(WITH_MINIUPNPC OFF)
238232
set(WITH_ZMQ OFF)
239233
set(BUILD_TESTS OFF)
240234
set(BUILD_GUI_TESTS OFF)
@@ -612,7 +606,6 @@ if(ENABLE_WALLET)
612606
message(" - legacy wallets (Berkeley DB) ..... ${WITH_BDB}")
613607
endif()
614608
message(" external signer ..................... ${ENABLE_EXTERNAL_SIGNER}")
615-
message(" port mapping using UPnP ............. ${WITH_MINIUPNPC}")
616609
message(" ZeroMQ .............................. ${WITH_ZMQ}")
617610
message(" USDT tracing ........................ ${WITH_USDT}")
618611
message(" QR code (GUI) ....................... ${WITH_QRENCODE}")

CMakePresets.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
"ENABLE_WALLET": "ON",
8585
"WARN_INCOMPATIBLE_BDB": "OFF",
8686
"WITH_BDB": "ON",
87-
"WITH_MINIUPNPC": "ON",
8887
"WITH_MULTIPROCESS": "ON",
8988
"WITH_QRENCODE": "ON",
9089
"WITH_SQLITE": "ON",

cmake/module/FindMiniUPnPc.cmake

Lines changed: 0 additions & 84 deletions
This file was deleted.

src/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ target_link_libraries(bitcoin_node
294294
Boost::headers
295295
$<TARGET_NAME_IF_EXISTS:libevent::libevent>
296296
$<TARGET_NAME_IF_EXISTS:libevent::pthreads>
297-
$<TARGET_NAME_IF_EXISTS:MiniUPnPc::MiniUPnPc>
298297
$<TARGET_NAME_IF_EXISTS:bitcoin_zmq>
299298
$<TARGET_NAME_IF_EXISTS:USDT::headers>
300299
)

src/qt/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ target_link_libraries(bitcoinqt
133133
bitcoin_cli
134134
leveldb
135135
Boost::headers
136-
$<TARGET_NAME_IF_EXISTS:MiniUPnPc::MiniUPnPc>
137136
$<TARGET_NAME_IF_EXISTS:PkgConfig::libqrencode>
138137
$<$<PLATFORM_ID:Darwin>:-framework\ AppKit>
139138
$<$<CXX_COMPILER_ID:MSVC>:shlwapi>

vcpkg.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
],
1414
"default-features": [
1515
"wallet",
16-
"miniupnpc",
1716
"zeromq",
1817
"tests",
1918
"qt5"
@@ -31,10 +30,6 @@
3130
"description": "Enable Berkeley DB wallet support",
3231
"dependencies": [ "berkeleydb" ]
3332
},
34-
"miniupnpc": {
35-
"description": "Enable UPnP",
36-
"dependencies": [ "miniupnpc" ]
37-
},
3833
"zeromq": {
3934
"description": "Enable ZMQ notifications",
4035
"dependencies": [ "zeromq" ]

0 commit comments

Comments
 (0)