From e3c263c01236e7c31ec23f6c3d8750d7e92fb5a3 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 6 Mar 2018 15:29:34 -0800 Subject: NSIS, WiX: Handle the presence or absence of mmdbresolve. Only install mmdbresolve if MAXMINDDB_FOUND is true. Fixup the Qt about box and WiX GTK defines while we're here. Change-Id: I7ac3c21ddb4aebc1dae1c3d8cfd2bcafc4139d2e Reviewed-on: https://code.wireshark.org/review/26299 Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- packaging/wix/CMakeLists.txt | 13 +++++++++---- packaging/wix/ComponentGroups.wxi | 4 +++- packaging/wix/Features.wxi | 2 ++ packaging/wix/WiresharkOptionsDlg.wxs | 2 ++ 4 files changed, 16 insertions(+), 5 deletions(-) (limited to 'packaging/wix') diff --git a/packaging/wix/CMakeLists.txt b/packaging/wix/CMakeLists.txt index 352e53f854..881f8610c4 100644 --- a/packaging/wix/CMakeLists.txt +++ b/packaging/wix/CMakeLists.txt @@ -300,11 +300,15 @@ endif() file(APPEND "${_gtk_dll_manifest_wix}" "\n\n") if(BUILD_wireshark_gtk AND GTK_FOUND) - set(use_gtk "-dGTK_DIR") + set(d_gtk_dir "-dGTK_DIR") endif() if(SMI_DIR) - set(use_smi "-dSMI_DIR") + set(d_smi_dir "-dSMI_DIR") +endif() + +if (MAXMINDDB_FOUND) + set(d_mmdbresolve_exe "-dMMDBRESOLVE_EXE") endif() set(WIX_CANDLE_DEFINES @@ -323,8 +327,9 @@ set(WIX_CANDLE_DEFINES -dSnmpMibDir=${ARCHIVE_OUTPUT_PATH}/${CMAKE_BUILD_TYPE}/snmp/mibs -dVCRedistVersion=${MSVC_CRT_VERSION} -dVCRedistDir=${MERGE_MODULE_DIR} - ${use_gtk} - ${use_smi} + ${d_gtk_dir} + ${d_smi_dir} + ${d_mmdbresolve_exe} -arch ${TARGET_MACHINE} -ext WixUIExtension -I${CMAKE_SOURCE_DIR}/packaging/wix diff --git a/packaging/wix/ComponentGroups.wxi b/packaging/wix/ComponentGroups.wxi index 8631c805d2..f6c70433c2 100644 --- a/packaging/wix/ComponentGroups.wxi +++ b/packaging/wix/ComponentGroups.wxi @@ -434,13 +434,14 @@ + - + @@ -450,6 +451,7 @@ + diff --git a/packaging/wix/Features.wxi b/packaging/wix/Features.wxi index 277a713a14..918da3bb66 100644 --- a/packaging/wix/Features.wxi +++ b/packaging/wix/Features.wxi @@ -81,9 +81,11 @@ + + diff --git a/packaging/wix/WiresharkOptionsDlg.wxs b/packaging/wix/WiresharkOptionsDlg.wxs index d37f74c32b..9b1cd3aacb 100644 --- a/packaging/wix/WiresharkOptionsDlg.wxs +++ b/packaging/wix/WiresharkOptionsDlg.wxs @@ -22,6 +22,7 @@ 3]]> + 3]]> @@ -34,6 +35,7 @@ 3]]> + -- cgit v1.2.3