summaryrefslogtreecommitdiff
path: root/ninja.rc
AgeCommit message (Collapse)Author
2017-09-25Rewrite ninja generation scripts in LuaMichael Forney
2017-02-27Move util -> srcMichael Forney
2016-12-29Allow using /.git as output repositoryMichael Forney
2016-12-19Compress man pagesMichael Forney
2016-12-13Move {cc,cxx,ld}flags settings from toolchain to configMichael Forney
2016-12-13Move to flat package hierarchyMichael Forney
Note to self: never try to move submodules again To migrate your existing submodules (more or less): set -x set -e mkdir .git/modules/pkg for old in */*/src ; do new="pkg/${old#*/}" if ! [ -f "$old/.git" ] || [ "${old%%/*}" = pkg ] ; then continue fi git -C ".git/modules/$old" config core.worktree "../../../../../$new" rmdir "$new" mv "$old" "$new" sed -e "s,$old,$new," "$new/.git" > "$new/.git.tmp" mv "$new/.git.tmp" "$new/.git" mkdir ".git/modules/${new%/src}" mv ".git/modules/$old" ".git/modules/$new" rm "${old%/src}"/*.ninja mv "${old%/src}"/*.tar.{gz,xz,bz2} "${new%/src}/" rmdir "${old%/src}" || true done sed -e 's,^\[submodule "[^/]*/,[submodule "pkg/,' .git/config > .git/config.tmp mv .git/config.tmp .git/config
2016-11-20Drop phony/ prefix from phony targetsMichael Forney
There is little chance of collision between phony target names and actual sources checked in $dir. Additionally, it was a bit magical when processing phony sources because paths starting with $ or phony/ were left alone, while others were prepended with $outdir/. Also, where appropriate, use phony targets for dependencies instead of specifying all of them for every compile action. This makes the resulting ninja files easier to read, and might be more efficient too.
2016-10-30Add waylandproto rule and helperMichael Forney
2016-10-30Provide mechanism to track library dependenciesMichael Forney
Now, ar/lib rules can list static libraries or other .d files. These (as well as the target library) are written to a file called $lib.d. link/exe rules can list these .d files, causing them to be flattened into an RSP file and appear on the command line as @$rsp. The rule to generate the dependency list files depends on the libraries they contain, so they also act as a stamp file for the dependencies. This gives us dependency management for free.
2016-10-12Rename .rev to revMichael Forney
Even though it is not generally useful, it is easy to forget to update if it is hidden.
2016-07-16Don't list git repository files as outputsMichael Forney
This way, ninja -t clean will work as expected.
2016-07-10Delete sub and go back to subninjaMichael Forney
Using a pipe allows us to specify the file name only once, but also runs in a subshell, so we lose the list of dependent sources. So, just go back to subninja, and make it slightly cleaner by assuming $dir.
2016-07-09Always emit fetch rule if specifiedMichael Forney
2016-07-03Add sub helper functionMichael Forney
2016-07-02Add support for nasm sourcesMichael Forney
2016-06-28fetch-curl: Support specifying a pattern of files to extractMichael Forney
2016-06-27Split the fetch rule into twoMichael Forney
2016-06-27Don't write fetch rule if no sources are usedMichael Forney
2016-06-27Set ifs to newline by defaultMichael Forney
2016-06-27Integrate source fetching into ninja filesMichael Forney
2016-06-27Reformulate "let" helper into "with"Michael Forney
2016-06-26Add argument sanity check to packaging rulesMichael Forney
2016-06-25Add config.rc to control what goes into the filesystem treeMichael Forney
2016-06-06Fix special permission handlingMichael Forney
2016-05-16Add ninja 1.7.1Michael Forney
2016-04-18Add perp-2.07Michael Forney
2016-04-17Rename static_lib -> libMichael Forney
2016-04-17Combine static_lib and exeMichael Forney
2016-04-17Use phony targets for order-only dependenciesMichael Forney
2016-04-17Add support for specifying .o files in static_libMichael Forney
2016-04-17Array styleMichael Forney
2016-04-17Make $srcdir refer to the src directory, and add $dir for the directory ↵Michael Forney
containing gen.rc
2016-04-15Allow independent generation of ninja filesMichael Forney
2016-04-15Move ninja helpers to ninja.rcMichael Forney