CMake: Add debian package target
Change-Id: I114c861e5537a010d622b31d0c335752b45f3d2e Reviewed-on: https://code.wireshark.org/review/29360 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
fd103ed417
commit
4d6c253ca9
|
@ -2687,6 +2687,7 @@ endif()
|
|||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
find_program(RPMBUILD_EXECUTABLE rpmbuild)
|
||||
find_program(DPKG_BUILDPACKAGE_EXECUTABLE dpkg-buildpackage)
|
||||
find_program(GIT_EXECUTABLE git)
|
||||
endif()
|
||||
|
||||
|
@ -2779,6 +2780,13 @@ if(RPMBUILD_EXECUTABLE)
|
|||
)
|
||||
endif()
|
||||
|
||||
if(DPKG_BUILDPACKAGE_EXECUTABLE)
|
||||
add_custom_target(deb-package
|
||||
COMMAND ${DPKG_BUILDPACKAGE_EXECUTABLE} -us -uc
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
endif()
|
||||
|
||||
set(CLEAN_C_FILES
|
||||
${dumpcap_FILES}
|
||||
${wireshark_FILES}
|
||||
|
|
|
@ -18,6 +18,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||
# Install and build the various things (including wireshark!)
|
||||
config.vm.define "ubuntu", autostart: false do |deb|
|
||||
deb.vm.box = "ubuntu/xenial64"
|
||||
# XXX: Mounting to /vagrant (the default) won't work for building a
|
||||
# Debian package.
|
||||
|
||||
deb.vm.provision "shell" do |s|
|
||||
s.path = 'tools/debian-setup.sh'
|
||||
|
|
Loading…
Reference in New Issue