d_config¶
- waflib.Tools.d_config.conf(f)¶
Decorator: attach new configuration functions to
waflib.Build.BuildContext
andwaflib.Configure.ConfigurationContext
. The methods bound will accept a parameter named ‘mandatory’ to disable the configuration errors:def configure(conf): conf.find_program('abc', mandatory=False)
- Parameters
f (function) – method to bind
- waflib.Tools.d_config.d_platform_flags(self)[source]¶
Configuration Method bound to
waflib.Configure.ConfigurationContext
Sets the extensions dll/so for d programs and libraries
- waflib.Tools.d_config.DLIB = '\nversion(D_Version2) {\n\timport std.stdio;\n\tint main() {\n\t\twritefln("phobos2");\n\t\treturn 0;\n\t}\n} else {\n\tversion(Tango) {\n\t\timport tango.stdc.stdio;\n\t\tint main() {\n\t\t\tprintf("tango");\n\t\t\treturn 0;\n\t\t}\n\t} else {\n\t\timport std.stdio;\n\t\tint main() {\n\t\t\twritefln("phobos1");\n\t\t\treturn 0;\n\t\t}\n\t}\n}\n'¶
Detection string for the D standard library
- waflib.Tools.d_config.check_dlibrary(self, execute=True)[source]¶
Configuration Method bound to
waflib.Configure.ConfigurationContext
Detects the kind of standard library that comes with the compiler, and sets conf.env.DLIBRARY to tango, phobos1 or phobos2