3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
63 nettrace_3gpp_32_423.c
85 set_source_files_properties(
92 add_lex_files(WIRETAP_FILES
97 add_yacc_files(WIRETAP_FILES
103 ${GMODULE2_LIBRARIES}
108 add_library(wiretap ${LINK_MODE_LIB}
110 ${CMAKE_BINARY_DIR}/image/wiretap.rc
113 set(FULL_SO_VERSION "0.0.9")
115 set_target_properties(wiretap PROPERTIES
116 COMPILE_DEFINITIONS "WS_BUILD_DLL"
117 LINK_FLAGS "${WS_LINK_FLAGS}"
118 VERSION ${FULL_SO_VERSION} SOVERSION 0
122 set_target_properties(wiretap PROPERTIES OUTPUT_NAME "wiretap-${PROJECT_VERSION}")
125 if(ENABLE_APPLICATION_BUNDLE)
126 set_target_properties(wiretap PROPERTIES
127 LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/run/Wireshark.app/Contents/Frameworks
133 add_custom_command(OUTPUT libwiretap.abi.tar.gz
134 COMMAND ${CMAKE_COMMAND} -E remove_directory ${ABICHECK_TMPDIR}
135 COMMAND ${CMAKE_COMMAND} -E make_directory ${ABICHECK_TMPDIR}
136 COMMAND ${ABI_COPY_COMMAND} ../config.h ${ABICHECK_TMPDIR}/ ${ABI_COPY_FLAGS}
137 COMMAND ${ABI_COPY_COMMAND} ${ABICHECK_HEADERS} ${ABICHECK_TMPDIR}/ ${ABI_COPY_FLAGS}
138 COMMAND ${ABICHECK_COMMAND}
139 COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/abi_dumps/libwiretap/libwiretap_* ${CMAKE_CURRENT_BINARY_DIR}/libwiretap.abi.tar.gz
140 COMMAND rm -rf ${ABICHECK_TMPDIR} ${CMAKE_CURRENT_BINARY_DIR}/abi_dumps
141 DEPENDS ${HEADERS} wiretap)
143 target_link_libraries(wiretap ${wiretap_LIBS})
145 if(NOT ${ENABLE_STATIC})
146 install(TARGETS wiretap
147 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
148 RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
149 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}