Add epan/dfilter/CMakeLists.txt which creates a static dfilter library
svn path=/trunk/; revision=30441
This commit is contained in:
parent
e4d4f81768
commit
7ca2babc1e
|
@ -40,6 +40,9 @@ set(CRC_LIB crc )
|
||||||
add_subdirectory( crypt )
|
add_subdirectory( crypt )
|
||||||
set(CRYPT_LIB crypt )
|
set(CRYPT_LIB crypt )
|
||||||
|
|
||||||
|
add_subdirectory( dfilter )
|
||||||
|
set(DFILTER_LIB dfilter )
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/dfilter
|
${CMAKE_CURRENT_SOURCE_DIR}/dfilter
|
||||||
|
@ -50,35 +53,11 @@ include_directories(
|
||||||
link_directories(
|
link_directories(
|
||||||
crc
|
crc
|
||||||
crypt
|
crypt
|
||||||
|
dfilter
|
||||||
wslua
|
wslua
|
||||||
wspython
|
wspython
|
||||||
)
|
)
|
||||||
|
|
||||||
set(DFILTER_FILES
|
|
||||||
dfilter/dfilter.c
|
|
||||||
dfilter/dfilter-macro.c
|
|
||||||
dfilter/dfunctions.c
|
|
||||||
dfilter/dfvm.c
|
|
||||||
dfilter/drange.c
|
|
||||||
dfilter/gencode.c
|
|
||||||
dfilter/semcheck.c
|
|
||||||
dfilter/sttype-function.c
|
|
||||||
dfilter/sttype-integer.c
|
|
||||||
dfilter/sttype-pointer.c
|
|
||||||
dfilter/sttype-range.c
|
|
||||||
dfilter/sttype-string.c
|
|
||||||
dfilter/sttype-test.c
|
|
||||||
dfilter/syntax-tree.c
|
|
||||||
)
|
|
||||||
|
|
||||||
add_lex_files(DFILTER_FILES
|
|
||||||
dfilter/scanner.l
|
|
||||||
)
|
|
||||||
|
|
||||||
add_lemon_files(DFILTER_FILES
|
|
||||||
dfilter/grammar.lemon
|
|
||||||
)
|
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(
|
ADD_CUSTOM_COMMAND(
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/packet-ncp2222.c
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/packet-ncp2222.c
|
||||||
COMMAND ${PYTHON_EXECUTABLE}
|
COMMAND ${PYTHON_EXECUTABLE}
|
||||||
|
@ -1160,7 +1139,6 @@ add_library(epan SHARED
|
||||||
#x11-declarations.h
|
#x11-declarations.h
|
||||||
#x11-register-info.h
|
#x11-register-info.h
|
||||||
${LIBWIRESHARK_FILES}
|
${LIBWIRESHARK_FILES}
|
||||||
${DFILTER_FILES}
|
|
||||||
${FTYPE_FILES}
|
${FTYPE_FILES}
|
||||||
${DISSECTOR_FILES}
|
${DISSECTOR_FILES}
|
||||||
${DISSECTOR_SUPPORT_SRC}
|
${DISSECTOR_SUPPORT_SRC}
|
||||||
|
@ -1172,6 +1150,7 @@ add_library(epan SHARED
|
||||||
target_link_libraries(epan
|
target_link_libraries(epan
|
||||||
${CRC_LIB}
|
${CRC_LIB}
|
||||||
${CRYPT_LIB}
|
${CRYPT_LIB}
|
||||||
|
${DFILTER_LIB}
|
||||||
${WSLUA_LIB}
|
${WSLUA_LIB}
|
||||||
${WSPYTHON_LIB}
|
${WSPYTHON_LIB}
|
||||||
)
|
)
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
|
set(DFILTER_FILES
|
||||||
|
dfilter.c
|
||||||
|
dfilter-macro.c
|
||||||
|
dfunctions.c
|
||||||
|
dfvm.c
|
||||||
|
drange.c
|
||||||
|
gencode.c
|
||||||
|
semcheck.c
|
||||||
|
sttype-function.c
|
||||||
|
sttype-integer.c
|
||||||
|
sttype-pointer.c
|
||||||
|
sttype-range.c
|
||||||
|
sttype-string.c
|
||||||
|
sttype-test.c
|
||||||
|
syntax-tree.c
|
||||||
|
)
|
||||||
|
|
||||||
|
add_lex_files(DFILTER_FILES
|
||||||
|
scanner.l
|
||||||
|
)
|
||||||
|
|
||||||
|
add_lemon_files(DFILTER_FILES
|
||||||
|
grammar.lemon
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(dfilter STATIC
|
||||||
|
${DFILTER_FILES}
|
||||||
|
)
|
Loading…
Reference in New Issue