forked from osmocom/wireshark
Allow extra plugins to be missing e.g. because they are in another branch
and still succeed with CMake. Update the example paths to add epan while at it. Change-Id: I92d21cc5699e784d7e151d18103d7e44078a40ab Reviewed-on: https://code.wireshark.org/review/25812 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
This commit is contained in:
parent
f23306e847
commit
4b665e2649
|
@ -9,12 +9,26 @@
|
|||
# Add a list of your custom plugins SRC dir here including the path
|
||||
#
|
||||
|
||||
# Fail CMake stage if any of these plugins are missing from source tree
|
||||
set(CUSTOM_PLUGIN_SRC_DIR
|
||||
# private_plugins/foo
|
||||
# or
|
||||
# plugins/epan/foo
|
||||
)
|
||||
|
||||
# Do not fail CMake stage if any of the optional plugins are missing from source tree
|
||||
set(_OPTIONAL_CUSTOM_PLUGIN_SRC_DIR
|
||||
plugins/epan/bar
|
||||
)
|
||||
|
||||
foreach( _plugin_dir ${_OPTIONAL_CUSTOM_PLUGIN_SRC_DIR} )
|
||||
if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_plugin_dir}/CMakeLists.txt )
|
||||
list( APPEND CUSTOM_PLUGIN_SRC_DIR ${_plugin_dir} )
|
||||
else()
|
||||
message( WARNING "Custom plugins: No ${_plugin_dir}/CMakeLists.txt file found - ignoring" )
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
#
|
||||
# Editor modelines - http://www.wireshark.org/tools/modelines.html
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue