Adding upstream version 3.1.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
64dbec996d
commit
cfcebb1a7d
569 changed files with 205393 additions and 0 deletions
48
tools/lint/CMakeLists.txt
Normal file
48
tools/lint/CMakeLists.txt
Normal file
|
@ -0,0 +1,48 @@
|
|||
# yanglint
|
||||
set(lintsrc
|
||||
main_ni.c
|
||||
cmd.c
|
||||
cmd_add.c
|
||||
cmd_clear.c
|
||||
cmd_data.c
|
||||
cmd_list.c
|
||||
cmd_feature.c
|
||||
cmd_load.c
|
||||
cmd_print.c
|
||||
cmd_searchpath.c
|
||||
cmd_extdata.c
|
||||
cmd_help.c
|
||||
cmd_verb.c
|
||||
cmd_debug.c
|
||||
yl_opt.c
|
||||
yl_schema_features.c
|
||||
common.c
|
||||
)
|
||||
|
||||
if(ENABLE_YANGLINT_INTERACTIVE)
|
||||
set(lintsrc ${lintsrc}
|
||||
main.c
|
||||
completion.c
|
||||
configuration.c
|
||||
linenoise/linenoise.c)
|
||||
else()
|
||||
set(lintsrc ${lintsrc}
|
||||
main_ni_only.c)
|
||||
endif()
|
||||
|
||||
set(format_sources
|
||||
${format_sources}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.h
|
||||
PARENT_SCOPE)
|
||||
|
||||
add_executable(yanglint ${lintsrc} ${compatsrc})
|
||||
target_link_libraries(yanglint yang)
|
||||
install(TARGETS yanglint DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
install(FILES ${PROJECT_SOURCE_DIR}/tools/lint/yanglint.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
||||
target_include_directories(yanglint BEFORE PRIVATE ${PROJECT_BINARY_DIR})
|
||||
|
||||
if(WIN32)
|
||||
target_include_directories(yanglint PRIVATE ${GETOPT_INCLUDE_DIR})
|
||||
target_link_libraries(yanglint ${GETOPT_LIBRARY})
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue