Revert "UNUSED enc_key_id_{equal,hash}"
[wireshark-sm.git] / ConfigCPack.cmake
blob75f4dac150a219a3e327f4b662da73f5d0f05036
1 ############################
2 # CPack configuration file #
3 ############################
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
9 # 1. Redistributions of source code must retain the copyright
10 #    notice, this list of conditions and the following disclaimer.
11 # 2. Redistributions in binary form must reproduce the copyright
12 #    notice, this list of conditions and the following disclaimer in the
13 #    documentation and/or other materials provided with the distribution.
14 # 3. The name of the author may not be used to endorse or promote products
15 #    derived from this software without specific prior written permission.
17 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 ## General ##
31 if(WIN32)
32         set(CPACK_PACKAGE_NAME "Wireshark")
33 else()
34         set(CPACK_PACKAGE_NAME "wireshark")
35 endif()
36 set(CPACK_PACKAGE_VENDOR "Wireshark Foundation")
37 set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_MAJOR_VERSION})
38 set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_MINOR_VERSION})
39 set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_PATCH_VERSION})
40 set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
41 set(CPACK_PACKAGE_DESCRIPTION
42 "Wireshark is the world’s most popular network protocol analyzer."
43 "It is used for troubleshooting, analysis, development and education."
45 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Network protocol analyzer")
46 set(CPACK_PACKAGE_HOMEPAGE_URL "https://www.wireshark.org/")
47 set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/resources/icons/wiresharkinst.ico")
48 set(CPACK_PACKAGE_CONTACT "Wireshark-Dev Mailing List <wireshark-dev@wireshark.org>")
50 set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION})
51 set(CPACK_PACKAGE_CHECKSUM "SHA256")
53 if(WIN32)
54     set(CPACK_PACKAGE_INSTALL_DIRECTORY "Wireshark")
55     set(CPACK_STRIP_FILES FALSE)
56 else()
57     set(CPACK_PACKAGE_INSTALL_DIRECTORY "wireshark")
58     set(CPACK_STRIP_FILES TRUE)
59 endif()
61 # This creates a screen in the windows installers asking users to "Agree" to the GPL which is incorrect.
62 # set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
63 set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
64 # set( CPACK_RESOURCE_FILE_WELCOME "${CMAKE_SOURCE_DIR}/README.md") # TODO: can we use this?
66 set(CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION TRUE)
68 # specific config for source packaging (note this is used by the 'dist' target)
69 set(CPACK_SOURCE_GENERATOR "TXZ")
70 set(CPACK_SOURCE_PACKAGE_FILE_NAME ${PROJECT_VERSION})
71 set(CPACK_SOURCE_IGNORE_FILES "~$;[.]swp$;/[.]svn/;/[.]git/;.gitignore;/build/;/obj*/;cscope.*;.gitlab*;.coveragerc;*.md;")
73 set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
75 ## load cpack module (do this *after* all the CPACK_* variables have been set)
76 include(CPack)