aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorAnders Broman <a.broman58@gmail.com>2015-12-03 09:21:14 +0000
committerAnders Broman <a.broman58@gmail.com>2015-12-03 09:21:53 +0000
commit403fa9fbe0cdba3f443ec4674cda40092525ffe4 (patch)
tree99511c152ed8b16d2d43f2ea9666181b1d24a5a1 /packaging
parent01815bfdc4a952862e5fd7151404346935499102 (diff)
downloadwireshark-403fa9fbe0cdba3f443ec4674cda40092525ffe4.tar.gz
wireshark-403fa9fbe0cdba3f443ec4674cda40092525ffe4.tar.bz2
wireshark-403fa9fbe0cdba3f443ec4674cda40092525ffe4.zip
Revert "CMake+PortableApps: Include the VC runtime."
This reverts commit 0223249c8c74794a06ae76b29e12681ad5e3ebe4. Change-Id: I851bd18c9674eae8fdd737781124c9bbf1c8a932 Reviewed-on: https://code.wireshark.org/review/12402 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/nsis/CMakeLists.txt12
-rw-r--r--packaging/portableapps/CMakeLists.txt18
2 files changed, 15 insertions, 15 deletions
diff --git a/packaging/nsis/CMakeLists.txt b/packaging/nsis/CMakeLists.txt
index 13dd082c9a..a1a005f047 100644
--- a/packaging/nsis/CMakeLists.txt
+++ b/packaging/nsis/CMakeLists.txt
@@ -102,6 +102,18 @@ if(BUILD_wireshark_gtk AND GTK_FOUND)
set (GTK_DIR "\${STAGING_DIR}")
endif()
+# CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS will likely give us a list of DLL
+# paths containing spaces. We'll assume that they're all in the same
+# directory and use it to create something that's easier to pass to
+# NSIS.
+set(MSVCR_DLL)
+list(GET CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS 0 _msvcr_dll)
+if(_msvcr_dll)
+ get_filename_component(_msvcr_dir ${_msvcr_dll} DIRECTORY)
+ set(MSVCR_DLL "${_msvcr_dir}/*.*")
+ file(TO_NATIVE_PATH "${MSVCR_DLL}" MSVCR_DLL)
+endif()
+
# This *should* be compatible with the way we currently do things.
if(MSVC12)
set(_vcredist_name "vcredist_${TARGET_MACHINE}.exe")
diff --git a/packaging/portableapps/CMakeLists.txt b/packaging/portableapps/CMakeLists.txt
index 6569eece4c..38c428598d 100644
--- a/packaging/portableapps/CMakeLists.txt
+++ b/packaging/portableapps/CMakeLists.txt
@@ -21,6 +21,7 @@
# To do:
# - Use CPack to generate the PortableApps package.
+# - Copy the C runtime DLLs if they're available.
set(PORTABLEAPPS_NAME "${CMAKE_PROJECT_NAME}Portable")
set(PORTABLEAPPS_NAME ${PORTABLEAPPS_NAME} PARENT_SCOPE)
@@ -45,7 +46,6 @@ macro( ADD_PORTABLEAPPS_PACKAGE_TARGET )
file(TO_NATIVE_PATH "${_portableapps_app_dir}" _portableapps_app_dir_native)
file(TO_NATIVE_PATH "${DATAFILE_DIR}" _datafile_dir_native)
file(TO_NATIVE_PATH "${CMAKE_SOURCE_DIR}/packaging/portableapps/xcopy-deploy-exclude.txt" _xcopy_deploy_exclude)
-
add_custom_target(portableapps_app_dir
# We "Deploy using XCopy," which is described at
# https://msdn.microsoft.com/en-us/library/ms235291.aspx
@@ -53,28 +53,16 @@ macro( ADD_PORTABLEAPPS_PACKAGE_TARGET )
COMMAND ${CMAKE_COMMAND} -E remove_directory ${_portableapps_app_dir}
COMMAND ${CMAKE_COMMAND} -E make_directory ${_portableapps_app_dir}
COMMAND xcopy ${_datafile_dir_native} ${_portableapps_app_dir_native} /D /I /E /Y /exclude:${_xcopy_deploy_exclude}
+ # XXX Copy C runtime DLLs.
)
-
set_target_properties(portableapps_app_dir PROPERTIES FOLDER "Packaging")
- if(MSVCR_DLL)
- add_custom_target(portableapps_runtime
- COMMAND xcopy "${MSVCR_DLL}" ${_portableapps_app_dir_native} /D /I /Y
- )
- else(MSVCR_DLL)
- add_custom_target(portableapps_runtime
- COMMAND ${CMAKE_COMMAND} -E echo "C Runtime MUST be installed on target system."
- )
- endif(MSVCR_DLL)
-
- add_dependencies(portableapps_runtime portableapps_app_dir)
-
# Build the PortableApps package.
# nsis_package_prep must be built prior to this.
set (_portableapps_package ${CMAKE_BINARY_DIR}/packaging/portableapps/WiresharkPortable_$(VERSION).exe)
add_custom_target(portableapps_package
DEPENDS
- portableapps_runtime
+ portableapps_app_dir
${_portableapps_package}
)
set_target_properties(portableapps_package PROPERTIES FOLDER "Packaging")