leonlynch / libargp

libargp (Gnulib)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libargp (Gnulib)

License: LGPL-2.1
Ubuntu build
MacOS build
Windows build

This project provides various helpers for the extraction and use of libargp from Gnulib. It also contains an extracted and patched copy of libargp such that it can easily be added as a submodule to CMake projects.

Note that CMake will still invoke the generated autoconf/automake build environment due to the many relevant platform tests, but won't regenerate the autoconf/automake build environment on hosts without autoconf/automake tools.

The default branch represents the state of libargp that can be added to other CMake projects while the gnulib branch represents the state of libargp after extraction from Gnulib but before any other patches have been applied.

Usage

The extract_libargp_lgpl_from_gnulib.sh script can be used while in the gnulib branch to clone the latest gnulib, extract the libargp build environment, and extract the libargp module itself under LGPL. The output directory can then be compared to the existing src directory to observe the changes since the last extraction. The output directory can then replace the existing src directory such that these changes reflect when committed to Git. Note that the intention is for the gnulib branch to represent the state of libargp exactly as it is extracted from gnulib. It can then be merged to the default branch and the latter can be used to track changes beyond gnulib.

Note that the autoconf, automake and libtool versions used during the above extraction may influence the output and should be mentioned in the subsequent Git message for future reference.

This CMake project can be added to CMake parent projects in various ways:

  • As a submodule using the CMake add_subdirectory() command
  • During the CMake configuration step using the CMake FetchContent_Declare() and FetchContent_MakeAvailable() commands
  • During the CMake build step using the CMake ExternalProject_Add() command

License

Gnulib is copyright Free Software Foundation

Helpers in this project are copyright 2022-2024 Leon Lynch.

This project is licensed under the terms of the LGPL v2.1 license. See LICENSE file.

About

libargp (Gnulib)

License:GNU Lesser General Public License v2.1


Languages

Language:C 42.9%Language:M4 21.1%Language:Shell 16.6%Language:Makefile 12.9%Language:C++ 6.2%Language:CMake 0.2%