Add site things to ninja build.
This commit is contained in:
@ -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'
|
||||
|
||||
Reference in New Issue
Block a user