simon-git: agedu (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sun Nov 28 09:21:40 GMT 2021
TL;DR:
8cd63c5 Convert build system to cmake.
Repository: https://git.tartarus.org/simon/agedu.git
On the web: https://git.tartarus.org/?p=simon/agedu.git
Branch updated: main
Committer: Simon Tatham <anakin at pobox.com>
Date: 2021-11-28 09:21:40
commit 8cd63c5778d2e2872d951b775292ee8025bdcca4
web diff https://git.tartarus.org/?p=simon/agedu.git;a=commitdiff;h=8cd63c5778d2e2872d951b775292ee8025bdcca4;hp=2a7d4a2fe958c59f981ac0f789efde90b5ddd310
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Nov 28 07:45:50 2021 +0000
Convert build system to cmake.
I've been doing this to the rest of my software projects recently,
mostly because CMake is friendlier than autotools to projects that
build for Windows, because it can treat Windows as a first-class
citizen. In this case, agedu _itself_ is a Unix-only program, but it
comes with the auxiliary ageduscan.exe that builds for Windows - so
now I can write a CMakeLists that builds the Unix program on Unix, and
builds the Windows program on Windows.
Changes in the actual source code are minimal:
- replace #ifdef HAVE_FOO with #if HAVE_FOO, since cmake's
configuration header likes to define things unconditionally and set
them to 0 or 1
- change the versioning system, because autotools isn't defining
PACKAGE_VERSION any more
- stop using SELECT_TYPE_ARG1. SELECT_TYPE_ARG234 etc, because only
autoconf defined those. (With any luck they're not needed anyway in
the modern world, since the types of select arguments are defined
by POSIX; I expect those were one of autoconf's especially
historical provisions.)
Buildscr | 52 ++++++++++-----------------
CMakeLists.txt | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Makefile.am | 20 -----------
agedu.c | 8 ++---
agedu.h | 62 ++++++++++++++++-----------------
cmake.h.in | 43 +++++++++++++++++++++++
configure.ac | 62 ---------------------------------
du.c | 16 ++++-----
httpd.c | 26 +++++++-------
mkauto.sh | 2 --
version.h | 7 ++++
11 files changed, 231 insertions(+), 175 deletions(-)
More information about the tartarus-commits
mailing list