diff options
author | Graham Bloice <graham.bloice@trihedral.com> | 2016-03-11 19:51:39 +0000 |
---|---|---|
committer | Graham Bloice <graham.bloice@trihedral.com> | 2016-05-02 12:01:24 +0000 |
commit | 2e23b506c766d98966ed213c760b2aa6232ba1fe (patch) | |
tree | e15eec1049e10419d869dea459730791ec2bc128 /wiretap | |
parent | 231f6b5035e4f001eca22029b58cf4c498d624bd (diff) |
Add checkAPI calls to CMake.
This generates a top level target, checkAPI, that is
excluded from the ALL build target, so must be run separately.
On Windows using a Visual Studio generator, call
msbuild /p:Configuration=RelWithDebInfo checkAPI.vcxproj
Change-Id: I44a57c564dcfc75499463b942436f4b920a82478
Reviewed-on: https://code.wireshark.org/review/14873
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/CMakeLists.txt | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/wiretap/CMakeLists.txt b/wiretap/CMakeLists.txt index 59233d7911..60c8a1e349 100644 --- a/wiretap/CMakeLists.txt +++ b/wiretap/CMakeLists.txt @@ -92,12 +92,12 @@ if (WERROR_COMMON_FLAGS) ) endif() -add_lex_files(WIRETAP_FILES +add_lex_files(LEX_FILES GENERATED_FILES ascend_scanner.l k12text.l ) -add_yacc_files(WIRETAP_FILES +add_yacc_files(YACC_FILES GENERATED_FILES ascend.y ) @@ -110,6 +110,7 @@ set(wiretap_LIBS add_library(wiretap ${LINK_MODE_LIB} ${WIRETAP_FILES} + ${GENERATED_FILES} ${CMAKE_BINARY_DIR}/image/wiretap.rc ) @@ -154,3 +155,17 @@ if(NOT ${ENABLE_STATIC}) ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ) endif() + +CHECKAPI( + NAME + wiretap + SWITCHES +## 'abort' checking disabled for now pending resolution of existing use of g_assert & g_error +## -g abort -g termoutput + -g termoutput -build + SOURCES + ${WIRETAP_FILES} +# LEX files commented out due to use of malloc, free etc. +# ${LEX_FILES} + ${YACC_FILES} +) |