File: build.ninja

package info (click to toggle)
golang-github-google-blueprint 0.0~git20201007.25128be-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 1,088 kB
  • sloc: sh: 250; makefile: 13
file content (23 lines) | stat: -rw-r--r-- 843 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Included by .minibootstrap/build.ninja, which is written by bootstrap.bash
#
# Expected input variables:
#   topFile           - The path to the top-level Blueprints(etc) file
#   extraArgs         - Any extra arguments to pass to minibp (-t)
#   bootstrapBuildDir - The path to the build directory

ninja_required_version = 1.7.0

myGlobs = ${bootstrapBuildDir}/.minibootstrap/build-globs.ninja
subninja ${myGlobs}

rule build.ninja
    command = ${builder} ${extraArgs} -b ${bootstrapBuildDir} -n ${builddir} -d ${out}.d -globFile ${myGlobs} -o ${out} ${in}
    deps = gcc
    depfile = ${out}.d
    description = ${builder} ${out}

bootstrapNinja = ${bootstrapBuildDir}/.bootstrap/build.ninja

build ${bootstrapNinja}: build.ninja ${topFile} | ${builder}
    builder = ${bootstrapBuildDir}/.minibootstrap/minibp
default ${bootstrapNinja}