Beginnings of CheckAPI support. More diligence needed
(need to seperate generated files into their own variables). svn path=/trunk/; revision=53407
This commit is contained in:
parent
7b80faa66f
commit
2276ff07d2
|
@ -1304,6 +1304,11 @@ install(
|
|||
PATTERN "faq.py" EXCLUDE
|
||||
)
|
||||
|
||||
include( UseCheckAPI )
|
||||
CHECKAPI(
|
||||
${TSHARK_TAP_SRC}
|
||||
${wireshark_FILES}
|
||||
)
|
||||
|
||||
if(DOC_DIR)
|
||||
message(STATUS "Docdir install: ${DOC_DIR}")
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#
|
||||
# $Id$
|
||||
#
|
||||
macro( CHECKAPI )
|
||||
set( _sources ${ARGN} )
|
||||
|
||||
ADD_CUSTOM_TARGET(checkapi
|
||||
COMMAND ${PERL_EXECUTABLE}
|
||||
${CMAKE_SOURCE_DIR}/tools/checkAPIs.pl
|
||||
-build
|
||||
${_sources}
|
||||
WORKING_DIRECTORY
|
||||
${CMAKE_SOURCE_DIR}
|
||||
DEPENDS
|
||||
${CMAKE_SOURCE_DIR}/tools/checkAPIs.pl
|
||||
${_sources}
|
||||
)
|
||||
ENDMACRO()
|
Loading…
Reference in New Issue