forked from osmocom/wireshark
![Gerald Combs](/assets/img/avatar_default.png)
Adjust the following CMake and Autotools behaviors in order to synchronize their respective install behaviors: - Disable tfshark by default in CMakeOptions.txt - Add profiles/Bluetooth/preferences to Makefile.am - Add missing captype and ciscodump entries to doc/Makefile.am - Install help/faq.txt on all platforms in CMakeLists.txt - Add BUILD_corbaidl2wrs, BUILD_dcerpcidl2wrs, and BUILD_xxx2deb options to CMake and use them to adjust the corresponding parts of the build. - Pull the DCERPC idl2wrs build steps into the top-level CMakeLists.txt. This change doesn't sync everything. Some installed content still diverges, including the following: - CMake installs a bunch of modules into lib/wireshark: FindGLIB2.cmake FindWireshark.cmake FindWSWinLibs.cmake LocatePythonModule.cmake UseAsn2Wrs.cmake UseMakeDissectorReg.cmake WiresharkConfig.cmake WiresharkConfigVersion.cmake Do we need any or all of these? If so, should the Autotools behavior be synced accordingly? - Autotools installs libtool .la files. It also installs wireshark-gtk.desktop unconditionally. Change-Id: I7846efe08f7139c31b6ceca6f08a1fa5168b3e22 Reviewed-on: https://code.wireshark.org/review/23041 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
89 lines
2.8 KiB
CMake
89 lines
2.8 KiB
CMake
# CMakeLists.txt
|
|
#
|
|
# Wireshark - Network traffic analyzer
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
# Copyright 1998 Gerald Combs
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
#
|
|
|
|
set(PIDL_DISSECTOR_NAMES
|
|
budb
|
|
butc
|
|
drsuapi
|
|
)
|
|
|
|
foreach(PROTOCOL_NAME IN LISTS PIDL_DISSECTOR_NAMES)
|
|
# Use a stamp file instead of OUTPUT to packet-dcerpc-X.c to
|
|
# avoid removing the .c file on clean.
|
|
add_custom_command(
|
|
OUTPUT packet-dcerpc-${PROTOCOL_NAME}-stamp
|
|
COMMAND
|
|
idl2wrs ${PROTOCOL_NAME}
|
|
COMMAND
|
|
"${CMAKE_COMMAND}" -E copy_if_different
|
|
packet-dcerpc-${PROTOCOL_NAME}.c
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../packet-dcerpc-${PROTOCOL_NAME}.c"
|
|
COMMAND
|
|
"${CMAKE_COMMAND}" -E copy_if_different
|
|
packet-dcerpc-${PROTOCOL_NAME}.h
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../packet-dcerpc-${PROTOCOL_NAME}.h"
|
|
COMMAND
|
|
"${CMAKE_COMMAND}" -E touch
|
|
"${CMAKE_CURRENT_BINARY_DIR}/packet-dcerpc-${PROTOCOL_NAME}-stamp"
|
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${PROTOCOL_NAME}"
|
|
DEPENDS
|
|
"${CMAKE_SOURCE_DIR}/tools/pidl/pidl"
|
|
${PROTOCOL_NAME}/${PROTOCOL_NAME}.idl
|
|
${PROTOCOL_NAME}/${PROTOCOL_NAME}.cnf
|
|
${PROTOCOL_NAME}/packet-dcerpc-${PROTOCOL_NAME}-template.h
|
|
${PROTOCOL_NAME}/packet-dcerpc-${PROTOCOL_NAME}-template.c
|
|
VERBATIM
|
|
)
|
|
add_custom_target(generate_dissector-dcerpc-${PROTOCOL_NAME}
|
|
DEPENDS packet-dcerpc-${PROTOCOL_NAME}-stamp
|
|
)
|
|
set_target_properties(generate_dissector-dcerpc-${PROTOCOL_NAME}
|
|
PROPERTIES FOLDER "Generated Dissectors/PIDL"
|
|
)
|
|
list(APPEND PIDL_DISSECTOR_TARGETS
|
|
generate_dissector-dcerpc-${PROTOCOL_NAME}
|
|
)
|
|
list(APPEND PIDL_DISSECTOR_SRC
|
|
packet-dcerpc-${PROTOCOL_NAME}.c
|
|
)
|
|
endforeach()
|
|
|
|
set(PIDL_DISSECTOR_AUTOGEN_SRC ${PIDL_DISSECTOR_SRC} PARENT_SCOPE)
|
|
|
|
# TODO should probably just merge this into pidl-dissectors
|
|
add_custom_target(idl2wrs-dissectors ALL DEPENDS ${PIDL_DISSECTOR_TARGETS})
|
|
set_target_properties(idl2wrs-dissectors
|
|
PROPERTIES FOLDER "Generated Dissectors/PIDL"
|
|
)
|
|
|
|
#
|
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
|
#
|
|
# Local variables:
|
|
# c-basic-offset: 4
|
|
# tab-width: 4
|
|
# indent-tabs-mode: t
|
|
# End:
|
|
#
|
|
# vi: set shiftwidth=4 tabstop=4 noexpandtab:
|
|
# :indentSize=4:tabSize=4:noTabs=false:
|
|
#
|