From 013d8b8324dc7608bc20ec9f4004814a478e8ac6 Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Thu, 19 Sep 2024 16:26:08 -0700 Subject: [PATCH] feat: add system libs support to build recipe rule --- ecsact/private/ecsact_build_recipe.bzl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ecsact/private/ecsact_build_recipe.bzl b/ecsact/private/ecsact_build_recipe.bzl index 385f206..b8a72f0 100644 --- a/ecsact/private/ecsact_build_recipe.bzl +++ b/ecsact/private/ecsact_build_recipe.bzl @@ -37,6 +37,7 @@ def _ecsact_build_recipe(ctx): recipe_yaml = ctx.actions.declare_file("{}.yml".format(ctx.attr.name)) sources = [] + system_libs = [] recipe_data = [] for src in ctx.files.srcs: @@ -107,6 +108,7 @@ def _ecsact_build_recipe(ctx): "name": ctx.attr.name, "sources": sources, "imports": ctx.attr.imports, + "system_libs": system_libs, "exports": ctx.attr.exports, } @@ -134,6 +136,9 @@ ecsact_build_recipe = rule( "fetch_srcs": attr.string_list_dict( allow_empty = True, ), + "system_libs": attr.string_list( + allow_empty = True, + ), "codegen_plugins": attr.label_keyed_string_dict( providers = [EcsactCodegenPluginInfo], ),