https://github.com/b1f6c1c4/ajnin

A Beautiful, Distributive Ninja generator

https://github.com/b1f6c1c4/ajnin

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.6%) to scientific vocabulary

Keywords

automation build-system build-tool ninja ninja-build
Last synced: 6 months ago · JSON representation

Repository

A Beautiful, Distributive Ninja generator

Basic Info
  • Host: GitHub
  • Owner: b1f6c1c4
  • License: agpl-3.0
  • Language: C++
  • Default Branch: master
  • Homepage:
  • Size: 206 KB
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 1
  • Releases: 6
Topics
automation build-system build-tool ninja ninja-build
Created almost 5 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

[ˈajn in]: A Beautiful Ninja generator

AUR AUR GitHub last commit GitHub code size in bytes license

Appveyor Build Coveralls

[ˈnɪ̈̃nʷd͡ʒʷ ə] focuses on speed, ['ajn in] focuses on beauty.

Demo

Code build.ajnin beautifully:

``` rule cc |= (/usr/bin/cc) rule cc &cflags+=' -O3'

(all) << {

list c := src/$$.c
foreach c {
    (src/$c.c) --cc-- (build/$c.o) --ld-- (build/a.out)
}

} ```

Run: ajnin -o build.ninja build.ajnin to bridge beauty and speed:

ninja build all: phony build/a.out build build/a.out: ld build/a.o build/b.o build build/a.o: cc src/a.c | /usr/bin/cc cflags = -O3 build build/b.o: cc src/b.c | /usr/bin/cc cflags = -O3

And then run ninja speedy.

Install

  • Arch Linux: It's on AUR
  • Linux but not Arch Linux: git-get this repo and use CMake. You should have already learned how to use CMake and Ninja.
  • Other unlisted operating system: Not officially supported. Go figure it out yourself.

Usage

ajnin: Convert *.ajnin into *.ninja Usage: ajnin [-h|--help] [-q|--quiet] [-C <chdir>] [-d|--debug] [-o <output>] [-s|--slice <regex>]... [-S|--solo <regex>]... [--bare] [<input>] Note: -s and -S implies --bare, which cannot be override

an: Convert *.ajnin into *.ninja and execute Usage: an [-h|--help] [-q|--quiet] [-C <chdir>] [-o <build.ninja>] [-s|--slice <regex>]... [-S|--solo <regex>]... [--bare] [-f <build.ajnin>] [<ninja command line arguments>]... Note: -s and -S implies -o '', but can be override

sanity: Convert one *.ajnin into multiple *.ninjas Usage: sanity [-h|--help] [-q|--quiet] [-C <chdir>] [-s|--slice <regex>]... [-S|--solo <regex>]... [-f <build.ajnin>] [-o <sanity.d>] [-j <parallelism>] [<regex>]...

ajnin Language Reference

Checkout tests/*.ajnin. You are on your own. Good luck.

Legal

This project is licensed under GNU AGPL v3.0 only. (AGPL-3.0-only).

``` Copyright (C) 2021-2023 b1f6c1c4

This file is part of ajnin.

ajnin is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3.

ajnin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with ajnin. If not, see https://www.gnu.org/licenses/. ```

Owner

  • Login: b1f6c1c4
  • Kind: user
  • Location: NJ, USA
  • Company: Princeton University

52BE D143 A92D BE96 2B83 092B 9BAC 0164 9600 1E70

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 5
  • Total pull requests: 0
  • Average time to close issues: 14 days
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • b1f6c1c4 (5)
Pull Request Authors
Top Labels
Issue Labels
enhancement (3)
Pull Request Labels