Skip to main content

general purpose built tool

Project description

irori - build tool

Copyright 2019 SiLeader.


  • configuration file is Python script
  • suffix rule
  • concurrent execution

how to use

pip install irori

write configuration script (

from irori.rules import SuffixRule, StaticRule, LinkRule
from irori import context as ctxt, runner
from irori.depend import Dependencies

import glob

target = 'hello.elf'

def build(_: ctxt.BuildContext):
    return LinkRule(
        command='clang++ -fPIC -o $@ $^',
        debug='-O0 -g',
            cpp=StaticRule('g++ -std=c++11 -c $< -o $@', debug='-O0 -g', release='-O2'),
            c=StaticRule('gcc -std=c11 -c -O2 $< -o $@', debug='-O0 -g', release='-O2')

def depend(_: ctxt.BuildContext):
    return SuffixRule(
        cpp=StaticRule('g++ -MMD -c $< -o $@'),
        c=StaticRule('gcc -MMD -c $< -o $@')

def recipes():
    return {
        'build': build,
        'depend': depend

def arguments(parser):

def find_files(_: ctxt.BuildContext):
    return glob.glob('*.c') + glob.glob('*.cpp')

    recipes=recipes, finder=find_files,
    arguments=arguments, dependencies=Dependencies(files=glob.glob('obj/*.d'))

run in's directory.

irori build


GNU GPL version 3.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for irori, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size irori-1.0.0-py3-none-any.whl (21.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size irori-1.0.0.tar.gz (18.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page