summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/pidl/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/pidl/CMakeLists.txt')
-rw-r--r--epan/dissectors/pidl/CMakeLists.txt167
1 files changed, 167 insertions, 0 deletions
diff --git a/epan/dissectors/pidl/CMakeLists.txt b/epan/dissectors/pidl/CMakeLists.txt
new file mode 100644
index 00000000..2e4dc7ba
--- /dev/null
+++ b/epan/dissectors/pidl/CMakeLists.txt
@@ -0,0 +1,167 @@
+# CMakeLists.txt
+#
+# Wireshark - Network traffic analyzer
+# By Gerald Combs <gerald@wireshark.org>
+# Copyright 1998 Gerald Combs
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+
+# TODO fix srvsvc wkssvc
+set(PIDL_DISSECTOR_NAMES
+ atsvc
+ clusapi
+ dfs
+ dnsserver
+ drsuapi
+ dssetup
+ efs
+ eventlog
+ frsrpc
+ frstrans
+ fsrvp
+ initshutdown
+ iwbemlevel1login
+ lsa
+ mapi
+ mdssvc
+ misc
+ nspi
+ rfr
+ samr
+ #srvsvc
+ svcctl
+ winreg
+ winspool
+ witness
+ #wkssvc
+ wzcsvc
+)
+
+set(PIDL_DISSECTOR_clusapi_EXTRA_DEPS
+ clusapi/clusapi.idl
+)
+set(PIDL_DISSECTOR_drsuapi_EXTRA_DEPS
+ misc/misc.idl
+)
+set(PIDL_DISSECTOR_dssetup_EXTRA_DEPS
+ misc/misc.idl
+)
+set(PIDL_DISSECTOR_eventlog_EXTRA_DEPS
+ idl_types.h
+)
+set(PIDL_DISSECTOR_frsrpc_EXTRA_DEPS
+ misc/misc.idl
+ idl_types.h
+)
+set(PIDL_DISSECTOR_frstrans_EXTRA_DEPS
+ misc/misc.idl
+ idl_types.h
+)
+set(PIDL_DISSECTOR_fsrvp_EXTRA_DEPS
+ idl_types.h
+)
+set(PIDL_DISSECTOR_initshutdown_EXTRA_DEPS
+ lsa/lsa.idl
+ idl_types.h
+)
+set(PIDL_DISSECTOR_iwbemlevel1login_EXTRA_DEPS
+ idl_types.h
+)
+set(PIDL_DISSECTOR_lsa_EXTRA_DEPS
+ idl_types.h
+)
+set(PIDL_DISSECTOR_mapi_EXTRA_DEPS
+ idl_types.h
+ mapicodes_enum.h
+ mapitags_enum.h
+)
+set(PIDL_DISSECTOR_mdssvc_EXTRA_DEPS
+ misc/misc.idl
+)
+set(PIDL_DISSECTOR_misc_EXTRA_DEPS
+ idl_types.h
+)
+set(PIDL_DISSECTOR_nspi_EXTRA_DEPS
+ idl_types.h
+ mapicodes_enum.h
+ mapitags_enum.h
+)
+set(PIDL_DISSECTOR_rfr_EXTRA_DEPS
+ idl_types.h
+ mapicodes_enum.h
+)
+set(PIDL_DISSECTOR_samr_EXTRA_DEPS
+ idl_types.h
+)
+set(PIDL_DISSECTOR_srvsvc_EXTRA_DEPS
+ idl_types.h
+)
+set(PIDL_DISSECTOR_winreg_EXTRA_DEPS
+ misc/misc.idl
+)
+set(PIDL_DISSECTOR_winspool_EXTRA_DEPS
+ idl_types.h
+ misc/misc.idl
+)
+set(PIDL_DISSECTOR_witness_EXTRA_DEPS
+ misc/misc.idl
+ idl_types.h
+)
+set(PIDL_DISSECTOR_wkssvc_EXTRA_DEPS
+ lsa/lsa.idl
+ srvsvc/srvsvc.idl
+ idl_types.h
+)
+
+set(PIDL_DISSECTOR_TARGETS)
+
+foreach(PROTOCOL_NAME IN LISTS PIDL_DISSECTOR_NAMES)
+ add_custom_command(
+ OUTPUT packet-dcerpc-${PROTOCOL_NAME}-stamp
+ COMMAND "${PERL_EXECUTABLE}"
+ "${CMAKE_SOURCE_DIR}/tools/pidl/pidl"
+ --ws-parser
+ --outputdir ../..
+ --includedir ..
+ --
+ ${PROTOCOL_NAME}.idl
+ 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
+ ${PIDL_DISSECTOR_${PROTOCOL_NAME}_EXTRA_DEPS}
+ 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}
+ )
+endforeach()
+
+add_custom_target(pidl-dissectors ALL DEPENDS ${PIDL_DISSECTOR_TARGETS})
+set_target_properties(pidl-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:
+#