Skip to content

Commit

Permalink
Remember to build the drivetypes table.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Aug 12, 2024
1 parent 9a0b487 commit dc6af48
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/gui/drivetypes/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,29 @@
"apple2",
]

normalrule(
name="drivetypes_table_cc",
ins=[f"./{name}.textpb" for name in drivetypes],
deps=["scripts/mktable.sh"],
outs=["table.cc"],
commands=[
"sh scripts/mktable.sh drivetypes "
+ (" ".join(drivetypes))
+ " > {outs}"
],
label="MKTABLE",
)


protoencode(
name="drivetypes_cc",
srcs={name: f"./{name}.textpb" for name in drivetypes},
proto="ConfigProto",
symbol="drivetypes",
)

cxxlibrary(name="drivetypes", srcs=[".+drivetypes_cc"], deps=["+lib"])
cxxlibrary(
name="drivetypes",
srcs=[".+drivetypes_cc", ".+drivetypes_table_cc"],
deps=["+lib"],
)

0 comments on commit dc6af48

Please sign in to comment.