forked from osmocom/wireshark
CMake:
- Add opcua to the list of plugins to build - Link the gtk stuff statically into wireshark - Beginnings of "make install" - Change a few things about install paths svn path=/trunk/; revision=30029
This commit is contained in:
parent
c9dcf6c415
commit
95182116aa
|
@ -316,12 +316,12 @@ if(ENABLE_PLUGINS)
|
||||||
plugins/asn1
|
plugins/asn1
|
||||||
plugins/docsis
|
plugins/docsis
|
||||||
plugins/ethercat
|
plugins/ethercat
|
||||||
plugins/giop
|
# plugins/giop
|
||||||
plugins/gryphon
|
plugins/gryphon
|
||||||
plugins/irda
|
plugins/irda
|
||||||
plugins/m2m
|
plugins/m2m
|
||||||
plugins/mate
|
plugins/mate
|
||||||
# plugins/opcua
|
plugins/opcua
|
||||||
# plugins/profinet
|
# plugins/profinet
|
||||||
# plugins/sercosiii
|
# plugins/sercosiii
|
||||||
# plugins/stats_tree
|
# plugins/stats_tree
|
||||||
|
@ -487,6 +487,41 @@ set(TSHARK_TAP_SRC
|
||||||
tap-wspstat.c
|
tap-wspstat.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(INSTALL_DIRS
|
||||||
|
diameter
|
||||||
|
dtds
|
||||||
|
help
|
||||||
|
radius
|
||||||
|
tpncp
|
||||||
|
wimaxasncp
|
||||||
|
)
|
||||||
|
|
||||||
|
set(INSTALL_FILES
|
||||||
|
# AUTHORS-SHORT
|
||||||
|
COPYING
|
||||||
|
# capinfos.html
|
||||||
|
# cfilters
|
||||||
|
# colorfilters
|
||||||
|
# console.lua
|
||||||
|
# dfilters
|
||||||
|
# dtd_gen.lua
|
||||||
|
# dumpcap.html
|
||||||
|
# editcap.html
|
||||||
|
# idl2wrs.html
|
||||||
|
# init.lua
|
||||||
|
# ipmap.html
|
||||||
|
# manuf
|
||||||
|
# mergecap.html
|
||||||
|
# rawshark.html
|
||||||
|
# services
|
||||||
|
# smi_modules
|
||||||
|
# text2pcap.html
|
||||||
|
# tshark.html
|
||||||
|
# wireshark-filter.html
|
||||||
|
# wireshark.html
|
||||||
|
# ws.css
|
||||||
|
)
|
||||||
|
|
||||||
set(LIBEPAN_LIBS
|
set(LIBEPAN_LIBS
|
||||||
# $(wireshark_optional_objects)
|
# $(wireshark_optional_objects)
|
||||||
wiretap
|
wiretap
|
||||||
|
@ -716,3 +751,19 @@ if(BUILD_dumpcap)
|
||||||
target_link_libraries(dumpcap ${dumpcap_LIBS})
|
target_link_libraries(dumpcap ${dumpcap_LIBS})
|
||||||
install(TARGETS dumpcap RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
install(TARGETS dumpcap RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES
|
||||||
|
${INSTALL_FILES}
|
||||||
|
DESTINATION
|
||||||
|
${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}
|
||||||
|
)
|
||||||
|
|
||||||
|
install(
|
||||||
|
DIRECTORY
|
||||||
|
${INSTALL_DIRS}
|
||||||
|
DESTINATION
|
||||||
|
${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}
|
||||||
|
PATTERN ".svn" EXCLUDE
|
||||||
|
PATTERN "Makefile.*" EXCLUDE
|
||||||
|
)
|
||||||
|
|
|
@ -1,17 +1,23 @@
|
||||||
/* cmakeconfig.h.in */
|
/* cmakeconfig.h.in */
|
||||||
|
|
||||||
/* Version number of package */
|
/* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
|
||||||
#define VERSION "@CPACK_PACKAGE_VERSION@"
|
|
||||||
|
|
||||||
|
/* Version number of package */
|
||||||
|
#define VERSION "${CPACK_PACKAGE_VERSION}"
|
||||||
|
|
||||||
|
/* FIXME: Move the path stuff to the CMakeInstallDirs.cmake file */
|
||||||
/* Directory for data */
|
/* Directory for data */
|
||||||
#define DATAFILE_DIR "@CMAKE_INSTALL_PREFIX@/share/@CPACK_PACKAGE_NAME@"
|
#define DATAFILE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}"
|
||||||
|
|
||||||
|
/* Path to Python. */
|
||||||
|
#cmakedefine PYTHON_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/python/${CPACK_PACKAGE_VERSION}"
|
||||||
|
|
||||||
|
/* Directory where plugins reside */
|
||||||
|
#define PLUGIN_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}"
|
||||||
|
|
||||||
/* Define to 1 if we want to enable plugins */
|
/* Define to 1 if we want to enable plugins */
|
||||||
#cmakedefine HAVE_PLUGINS 1
|
#cmakedefine HAVE_PLUGINS 1
|
||||||
|
|
||||||
/* Directory where plugins reside */
|
|
||||||
#define PLUGIN_DIR "${DATAFILE_DIR}/plugins/${CPACK_PACKAGE_VERSION}"
|
|
||||||
|
|
||||||
/* Link plugins statically into Wireshark */
|
/* Link plugins statically into Wireshark */
|
||||||
#cmakedefine ENABLE_STATIC 1
|
#cmakedefine ENABLE_STATIC 1
|
||||||
|
|
||||||
|
@ -123,9 +129,6 @@
|
||||||
/* Define to 1 if you have libpython. */
|
/* Define to 1 if you have libpython. */
|
||||||
#cmakedefine HAVE_PYTHON 1
|
#cmakedefine HAVE_PYTHON 1
|
||||||
|
|
||||||
/* Path to Python. */
|
|
||||||
#cmakedefine PYTHON_DIR "${CMAKE_INSTALL_PREFIX}/lib/${CPACK_PACKAGE_NAME}/python/${VERSION}"
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <memory.h> header file. */
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
#cmakedefine HAVE_MEMORY_H 1
|
#cmakedefine HAVE_MEMORY_H 1
|
||||||
|
|
||||||
|
|
|
@ -30,3 +30,18 @@ add_library(wspython STATIC
|
||||||
${WSPYTHON_FILES}
|
${WSPYTHON_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(PROGRAMS
|
||||||
|
register-dissector.py
|
||||||
|
wspy_dissector.py
|
||||||
|
wspy_libws.py
|
||||||
|
DESTINATION
|
||||||
|
${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/python/${CPACK_PACKAGE_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
install(DIRECTORY
|
||||||
|
wspy_dissectors
|
||||||
|
DESTINATION
|
||||||
|
${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/python/${CPACK_PACKAGE_VERSION}
|
||||||
|
PATTERN ".svn" EXCLUDE
|
||||||
|
)
|
||||||
|
|
|
@ -212,15 +212,15 @@ ADD_CUSTOM_COMMAND(
|
||||||
${WIRESHARK_TAP_SRC}
|
${WIRESHARK_TAP_SRC}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(ui SHARED
|
add_library(ui STATIC
|
||||||
${WIRESHARK_GTK_SRC}
|
${WIRESHARK_GTK_SRC}
|
||||||
${WIRESHARK_TAP_SRC}
|
${WIRESHARK_TAP_SRC}
|
||||||
wireshark-tap-register.c
|
wireshark-tap-register.c
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS ui
|
#install(TARGETS ui
|
||||||
LIBRARY DESTINATION lib
|
# LIBRARY DESTINATION lib
|
||||||
RUNTIME DESTINATION lib
|
# RUNTIME DESTINATION lib
|
||||||
ARCHIVE DESTINATION lib
|
# ARCHIVE DESTINATION lib
|
||||||
)
|
#)
|
||||||
|
|
||||||
|
|
|
@ -67,3 +67,9 @@ add_library(asn1 MODULE
|
||||||
${PLUGIN_FILES}
|
${PLUGIN_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(TARGETS asn1
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
|
@ -101,3 +101,9 @@ add_library(docsis MODULE
|
||||||
${PLUGIN_FILES}
|
${PLUGIN_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(TARGETS docsis
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
|
@ -73,3 +73,9 @@ add_library(ethercat MODULE
|
||||||
${PLUGIN_FILES}
|
${PLUGIN_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(TARGETS ethercat
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
|
@ -67,3 +67,9 @@ add_library(gryphon MODULE
|
||||||
${PLUGIN_FILES}
|
${PLUGIN_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(TARGETS gryphon
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
|
@ -69,3 +69,9 @@ add_library(irda MODULE
|
||||||
${PLUGIN_FILES}
|
${PLUGIN_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(TARGETS irda
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
|
@ -67,3 +67,9 @@ add_library(m2m MODULE
|
||||||
${PLUGIN_FILES}
|
${PLUGIN_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(TARGETS m2m
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
|
@ -86,3 +86,9 @@ add_library(mate MODULE
|
||||||
${PLUGIN_FILES}
|
${PLUGIN_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(TARGETS mate
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,88 @@
|
||||||
|
# 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(DISSECTOR_SRC
|
||||||
|
opcua.c
|
||||||
|
)
|
||||||
|
|
||||||
|
set(DISSECTOR_SUPPORT_SRC
|
||||||
|
opcua_transport_layer.c
|
||||||
|
opcua_security_layer.c
|
||||||
|
opcua_application_layer.c
|
||||||
|
opcua_serviceparser.c
|
||||||
|
opcua_complextypeparser.c
|
||||||
|
opcua_enumparser.c
|
||||||
|
opcua_simpletypes.c
|
||||||
|
opcua_servicetable.c
|
||||||
|
opcua_hfindeces.c
|
||||||
|
)
|
||||||
|
|
||||||
|
set(PLUGIN_FILES
|
||||||
|
plugin.c
|
||||||
|
${DISSECTOR_SRC}
|
||||||
|
${DISSECTOR_SUPPORT_SRC}
|
||||||
|
)
|
||||||
|
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
|
ADD_CUSTOM_COMMAND(
|
||||||
|
# FIXME: Only the Python stuff has been implemented
|
||||||
|
# Make this into a MACRO, to avoid duplication with epan/
|
||||||
|
#plugin.c: $(DISSECTOR_SRC) $(top_srcdir)/tools/make-dissector-reg
|
||||||
|
# $(top_srcdir)/tools/make-dissector-reg.py
|
||||||
|
# @if test -n "$(PYTHON)"; then
|
||||||
|
# echo Making plugin.c with python ;
|
||||||
|
# $(PYTHON) $(top_srcdir)/tools/make-dissector-reg.py $(srcdir)
|
||||||
|
# plugin $(DISSECTOR_SRC) ;
|
||||||
|
# else
|
||||||
|
# echo Making plugin.c with shell script ;
|
||||||
|
# $(top_srcdir)/tools/make-dissector-reg $(srcdir)
|
||||||
|
# $(plugin_src) plugin $(DISSECTOR_SRC) ;
|
||||||
|
# fi
|
||||||
|
|
||||||
|
OUTPUT plugin.c
|
||||||
|
COMMAND ${PYTHON_EXECUTABLE}
|
||||||
|
${CMAKE_SOURCE_DIR}/tools/make-dissector-reg.py
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
plugin
|
||||||
|
${DISSECTOR_SRC}
|
||||||
|
DEPENDS
|
||||||
|
${DISSECTOR_SRC}
|
||||||
|
${CMAKE_SOURCE_DIR}/tools/make-dissector-reg
|
||||||
|
${CMAKE_SOURCE_DIR}/tools/make-dissector-reg.py
|
||||||
|
)
|
||||||
|
|
||||||
|
# todo
|
||||||
|
# Do I need any of this or is this handled by type MODULE?
|
||||||
|
# asn1_la_LDFLAGS = -module -avoid-version
|
||||||
|
|
||||||
|
add_library(opcua MODULE
|
||||||
|
${PLUGIN_FILES}
|
||||||
|
)
|
||||||
|
|
||||||
|
install(TARGETS opcua
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue