|
|
|
@ -837,6 +837,7 @@ class MesonMain(InterpreterObject): |
|
|
|
|
'add_postconf_script' : self.add_postconf_script_method, |
|
|
|
|
'install_dependency_manifest': self.install_dependency_manifest_method, |
|
|
|
|
'project_version': self.project_version_method, |
|
|
|
|
'project_name' : self.project_name_method, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
def add_install_script_method(self, args, kwargs): |
|
|
|
@ -933,6 +934,9 @@ class MesonMain(InterpreterObject): |
|
|
|
|
def project_version_method(self, args, kwargs): |
|
|
|
|
return self.build.dep_manifest[self.interpreter.active_projectname]['version'] |
|
|
|
|
|
|
|
|
|
def project_name_method(self, args, kwargs): |
|
|
|
|
return self.interpreter.active_projectname |
|
|
|
|
|
|
|
|
|
class Interpreter(): |
|
|
|
|
|
|
|
|
|
def __init__(self, build, backend, subproject='', subdir='', subproject_dir='subprojects'): |
|
|
|
|