Skip to content

Commit

Permalink
Merge pull request #1613 from MarijnS95/generator-prebuild-gir
Browse files Browse the repository at this point in the history
generator.py: Restore pre-building `gir` with build/progress output
  • Loading branch information
sdroege authored Dec 2, 2024
2 parents 1b34ebb + 3e437a6 commit ec84749
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import asyncio

DEFAULT_GIR_FILES_DIRECTORY = Path("./gir-files")
DEFAULT_GIR_DIRECTORY = Path("./gir/")
DEFAULT_GIR_DIRECTORY = Path("./gir/") # TODO: This is typically the directory _of this Python script_ (which external projects symlink to)


def run_command(command, folder=None):
Expand Down Expand Up @@ -223,6 +223,9 @@ async def main():

if conf.gir_path is None:
update_submodule(DEFAULT_GIR_DIRECTORY, conf)
print("=> Building gir...")
run_command(["cargo", "build", "--release", "--manifest-path", DEFAULT_GIR_DIRECTORY / "Cargo.toml"])
print("<= Done!")

print("=> Regenerating crates...")
for path in conf.path:
Expand Down

0 comments on commit ec84749

Please sign in to comment.