Skip to content

Commit

Permalink
fix: use codegen as array
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Oct 5, 2023
1 parent 1c92d54 commit ad19392
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ecsact/private/ecsact_build_recipe.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ def _ecsact_build_recipe(ctx):
})
recipe_data.append(src)

for codegen_plugin in ctx.attr.codegen_plugins:
info = codegen_plugin[EcsactCodegenPluginInfo]
sources.append({
"codegen": [info.plugin],
"outdir": ctx.attr.codegen_plugins[codegen_plugin],
})

recipe = {
"name": ctx.attr.name,
"sources": sources,
Expand Down

0 comments on commit ad19392

Please sign in to comment.