forked from osmocom/wireshark
CMake+NSIS: More variable cleanup.
This commit is contained in:
parent
c9396bba11
commit
5d61db3ad5
|
@ -75,9 +75,7 @@ set(USBPCAP_PACKAGE_VERSION "1.5.4.0")
|
||||||
# - Sync the various version names between CMake and NSIS.
|
# - Sync the various version names between CMake and NSIS.
|
||||||
# - Set CMakeLists.txt version strings in tools/make-version.pl
|
# - Set CMakeLists.txt version strings in tools/make-version.pl
|
||||||
# - Add a VERSION_EXTRA cmake option
|
# - Add a VERSION_EXTRA cmake option
|
||||||
set (VERSION ${PROJECT_VERSION})
|
|
||||||
set (PRODUCT_VERSION ${PROJECT_MAJOR_VERSION}.${PROJECT_MINOR_VERSION}.${PROJECT_PATCH_VERSION}.${PROJECT_BUILD_VERSION})
|
set (PRODUCT_VERSION ${PROJECT_MAJOR_VERSION}.${PROJECT_MINOR_VERSION}.${PROJECT_PATCH_VERSION}.${PROJECT_BUILD_VERSION})
|
||||||
set (LOG_VERSION ${LOG_PROJECT_VERSION})
|
|
||||||
set (LOG_PRODUCT_VERSION ${LOG_PROJECT_MAJOR_VERSION}.${LOG_PROJECT_MINOR_VERSION}.${PROJECT_PATCH_VERSION}.${PROJECT_BUILD_VERSION})
|
set (LOG_PRODUCT_VERSION ${LOG_PROJECT_MAJOR_VERSION}.${LOG_PROJECT_MINOR_VERSION}.${PROJECT_PATCH_VERSION}.${PROJECT_BUILD_VERSION})
|
||||||
|
|
||||||
#add_custom_target(build_nsis_package
|
#add_custom_target(build_nsis_package
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
;Add your custom plugins directives here
|
;Add your custom plugins directives here
|
||||||
; Example:
|
; Example:
|
||||||
;File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\foo.dll"
|
;File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\foo.dll"
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
#define WIRESHARK_TARGET_PLATFORM @WIRESHARK_TARGET_PLATFORM@
|
#define WIRESHARK_TARGET_PLATFORM @WIRESHARK_TARGET_PLATFORM@
|
||||||
#define TARGET_MACHINE @TARGET_MACHINE@
|
#define TARGET_MACHINE @TARGET_MACHINE@
|
||||||
#define EXTRA_INSTALLER_DIR "@EXTRA_INSTALLER_DIR@"
|
#define EXTRA_INSTALLER_DIR "@EXTRA_INSTALLER_DIR@"
|
||||||
#define VERSION @LOG_VERSION@
|
#define VERSION @LOG_PROJECT_VERSION@
|
||||||
#define PRODUCT_VERSION @LOG_PRODUCT_VERSION@
|
#define PRODUCT_VERSION @LOG_PRODUCT_VERSION@
|
||||||
# Plugins
|
# Plugins
|
||||||
#define VERSION_MAJOR @PROJECT_MAJOR_VERSION@
|
#define MAJOR_VERSION @PROJECT_MAJOR_VERSION@
|
||||||
#define VERSION_MINOR @PROJECT_MINOR_VERSION@
|
#define MINOR_VERSION @PROJECT_MINOR_VERSION@
|
||||||
|
|
||||||
#define VCREDIST_DIR "@VCREDIST_DIR@"
|
#define VCREDIST_DIR "@VCREDIST_DIR@"
|
||||||
#define VCREDIST_EXE "@VCREDIST_EXE@"
|
#define VCREDIST_EXE "@VCREDIST_EXE@"
|
||||||
|
|
|
@ -841,8 +841,8 @@ WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "URLUpdateInfo" "https://www.
|
||||||
|
|
||||||
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "NoModify" 1
|
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "NoModify" 1
|
||||||
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "NoRepair" 1
|
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "NoRepair" 1
|
||||||
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "VersionMajor" ${VERSION_MAJOR}
|
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "VersionMajor" ${MAJOR_VERSION}
|
||||||
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "VersionMinor" ${VERSION_MINOR}
|
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "VersionMinor" ${MINOR_VERSION}
|
||||||
|
|
||||||
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "UninstallString" '"$INSTDIR\${UNINSTALLER_NAME}"'
|
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "UninstallString" '"$INSTDIR\${UNINSTALLER_NAME}"'
|
||||||
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "QuietUninstallString" '"$INSTDIR\${UNINSTALLER_NAME}" /S'
|
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "QuietUninstallString" '"$INSTDIR\${UNINSTALLER_NAME}" /S'
|
||||||
|
@ -913,23 +913,23 @@ SectionGroup "Plugins & Extensions" SecPluginsGroup
|
||||||
|
|
||||||
Section "Dissector Plugins" SecPlugins
|
Section "Dissector Plugins" SecPlugins
|
||||||
;-------------------------------------------
|
;-------------------------------------------
|
||||||
SetOutPath '$INSTDIR\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan'
|
SetOutPath '$INSTDIR\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan'
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\falco-bridge.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\falco-bridge.dll"
|
||||||
SetOutPath '$INSTDIR\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\falco'
|
SetOutPath '$INSTDIR\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\falco'
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\falco\cloudtrail.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\falco\cloudtrail.dll"
|
||||||
!include "custom_plugins.txt"
|
!include "custom_plugins.txt"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Tree Statistics Plugin" SecStatsTree
|
Section "Tree Statistics Plugin" SecStatsTree
|
||||||
;-------------------------------------------
|
;-------------------------------------------
|
||||||
SetOutPath '$INSTDIR\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan'
|
SetOutPath '$INSTDIR\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan'
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\stats_tree.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\stats_tree.dll"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Mate - Meta Analysis and Tracing Engine" SecMate
|
Section "Mate - Meta Analysis and Tracing Engine" SecMate
|
||||||
;-------------------------------------------
|
;-------------------------------------------
|
||||||
SetOutPath '$INSTDIR\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan'
|
SetOutPath '$INSTDIR\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan'
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\mate.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\mate.dll"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Configuration Profiles" SecProfiles
|
Section "Configuration Profiles" SecProfiles
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
#define NPCAP_PACKAGE_VERSION @NPCAP_PACKAGE_VERSION@
|
#define NPCAP_PACKAGE_VERSION @NPCAP_PACKAGE_VERSION@
|
||||||
#define USBPCAP_PACKAGE_VERSION @USBPCAP_PACKAGE_VERSION@
|
#define USBPCAP_PACKAGE_VERSION @USBPCAP_PACKAGE_VERSION@
|
||||||
#define VERSION @PROJECT_VERSION@
|
#define VERSION @PROJECT_VERSION@
|
||||||
#define VERSION_MAJOR @PROJECT_VERSION_MAJOR@
|
#define MAJOR_VERSION @PROJECT_MAJOR_VERSION@
|
||||||
#define VERSION_MINOR @PROJECT_VERSION_MINOR@
|
#define MINOR_VERSION @PROJECT_MINOR_VERSION@
|
||||||
#define PRODUCT_VERSION @PRODUCT_VERSION@
|
#define PRODUCT_VERSION @PRODUCT_VERSION@
|
||||||
|
|
||||||
#define VCREDIST_DIR "@VCREDIST_DIR@"
|
#define VCREDIST_DIR "@VCREDIST_DIR@"
|
||||||
|
|
|
@ -894,8 +894,8 @@ WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "URLUpdateInfo" "https://www.
|
||||||
|
|
||||||
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "NoModify" 1
|
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "NoModify" 1
|
||||||
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "NoRepair" 1
|
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "NoRepair" 1
|
||||||
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "VersionMajor" ${VERSION_MAJOR}
|
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "VersionMajor" ${MAJOR_VERSION}
|
||||||
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "VersionMinor" ${VERSION_MINOR}
|
WriteRegDWORD HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "VersionMinor" ${MINOR_VERSION}
|
||||||
|
|
||||||
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "UninstallString" '"$INSTDIR\${UNINSTALLER_NAME}"'
|
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "UninstallString" '"$INSTDIR\${UNINSTALLER_NAME}"'
|
||||||
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "QuietUninstallString" '"$INSTDIR\${UNINSTALLER_NAME}" /S'
|
WriteRegStr HKEY_LOCAL_MACHINE "${UNINSTALL_PATH}" "QuietUninstallString" '"$INSTDIR\${UNINSTALLER_NAME}" /S'
|
||||||
|
@ -1014,55 +1014,55 @@ SectionGroup "Plugins & Extensions" SecPluginsGroup
|
||||||
|
|
||||||
Section "Dissector Plugins" SecPlugins
|
Section "Dissector Plugins" SecPlugins
|
||||||
;-------------------------------------------
|
;-------------------------------------------
|
||||||
SetOutPath '$INSTDIR\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan'
|
SetOutPath '$INSTDIR\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan'
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\ethercat.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\ethercat.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\gryphon.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\gryphon.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\irda.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\irda.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\opcua.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\opcua.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\profinet.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\profinet.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\unistim.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\unistim.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\wimax.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\wimax.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\wimaxasncp.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\wimaxasncp.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\wimaxmacphy.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\wimaxmacphy.dll"
|
||||||
!include "custom_plugins.txt"
|
!include "custom_plugins.txt"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Tree Statistics Plugin" SecStatsTree
|
Section "Tree Statistics Plugin" SecStatsTree
|
||||||
;-------------------------------------------
|
;-------------------------------------------
|
||||||
SetOutPath '$INSTDIR\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan'
|
SetOutPath '$INSTDIR\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan'
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\stats_tree.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\stats_tree.dll"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Mate - Meta Analysis and Tracing Engine" SecMate
|
Section "Mate - Meta Analysis and Tracing Engine" SecMate
|
||||||
;-------------------------------------------
|
;-------------------------------------------
|
||||||
SetOutPath '$INSTDIR\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan'
|
SetOutPath '$INSTDIR\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan'
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\mate.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\mate.dll"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
|
||||||
Section "TRANSUM - network and application performance analysis" SecTransum
|
Section "TRANSUM - network and application performance analysis" SecTransum
|
||||||
;-------------------------------------------
|
;-------------------------------------------
|
||||||
SetOutPath '$INSTDIR\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan'
|
SetOutPath '$INSTDIR\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan'
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\epan\transum.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\epan\transum.dll"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "File type plugins - capture file support" SecWiretap
|
Section "File type plugins - capture file support" SecWiretap
|
||||||
;-------------------------------------------
|
;-------------------------------------------
|
||||||
SetOutPath '$INSTDIR\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\wiretap'
|
SetOutPath '$INSTDIR\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\wiretap'
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\wiretap\usbdump.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\wiretap\usbdump.dll"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Codec plugins" SecCodec
|
Section "Codec plugins" SecCodec
|
||||||
;-------------------------------------------
|
;-------------------------------------------
|
||||||
SetOutPath '$INSTDIR\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\codecs'
|
SetOutPath '$INSTDIR\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\codecs'
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\codecs\g711.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\codecs\g711.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\codecs\g722.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\codecs\g722.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\codecs\g726.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\codecs\g726.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\codecs\g729.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\codecs\g729.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\codecs\l16mono.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\codecs\l16mono.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\codecs\sbc.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\codecs\sbc.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\codecs\ilbc.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\codecs\ilbc.dll"
|
||||||
File "${STAGING_DIR}\plugins\${VERSION_MAJOR}.${VERSION_MINOR}\codecs\opus_dec.dll"
|
File "${STAGING_DIR}\plugins\${MAJOR_VERSION}.${MINOR_VERSION}\codecs\opus_dec.dll"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Configuration Profiles" SecProfiles
|
Section "Configuration Profiles" SecProfiles
|
||||||
|
|
Loading…
Reference in New Issue