mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
[build] Rename module ninja files to module.<name>.ninja
I was getting sick of tab completion not working for loading the elf binaries in gdb, so I'm renaming the module ninja files with a prefix.
This commit is contained in:
@@ -85,7 +85,7 @@ class Module:
|
|||||||
children |= {m for m in child.depmods if not m in closed}
|
children |= {m for m in child.depmods if not m in closed}
|
||||||
|
|
||||||
def generate(self, output):
|
def generate(self, output):
|
||||||
filename = str(output / f"{self.name}.ninja")
|
filename = str(output / f"module.{self.name}.ninja")
|
||||||
|
|
||||||
with open(filename, "w") as buildfile:
|
with open(filename, "w") as buildfile:
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ class Project:
|
|||||||
outputs = ['build.ninja'],
|
outputs = ['build.ninja'],
|
||||||
implicit = regen_implicits,
|
implicit = regen_implicits,
|
||||||
implicit_outputs =
|
implicit_outputs =
|
||||||
[f"{mod.name}.ninja" for mod in modules.values()] +
|
[f"module.{mod.name}.ninja" for mod in modules.values()] +
|
||||||
[f"{target.name}/target.ninja" for target in targets] +
|
[f"{target.name}/target.ninja" for target in targets] +
|
||||||
[boot_config],
|
[boot_config],
|
||||||
)
|
)
|
||||||
@@ -212,4 +212,4 @@ class Project:
|
|||||||
build.newline()
|
build.newline()
|
||||||
|
|
||||||
for mod in mods:
|
for mod in mods:
|
||||||
build.subninja(f"{mod}.ninja")
|
build.subninja(f"module.{mod}.ninja")
|
||||||
|
|||||||
Reference in New Issue
Block a user