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/CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/CMakeLists.txt (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..cc5af5d --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: 2024 Rafael G. Martins +# SPDX-License-Identifier: BSD-3-Clause + +add_subdirectory(common) + +option(BUILD_BLOGC_MAKE "Build blogc-make binary." OFF) +option(BUILD_BLOGC_MAKE_EMBEDDED "Build blogc-make embedded into blogc binary." OFF) +if(BUILD_BLOGC_MAKE OR BUILD_BLOGC_MAKE_EMBEDDED) + add_subdirectory(blogc-make) +endif() + +option(BUILD_BLOGC_RUNSERVER "Build blogc-runserver binary." OFF) +if(BUILD_BLOGC_RUNSERVER) + add_subdirectory(blogc-runserver) +endif() + +option(BUILD_BLOGC_GIT_RECEIVER "Build blogc-git-receiver binary." OFF) +if(BUILD_BLOGC_GIT_RECEIVER) + add_subdirectory(blogc-git-receiver) +endif() + +add_subdirectory(blogc) -- cgit v1.2.3-18-g5258