Add site things to ninja build.

This commit is contained in:
Brad Nelson
2023-12-31 16:09:04 -08:00
parent 8160a3cb1d
commit 9283b804e1
3 changed files with 72 additions and 0 deletions

View File

@ -204,6 +204,10 @@ rule zip
description = ZIP
command = rm -f $out && cd $base && zip $relout $relin >/dev/null
rule copy
description = COPY
command = cp $in $out
"""
@ -302,6 +306,12 @@ def Alias(target, source):
return target
def Copy(target, source):
global output
output += f'build {target}: copy {source}\n'
return target
def Default(target):
global output
output += f'default {target}\n'