From 598e968993da58c89f773dc732c708a54b0ec8db Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 20 Feb 2021 12:04:01 -0500 Subject: Add `meson devenv` command and meson.add_devenv() --- mesonbuild/mesonmain.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mesonbuild/mesonmain.py') diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index 173e998..208cfe4 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -22,7 +22,7 @@ import shutil from . import mesonlib from . import mlog -from . import mconf, mdist, minit, minstall, mintro, msetup, mtest, rewriter, msubprojects, munstable_coredata, mcompile +from . import mconf, mdist, minit, minstall, mintro, msetup, mtest, rewriter, msubprojects, munstable_coredata, mcompile, mdevenv from .mesonlib import MesonException from .environment import detect_msys2_arch from .wrap import wraptool @@ -64,6 +64,8 @@ class CommandLineParser: help_msg='Modify the project definition') self.add_command('compile', mcompile.add_arguments, mcompile.run, help_msg='Build the project') + self.add_command('devenv', mdevenv.add_arguments, mdevenv.run, + help_msg='Run commands in developer environment') # Hidden commands self.add_command('runpython', self.add_runpython_arguments, self.run_runpython_command, -- cgit v1.1