Skip to content

Commit

Permalink
Merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Aug 12, 2024
2 parents d3e2f13 + 3c3d8d0 commit 8bbce6d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/formats/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

cxxlibrary(
name="formats",
srcs=[".+formats_cc"],
srcs=[".+formats_cc", ".+table_cc"],
deps=["+lib", "lib+config_proto_lib"],
)

Expand Down
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 8bbce6d

Please sign in to comment.