Skip to content

Commit

Permalink
Hack
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed Dec 7, 2023
1 parent 10a11f8 commit 7506b72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rules_robotpy_utils/generate_robopy_files.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ def __run_on_dl(
init_file = "wpimath/_impl/_init_wpimath_cpp.py"
if name == "wpilib" and project == "_impl":
init_file = "wpilib/_impl/_init_wpilibc.py"
if name == "hal":
if name == "hal" and project == "wpiHal":
init_file = "{name}/_init_{project}.py".format(name = name, project = project)
if name == "hal" and project == "simulation":
init_file = "hal/simulation/_init_simulation.py".format(name = name, project = project)
generated_files.append("on_build_dl/" + init_file)
filter_srcs(
name = "__filtered_gen_" + project + "_init",
Expand All @@ -66,7 +68,7 @@ def __run_on_dl(
pkg_file = "{project}/pkgcfg.py".format(project = project)
if name != project:
pkg_file = "{name}/{project}/pkgcfg.py".format(name = name, project = project)
if name == "hal":
if name == "hal" and project == "wpiHal":
pkg_file = "hal/pkgcfg.py".format(project = project)
generated_files.append("on_build_dl/" + pkg_file)
filter_srcs(
Expand Down

0 comments on commit 7506b72

Please sign in to comment.