First stab at autogenerating budb dissector

svn path=/trunk/; revision=30463
This commit is contained in:
Kovarththanan Rajaratnam 2009-10-10 06:45:04 +00:00
parent 6d2018b31b
commit 64e717ee94
2 changed files with 57 additions and 3 deletions

View File

@ -62,12 +62,27 @@ ADD_CUSTOM_COMMAND(
${CMAKE_SOURCE_DIR}/tools/process-x11-xcb.pl
)
if (AUTOGEN_dcerpc)
set(PIDL_DISSECTOR_AUTOGEN_SRC
dcerpc/budb/packet-dcerpc-budb.c
dcerpc/butc/packet-dcerpc-butc.c
dcerpc/drsuapi/packet-dcerpc-drsuapi.c
)
set_source_files_properties(${PIDL_DISSECTOR_AUTOGEN_SRC}
PROPERTIES
GENERATED TRUE
)
else()
set(PIDL_DISSECTOR_AUTOGEN_SRC
packet-dcerpc-budb.c
packet-dcerpc-butc.c
packet-dcerpc-drsuapi.c
)
endif()
set(PIDL_DISSECTOR_SRC
packet-dcerpc-atsvc.c
packet-dcerpc-budb.c
packet-dcerpc-butc.c
packet-dcerpc-dfs.c
packet-dcerpc-drsuapi.c
packet-dcerpc-dssetup.c
packet-dcerpc-efs.c
packet-dcerpc-initshutdown.c
@ -946,6 +961,7 @@ set(DISSECTOR_SUPPORT_SRC
set(DISSECTOR_FILES
${DISSECTOR_SRC}
${PIDL_DISSECTOR_SRC}
${PIDL_DISSECTOR_AUTOGEN_SRC}
${DIRTY_PIDL_DISSECTOR_SRC}
${ASN1_DISSECTOR_SRC}
${DIRTY_ASN1_DISSECTOR_SRC}
@ -954,6 +970,7 @@ set(DISSECTOR_FILES
set_source_files_properties(
${DISSECTOR_SRC}
${PIDL_DISSECTOR_SRC}
${PIDL_DISSECTOR_AUTOGEN_SRC}
${ASN1_DISSECTOR_SRC}
PROPERTIES
# FIXME: -Werror and -pedantic exclude each other: test for -pedantic

View File

@ -0,0 +1,37 @@
# CMakeLists.txt
#
# $Id$
#
# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
set( PROTOCOL_NAME budb )
ADD_CUSTOM_COMMAND(
OUTPUT
packet-dcerpc-${PROTOCOL_NAME}.c
packet-dcerpc-${PROTOCOL_NAME}.h
COMMAND
idl2wrs ${PROTOCOL_NAME}
DEPENDS
${PROTOCOL_NAME}.idl
${PROTOCOL_NAME}.cnf
packet-dcerpc-${PROTOCOL_NAME}-template.c
packet-dcerpc-${PROTOCOL_NAME}-template.h
)