Skip to content

Commit

Permalink
feat: add system libs support to build recipe rule
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Sep 19, 2024
1 parent b11471a commit 013d8b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ecsact/private/ecsact_build_recipe.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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,
}

Expand Down Expand Up @@ -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],
),
Expand Down

0 comments on commit 013d8b8

Please sign in to comment.