From 2e23b506c766d98966ed213c760b2aa6232ba1fe Mon Sep 17 00:00:00 2001 From: Graham Bloice Date: Fri, 11 Mar 2016 19:51:39 +0000 Subject: 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 Reviewed-by: Graham Bloice --- capchild/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'capchild/CMakeLists.txt') diff --git a/capchild/CMakeLists.txt b/capchild/CMakeLists.txt index 64b6edeb70..1689d0e61e 100644 --- a/capchild/CMakeLists.txt +++ b/capchild/CMakeLists.txt @@ -1,4 +1,5 @@ # CMakeLists.txt + # # Wireshark - Network traffic analyzer # By Gerald Combs @@ -46,3 +47,21 @@ add_library(capchild STATIC set_target_properties(capchild PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}" FOLDER "Libs") + +include( UseCheckAPI ) +CHECKAPI( + NAME + capchild-base + SWITCHES + -g deprecated-gtk + SOURCES + ${CAPCHILD_SRC} +) +CHECKAPI( + NAME + capchild-todo + SWITCHES + -M -g deprecated-gtk-todo + SOURCES + ${CAPCHILD_SRC} +) -- cgit v1.2.3