File: build.ninja.fold

package info (click to toggle)
kf6-syntax-highlighting 6.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 47,568 kB
  • sloc: xml: 197,750; cpp: 12,850; python: 3,023; sh: 955; perl: 546; ruby: 488; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; erlang: 54; sql: 51; java: 47; objc: 37; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (125 lines) | stat: -rw-r--r-- 1,838 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# comment
rule b
rule c
#d
rule c
description=a
rule d
  description = ds
  description = ds
  rule=ds
  description = ds
rule b

rule c

rule c
 # ds
 ds=ds
description=a
rule d
  rule =description = ds

rule b
  command = clang -MMD -MF $out.d -o $out -c $in
  description = building $out
  unknown = xyz

rule dump
  command = sleep 1; ls -l /proc/self/fd; exit 1
  pool = link_pool
  # blah blah
  pool = console
  pool = $console

rule xy-z_
rule --xy-z_
rule _xy-z_

# error
rule with error
rule a:a
rule a|a
rule a$
rule 0-@#d

# browse_py.h is used to inline browse.py.
rule inline
  command = "$root/src/inline.sh" $varname < $in > $out
  description = INLINE $out

default foo bar
default baz

include ninja1.ninja

subninja ninja2.ninja

pool link_pool
  depth = 4
  xxx = d

pool link_pool d
  depth = 4

build a.o: b a.c

build a.o|c: b a.c || a | b

build a.o | c : b a.c | a || b

build $a.o | $c : b $a.c | $a || $b

build 0: sleep README

build 1: sleep README

build all: phony 0 1
deps = xxx
CMD = cc
build all: phony 0 1

build $builddir/browse_py.h: inline $root/src/browse.py | $root/src/inline.sh
  varname = kBrowsePy

build $builddir/subprocess-posix.o: cxx $root/src/subprocess-posix.cc
build $builddir/libninja.a: ar $builddir/browse.o $builddir/build.o $
    $builddir/build_log.o $builddir/clean.o $builddir/debug_flags.o $
    $builddir/depfile_parser.o $builddir/deps_log.o

build $root/doc/manual.pdf: dblatex $builddir/manual.xml | $
    $root/doc/dblatex.xsl

build out: cat in |@ validate1 validate2 |@ validate1 | dep
build out: cat in || dep |@ validate

builddir=/
builddir =/
builddir= /
ldflags = -L$builddir

xx x

x = $a
x = $-a_
x = ${a}
x = ${-a}
x = $a@
x = $@
x = $$
x = $:
x = $ a
x = $
    b
x = $
    $
    a
x = $
    $a
x = $a a
x = ${a} a
x = $$ a
x = $: a
x = $! a
x = ${a b ds
 x = a