Add 0.42.0 features

pull/3486/head
Salamandar 7 years ago
parent d5207e1c4f
commit 4741f1e243
  1. 1
      mesonbuild/build.py
  2. 5
      mesonbuild/dependencies/misc.py
  3. 3
      mesonbuild/dependencies/ui.py
  4. 2
      mesonbuild/interpreter.py
  5. 1
      mesonbuild/modules/gnome.py
  6. 1
      mesonbuild/modules/pkgconfig.py
  7. 3
      mesonbuild/modules/unstable_simd.py

@ -331,6 +331,7 @@ a hard error in the future.''' % name)
myid = subdir_part + '@@' + myid
return myid
@FeatureNewKwargs('build target', '0.42.0', ['rust_crate_type', 'build_rpath', 'implicit_include_directories'])
@FeatureNewKwargs('build target', '0.41.0', ['rust_args'])
@FeatureNewKwargs('build target', '0.40.0', ['build_by_default'])
def process_kwargs(self, kwargs):

@ -31,8 +31,11 @@ from .base import (
ConfigToolDependency,
)
from ..interpreterbase import FeatureNew
class MPIDependency(ExternalDependency):
@FeatureNew('MPI Dependency', '0.42.0')
def __init__(self, environment, kwargs):
language = kwargs.get('language', 'c')
super().__init__('mpi', environment, language, kwargs)
@ -428,6 +431,8 @@ class Python3Dependency(ExternalDependency):
class PcapDependency(ExternalDependency):
@FeatureNew('Pcap Dependency', '0.42.0')
def __init__(self, environment, kwargs):
super().__init__('pcap', environment, None, kwargs)

@ -33,6 +33,7 @@ from .base import ExternalDependency, ExternalProgram
from .base import ExtraFrameworkDependency, PkgConfigDependency
from .base import ConfigToolDependency
from ..interpreterbase import FeatureNew
class GLDependency(ExternalDependency):
def __init__(self, environment, kwargs):
@ -514,6 +515,8 @@ class WxDependency(ConfigToolDependency):
class VulkanDependency(ExternalDependency):
@FeatureNew('Vulkan Dependency', '0.42.0')
def __init__(self, environment, kwargs):
super().__init__('vulkan', environment, None, kwargs)

@ -2805,6 +2805,7 @@ root and issuing %s.
mlog.bold(subproj_path), 'found:', mlog.green('YES'))
return dep
@FeatureNewKwargs('executable', '0.42.0', 'implib')
@permittedKwargs(permitted_kwargs['executable'])
def func_executable(self, node, args, kwargs):
return self.build_target(node, args, kwargs, ExecutableHolder)
@ -3132,6 +3133,7 @@ root and issuing %s.
self.build.data.append(data.held_object)
return data
@FeatureNewKwargs('install_subdir', '0.42.0', ['exclude_files', 'exclude_directories'])
@FeatureNewKwargs('install_subdir', '0.38.0', ['install_mode'])
@permittedKwargs(permitted_kwargs['install_subdir'])
@stringArgs

@ -1095,6 +1095,7 @@ This will become a hard error in the future.''')
else:
return ModuleReturnValue(targets, targets)
@FeatureNew('gnome.mkenums_simple', '0.42.0')
def mkenums_simple(self, state, args, kwargs):
hdr_filename = args[0] + '.h'
body_filename = args[0] + '.c'

@ -304,6 +304,7 @@ class PkgConfigModule(ExtensionModule):
ofile.write(self._escape(f))
ofile.write('\n')
@FeatureNewKwargs('pkgconfig.generate', '0.42.0', ['extra_cflags'])
@FeatureNewKwargs('pkgconfig.generate', '0.41.0', ['variables'])
@permittedKwargs({'libraries', 'version', 'name', 'description', 'filebase',
'subdirs', 'requires', 'requires_private', 'libraries_private',

@ -16,8 +16,11 @@ from .. import mesonlib, compilers, mlog
from . import ExtensionModule
from ..interpreterbase import FeatureNew
class SimdModule(ExtensionModule):
@FeatureNew('SIMD module', '0.42.0')
def __init__(self, interpreter):
super().__init__(interpreter)
self.snippets.add('check')

Loading…
Cancel
Save