From b54b8f5b25403cf3b9623804b2491ec78a8b913e Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 21 May 2024 01:29:20 +0200 Subject: build: replace autotools with cmake this patch removes all the autoconf/automake/libtool build infrastructure and replaces it with cmake. notable default behavior changes: - man pages are not pre-built, and are not built by default, must be enabled with `-DBUILD_MANPAGES=ON`. removed features: - srpm packaging, to be reintroduced at some point. - deb packaging, now handled externally via rafaelmartins/deb.rgm.io more stuff must be missing, please report bugs! --- src/blogc-git-receiver/CMakeLists.txt | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/blogc-git-receiver/CMakeLists.txt (limited to 'src/blogc-git-receiver') diff --git a/src/blogc-git-receiver/CMakeLists.txt b/src/blogc-git-receiver/CMakeLists.txt new file mode 100644 index 0000000..57f5ab6 --- /dev/null +++ b/src/blogc-git-receiver/CMakeLists.txt @@ -0,0 +1,41 @@ +# SPDX-FileCopyrightText: 2024 Rafael G. Martins +# SPDX-License-Identifier: BSD-3-Clause + +if(NOT DEFINED HAVE_DIRENT_H OR + NOT DEFINED HAVE_ERRNO_H OR + NOT DEFINED HAVE_LIBGEN_H OR + NOT DEFINED HAVE_SYS_TYPES_H OR + NOT DEFINED HAVE_SYS_STAT_H OR + NOT DEFINED HAVE_TIME_H OR + NOT DEFINED HAVE_UNISTD_H) + message(FATAL_ERROR "Missing header dependencies for blogc-git-receiver") +endif() + +add_library(libblogc_git_receiver STATIC + post-receive.c + post-receive.h + pre-receive-parser.c + pre-receive-parser.h + pre-receive.c + pre-receive.h + settings.c + settings.h + shell-command-parser.c + shell-command-parser.h + shell.c + shell.h +) + +target_link_libraries(libblogc_git_receiver PRIVATE + libblogc_common +) + +add_executable(blogc-git-receiver + main.c +) + +target_link_libraries(blogc-git-receiver PRIVATE + libblogc_git_receiver +) + +install(TARGETS blogc-git-receiver) -- cgit v1.2.3-18-g5258