adding in sandbox
This commit is contained in:
@@ -80,6 +80,20 @@ class DevCommand(GiteaCommand, RenderDocCommand, ShadersCommand, TracyCommand):
|
||||
os.chdir(preset_dir)
|
||||
os.execv(binary, [binary, *args])
|
||||
|
||||
##
|
||||
# Builds the debug preset (incrementally), then runs the raw Vulkan
|
||||
# sandbox from build/debug. Any arguments are passed through.
|
||||
# dev sandbox [args...]
|
||||
def sandbox(self, *args, **kwargs):
|
||||
preset = self.DEFAULT_PRESET
|
||||
self._build_preset(preset, fresh=False)
|
||||
|
||||
preset_dir = os.path.join(self._project_root(), "build", preset)
|
||||
binary = os.path.join(preset_dir, "bin", "sandbox")
|
||||
print(f"Running: {shlex.join([binary, *args])}")
|
||||
os.chdir(preset_dir)
|
||||
os.execv(binary, [binary, *args])
|
||||
|
||||
# Custom helpers
|
||||
|
||||
def ownit(self, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user