mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-26 11:51:20 +01:00
provide --no-lock-in-top and --no-lock-in-run for packagers
This commit is contained in:
parent
d4ec554cdf
commit
9fdfec763d
@ -192,11 +192,11 @@ class ConfigurationContext(Context.Context):
|
||||
env['files'] = self.files
|
||||
env['environ'] = dict(self.environ)
|
||||
|
||||
if not self.env.NO_LOCK_IN_RUN:
|
||||
if not self.env.NO_LOCK_IN_RUN and not getattr(Options.options, 'no_lock_in_run'):
|
||||
env.store(os.path.join(Context.run_dir, Options.lockfile))
|
||||
if not self.env.NO_LOCK_IN_TOP:
|
||||
if not self.env.NO_LOCK_IN_TOP and not getattr(Options.options, 'no_lock_in_top'):
|
||||
env.store(os.path.join(Context.top_dir, Options.lockfile))
|
||||
if not self.env.NO_LOCK_IN_OUT:
|
||||
if not self.env.NO_LOCK_IN_OUT and not getattr(Options.options, 'no_lock_in_out'):
|
||||
env.store(os.path.join(Context.out_dir, Options.lockfile))
|
||||
|
||||
def prepare_env(self, env):
|
||||
|
@ -126,6 +126,10 @@ class OptionsContext(Context.Context):
|
||||
gr.add_option('-o', '--out', action='store', default='', help='build dir for the project', dest='out')
|
||||
gr.add_option('-t', '--top', action='store', default='', help='src dir for the project', dest='top')
|
||||
|
||||
gr.add_option('--no-lock-in-run', action='store_true', default='', help=optparse.SUPPRESS_HELP, dest='no_lock_in_run')
|
||||
gr.add_option('--no-lock-in-out', action='store_true', default='', help=optparse.SUPPRESS_HELP, dest='no_lock_in_out')
|
||||
gr.add_option('--no-lock-in-top', action='store_true', default='', help=optparse.SUPPRESS_HELP, dest='no_lock_in_top')
|
||||
|
||||
default_prefix = getattr(Context.g_module, 'default_prefix', os.environ.get('PREFIX'))
|
||||
if not default_prefix:
|
||||
if platform == 'win32':
|
||||
|
Loading…
Reference in New Issue
Block a user