-
Notifications
You must be signed in to change notification settings - Fork 36.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Rename
PACKAGE_*
variables to BITCOIN_PACKAGE_*
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 prefixing all `PACKAGE_*` variables with `BITCOIN_`.
- Loading branch information
Showing
7 changed files
with
26 additions
and
26 deletions.
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Name "@PACKAGE_NAME@ (64-bit)" | ||
Name "@BITCOIN_PACKAGE_NAME@ (64-bit)" | ||
|
||
RequestExecutionLevel highest | ||
SetCompressor /SOLID lzma | ||
|
@@ -11,7 +11,7 @@ Unicode true | |
|
||
# General Symbol Definitions | ||
!define REGKEY "SOFTWARE\$(^Name)" | ||
!define COMPANY "@PACKAGE_NAME@ project" | ||
!define COMPANY "@BITCOIN_PACKAGE_NAME@ project" | ||
!define URL @PACKAGE_URL@ | ||
|
||
# MUI Symbol Definitions | ||
|
@@ -24,7 +24,7 @@ Unicode true | |
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM | ||
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY} | ||
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup | ||
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "@PACKAGE_NAME@" | ||
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "@BITCOIN_PACKAGE_NAME@" | ||
!define MUI_FINISHPAGE_RUN "$WINDIR\explorer.exe" | ||
!define MUI_FINISHPAGE_RUN_PARAMETERS $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@ | ||
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" | ||
|
@@ -58,12 +58,12 @@ XPStyle on | |
BrandingText " " | ||
ShowInstDetails show | ||
VIProductVersion @CLIENT_VERSION_MAJOR@.@CLIENT_VERSION_MINOR@.@[email protected] | ||
VIAddVersionKey ProductName "@PACKAGE_NAME@" | ||
VIAddVersionKey ProductVersion "@PACKAGE_VERSION@" | ||
VIAddVersionKey ProductName "@BITCOIN_PACKAGE_NAME@" | ||
VIAddVersionKey ProductVersion "@BITCOIN_PACKAGE_VERSION@" | ||
VIAddVersionKey CompanyName "${COMPANY}" | ||
VIAddVersionKey CompanyWebsite "${URL}" | ||
VIAddVersionKey FileVersion "@PACKAGE_VERSION@" | ||
VIAddVersionKey FileDescription "Installer for @PACKAGE_NAME@" | ||
VIAddVersionKey FileVersion "@BITCOIN_PACKAGE_VERSION@" | ||
VIAddVersionKey FileDescription "Installer for @BITCOIN_PACKAGE_NAME@" | ||
VIAddVersionKey LegalCopyright "Copyright (C) 2009-@COPYRIGHT_YEAR@ @COPYRIGHT_HOLDERS_FINAL@" | ||
InstallDirRegKey HKCU "${REGKEY}" Path | ||
ShowUninstDetails show | ||
|
@@ -95,11 +95,11 @@ Section -post SEC0001 | |
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application | ||
CreateDirectory $SMPROGRAMS\$StartMenuGroup | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@ | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, 64-bit).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 1 | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@BITCOIN_PACKAGE_NAME@ (testnet, 64-bit).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 1 | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" $INSTDIR\uninstall.exe | ||
!insertmacro MUI_STARTMENU_WRITE_END | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "@PACKAGE_VERSION@" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "@BITCOIN_PACKAGE_VERSION@" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" Publisher "${COMPANY}" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" URLInfoAbout "${URL}" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayIcon $INSTDIR\bitcoin-qt.exe | ||
|
@@ -140,7 +140,7 @@ Section -un.post UNSEC0001 | |
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, 64-bit).lnk" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@BITCOIN_PACKAGE_NAME@ (testnet, 64-bit).lnk" | ||
Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk" | ||
Delete /REBOOTOK $INSTDIR\uninstall.exe | ||
Delete /REBOOTOK $INSTDIR\debug.log | ||
|
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