10 releases

0.0.32 Nov 28, 2024
0.0.31 Nov 6, 2024
0.0.30 Oct 26, 2024
0.0.26 Sep 27, 2024
0.0.18 May 23, 2023

#155 in Build Utils

Download history 128/week @ 2024-08-16 27/week @ 2024-08-23 32/week @ 2024-08-30 13/week @ 2024-09-06 16/week @ 2024-09-13 147/week @ 2024-09-20 253/week @ 2024-09-27 43/week @ 2024-10-04 159/week @ 2024-10-11 12/week @ 2024-10-18 124/week @ 2024-10-25 120/week @ 2024-11-01 24/week @ 2024-11-08 5/week @ 2024-11-15 126/week @ 2024-11-22 32/week @ 2024-11-29

205 downloads per month

GPL-2.0+

655KB
18K SLoC

ognibuild

Ognibuild is a simple wrapper with a common interface for invoking any kind of build tool.

The ideas is that it can be run to build and install any source code directory by detecting the build system that is in use and invoking that with the correct parameters.

It can also detect and install missing dependencies.

Goals

The goal of ognibuild is to provide a consistent CLI that can be used for any software package. It is mostly useful for automated building of large sets of diverse packages (e.g. different programming languages).

It is not meant to expose all functionality that is present in the underlying build systems. To use that, invoke those build systems directly.

Usage

Ognibuild has a number of subcommands:

  • ogni clean - remove any built artifacts
  • ogni dist - create a source tarball
  • ogni build - build the package in-tree
  • ogni install - install the package
  • ogni test - run the testsuite in the source directory

It also includes a subcommand that can fix up the build dependencies for Debian packages, called deb-fix-build.

Examples

ogni -d https://gitlab.gnome.org/GNOME/fractal install

Status

Ognibuild is functional, but sometimes rough around the edges. If you run into issues (or lack of support for a particular ecosystem), please file a bug.

Supported Build Systems

  • Bazel
  • Cabal
  • Cargo
  • Golang
  • Gradle
  • Make, including various makefile generators:
    • autoconf/automake
    • CMake
    • Makefile.PL
    • qmake
  • Maven
  • ninja, including ninja file generators:
    • meson
  • Node
  • Octave
  • Perl
    • Module::Build::Tiny
    • Dist::Zilla
    • Minilla
  • PHP Pear
  • Python - setup.py/setup.cfg/pyproject.toml
  • R
  • Ruby gems
  • Waf

Supported package repositories

Package repositories are used to install missing dependencies.

The following "native" repositories are supported:

  • pypi
  • cpan
  • hackage
  • npm
  • cargo
  • cran
  • golang*

As well one distribution repository:

  • apt

License

Ognibuild is licensed under the GNU GPL, v2 or later.

Dependencies

~19–42MB
~651K SLoC