mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
332655cb52
The use of `PACKAGE_NAME` for the project's variable name is problematic, as this name is commonly used in CMake's interface variables. If third-party CMake code handles with scopes improperly, our `PACKAGE_NAME` variable could end up with an unexpected value. This change avoids such conflicts by renaming all `PACKAGE_*` variables to `CLIENT_*`.
18 lines
800 B
CMake
18 lines
800 B
CMake
# Copyright (c) 2023-present The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or https://opensource.org/license/mit/.
|
|
|
|
function(generate_setup_nsi)
|
|
set(abs_top_srcdir ${PROJECT_SOURCE_DIR})
|
|
set(abs_top_builddir ${PROJECT_BINARY_DIR})
|
|
set(CLIENT_URL ${PROJECT_HOMEPAGE_URL})
|
|
set(CLIENT_TARNAME "bitcoin")
|
|
set(BITCOIN_GUI_NAME "bitcoin-qt")
|
|
set(BITCOIN_DAEMON_NAME "bitcoind")
|
|
set(BITCOIN_CLI_NAME "bitcoin-cli")
|
|
set(BITCOIN_TX_NAME "bitcoin-tx")
|
|
set(BITCOIN_WALLET_TOOL_NAME "bitcoin-wallet")
|
|
set(BITCOIN_TEST_NAME "test_bitcoin")
|
|
set(EXEEXT ${CMAKE_EXECUTABLE_SUFFIX})
|
|
configure_file(${PROJECT_SOURCE_DIR}/share/setup.nsi.in ${PROJECT_BINARY_DIR}/bitcoin-win64-setup.nsi USE_SOURCE_PERMISSIONS @ONLY)
|
|
endfunction()
|