Update ab.

This commit is contained in:
David Given
2025-04-22 23:10:51 +02:00
parent 4d60ff8e67
commit 6d73371a79
6 changed files with 408 additions and 114 deletions

View File

@@ -1,17 +1,16 @@
from build.ab import Rule, Targets, emit, simplerule, filenamesof
from build.utils import filenamesmatchingof, collectattrs
from os.path import join, abspath, dirname, relpath
import build.pkg # to get the protobuf package check
from build.pkg import has_package
emit(
"""
PROTOC ?= protoc
HOSTPROTOC ?= protoc
"""
)
assert build.pkg.TargetPkgConfig.has_package(
"protobuf"
), "required package 'protobuf' not installed"
assert has_package("protobuf"), "required package 'protobuf' not installed"
def _getprotodeps(deps):