Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 2.08 KB

README.md

File metadata and controls

53 lines (37 loc) · 2.08 KB

bulc

Build file generator for CMake.

bulgogi

Bulc is based on bulgogi, a YAML parser for build configurations.

Synopsis

See SYNOPSIS.md.

Installation

Bulc can be installed from pypi using pip:

$ pip install bulc

Dependencies

Its dependencies are currently:

  • bulgogi-py (pip install bulgogi)
  • jinja2 (pip install jinja2)

These will automatically be fetched when bulc is installed with pip.

Usage

Once installed, the bulc CLI tool should be available on your system or venv path.

$ bulc file.yml template.jinja > file.out
  • file.yml: the YAML-defined template configuration.
  • template.jinja: the jinja template file to feed file.yaml into.
  • file.out: the output file to produce from the template.

GNU Make Example

Suppose a project.yaml file defined the targets to be built and Makefile.jinja defined the Makefile template to use.

$ bulc project.yaml Makefile.jinja > Makefile

Once generated, using the build file would simply be a matter of running:

$ make

License

bulc by Alex Amellal is licensed under CC BY 4.0

Sweden