FeatureNew: add two features that were just merged

pull/3699/head
Nirbheek Chauhan 7 years ago committed by Nirbheek Chauhan
parent dff1d8eccf
commit 9b314c9c24
  1. 2
      mesonbuild/interpreter.py
  2. 3
      mesonbuild/modules/windows.py

@ -3214,7 +3214,7 @@ root and issuing %s.
self.build.install_dirs.append(idir)
return idir
@FeatureNewKwargs('configure_file', '0.47.0', ['copy'])
@FeatureNewKwargs('configure_file', '0.47.0', ['copy', 'output_format'])
@FeatureNewKwargs('configure_file', '0.46.0', ['format'])
@FeatureNewKwargs('configure_file', '0.41.0', ['capture'])
@permittedKwargs(permitted_kwargs['configure_file'])

@ -20,7 +20,7 @@ from ..mesonlib import MesonException, extract_as_list
from . import get_include_args
from . import ModuleReturnValue
from . import ExtensionModule
from ..interpreterbase import permittedKwargs
from ..interpreterbase import permittedKwargs, FeatureNewKwargs
class WindowsModule(ExtensionModule):
@ -30,6 +30,7 @@ class WindowsModule(ExtensionModule):
return compilers[l]
raise MesonException('Resource compilation requires a C or C++ compiler.')
@FeatureNewKwargs('windows.compile_resources', '0.47.0', ['depend_files'])
@permittedKwargs({'args', 'include_directories', 'depend_files'})
def compile_resources(self, state, args, kwargs):
comp = self.detect_compiler(state.compilers)

Loading…
Cancel
Save