diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-02-24 15:15:06 -0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2020-03-04 14:07:27 -0500 |
commit | 1210a67f66df15a54fc7c65f7406bcd5391d15aa (patch) | |
tree | 9890464379ef921245c01bba0bcc5167b0e33b43 /mesonbuild/mesonmain.py | |
parent | a46f0a620228f9acfbf2340d6d9a2d58229720aa (diff) | |
download | meson-1210a67f66df15a54fc7c65f7406bcd5391d15aa.zip meson-1210a67f66df15a54fc7c65f7406bcd5391d15aa.tar.gz meson-1210a67f66df15a54fc7c65f7406bcd5391d15aa.tar.bz2 |
mesonbuild: Add mcompile command
This is tested working with both msbuild and ninja/samu. Since our xcode
support is pretty much broken I didn't bother.
Fixes #6670
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r-- | mesonbuild/mesonmain.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index 6ec9682..b6b11df 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 +from . import mconf, mdist, minit, minstall, mintro, msetup, mtest, rewriter, msubprojects, munstable_coredata, mcompile from .mesonlib import MesonException from .environment import detect_msys2_arch from .wrap import wraptool @@ -62,6 +62,8 @@ class CommandLineParser: help_msg='Print help of a subcommand') self.add_command('rewrite', lambda parser: rewriter.add_arguments(parser, self.formatter), rewriter.run, help_msg='Modify the project definition') + self.add_command('compile', mcompile.add_arguments, mcompile.run, + help_msg='Build the project') # Hidden commands self.add_command('runpython', self.add_runpython_arguments, self.run_runpython_command, |