Update to the new ninja-fied ab.

This commit is contained in:
David Given
2025-08-26 01:23:58 +02:00
parent e49673329d
commit 8c582b8d72
12 changed files with 278 additions and 229 deletions

View File

@@ -11,6 +11,7 @@ from build.ab import (
from os.path import relpath, splitext, join, basename, isfile
from glob import iglob
import fnmatch
import subprocess
def filenamesmatchingof(xs, pattern):
@@ -51,6 +52,11 @@ def itemsof(pattern, root=None, cwd=None):
return result
def shell(args):
r = subprocess.check_output(args)
return r.decode("utf-8").strip()
@Rule
def objectify(self, name, src: Target, symbol):
simplerule(