1
0
Fork 0

Adding upstream version 3.1.0+dfsg.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-05 08:00:08 +01:00
parent 64dbec996d
commit cfcebb1a7d
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
569 changed files with 205393 additions and 0 deletions

25
tools/CMakeLists.txt Normal file
View file

@ -0,0 +1,25 @@
include(CheckIncludeFile)
# config file for tools
configure_file(${PROJECT_SOURCE_DIR}/tools/config.h.in ${PROJECT_BINARY_DIR}/tools/config.h @ONLY)
# find ioctl
check_include_file("sys/ioctl.h" HAVE_IOCTL)
if(NOT HAVE_IOCTL)
message(STATUS "Disabling interactive yanglint, sys/ioctl.h not found...")
set(ENABLE_YANGLINT_INTERACTIVE OFF)
endif()
# find getopt library on WIN32
if(WIN32)
find_library(GETOPT_LIBRARY NAMES getopt REQUIRED)
find_path(GETOPT_INCLUDE_DIR NAMES getopt.h REQUIRED)
message(STATUS "Found <getopt.h> at ${GETOPT_INCLUDE_DIR}, library at ${GETOPT_LIBRARY}")
endif()
add_subdirectory(lint)
add_subdirectory(re)
set(format_sources
${format_sources}
PARENT_SCOPE)