aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-11-10 10:35:56 +0100
committerDario Lombardo <lomato@gmail.com>2016-11-19 18:29:56 +0000
commit231ad4f6ff1dc675947739a107bd639a67b7cd35 (patch)
treeb44cf35318606bbdce7d103b1fb4aef685a203e3
parent6926cf0294032e88f267b98000211037882326f9 (diff)
cpack: improve source tarball generation by adding the "dist" target.
The source package must not contain compiled objects. If the build dir is under the source tree, it is included too. By excluding /build/ we avoid to add every build dir, but if the build dir doesn't contain build the problem still persist. Change-Id: I75021565c058c1a93945f43b9b49cb3d04c960d4 Reviewed-on: https://code.wireshark.org/review/18729 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Dario Lombardo <lomato@gmail.com>
-rw-r--r--CPackConfig.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CPackConfig.txt b/CPackConfig.txt
index 9cbefd062b..3aa95bca33 100644
--- a/CPackConfig.txt
+++ b/CPackConfig.txt
@@ -34,6 +34,9 @@ else()
set(CPACK_PACKAGE_NAME wireshark)
endif()
+set(CPACK_SOURCE_IGNORE_FILES "build" "/.git/")
+add_custom_target(dist DEPENDS package_source)
+
set(CPACK_PACKAGE_DESCRIPTION "A set of command line and gui tools to capture and decode traffic")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Packet capturing and decoding")
set(CPACK_PACKAGE_VENDOR "Wireshark developers")