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.
64 nettrace_3gpp_32_423.c
84 ${CMAKE_SOURCE_DIR}/ws_version_info.c
87 if (WERROR_COMMON_FLAGS)
88 set_source_files_properties(
91 COMPILE_FLAGS ${WERROR_COMMON_FLAGS}
95 add_lex_files(LEX_FILES GENERATED_FILES
100 add_yacc_files(YACC_FILES GENERATED_FILES
106 ${GMODULE2_LIBRARIES}
111 add_library(wiretap ${LINK_MODE_LIB}
114 ${CMAKE_BINARY_DIR}/image/wiretap.rc
117 add_dependencies(wiretap version)
119 set(FULL_SO_VERSION "0.0.0")
121 set_target_properties(wiretap PROPERTIES
122 COMPILE_DEFINITIONS "WS_BUILD_DLL"
123 LINK_FLAGS "${WS_LINK_FLAGS}"
124 VERSION ${FULL_SO_VERSION} SOVERSION 0
128 set_target_properties(wiretap PROPERTIES OUTPUT_NAME "wiretap-${PROJECT_VERSION}")
131 if(ENABLE_APPLICATION_BUNDLE)
132 set_target_properties(wiretap PROPERTIES
133 LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/run/Wireshark.app/Contents/Frameworks
139 add_custom_command(OUTPUT libwiretap.abi.tar.gz
140 COMMAND ${CMAKE_COMMAND} -E remove_directory ${ABICHECK_TMPDIR}
141 COMMAND ${CMAKE_COMMAND} -E make_directory ${ABICHECK_TMPDIR}
142 COMMAND ${ABI_COPY_COMMAND} ../config.h ${ABICHECK_TMPDIR}/ ${ABI_COPY_FLAGS}
143 COMMAND ${ABI_COPY_COMMAND} ${ABICHECK_HEADERS} ${ABICHECK_TMPDIR}/ ${ABI_COPY_FLAGS}
144 COMMAND ${ABICHECK_COMMAND}
145 COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/abi_dumps/libwiretap/libwiretap_* ${CMAKE_CURRENT_BINARY_DIR}/libwiretap.abi.tar.gz
146 COMMAND rm -rf ${ABICHECK_TMPDIR} ${CMAKE_CURRENT_BINARY_DIR}/abi_dumps
147 DEPENDS ${HEADERS} wiretap)
149 target_link_libraries(wiretap ${wiretap_LIBS})
151 if(NOT ${ENABLE_STATIC})
152 install(TARGETS wiretap
153 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
154 RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
155 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
163 ## 'abort' checking disabled for now pending resolution of existing use of g_assert & g_error
164 ## -g abort -g termoutput
168 # LEX files commented out due to use of malloc, free etc.