base for all c/c++ programs and libraries
Parameters: | lst – files to process |
---|---|
List lst: | list of string or waflib.Node.Node |
Returns: | list of file extensions |
Return type: | list of string |
Look at the source files and return the features for a task generator (mainly cc and cxx):
snif_features(source=['foo.c', 'foo.cxx'], type='shlib')
# returns ['cxx', 'c', 'cxxshlib', 'cshlib']
Parameters: |
|
---|---|
Returns: | the list of features for a task generator processing the source files |
Return type: | list of string |
Configuration Method bound to waflib.Configure.ConfigurationContext
Alias for creating programs by looking at the file extensions:
def build(bld):
bld.program(source='foo.c', target='app')
# equivalent to:
# bld(features='c cprogram', source='foo.c', target='app')
Configuration Method bound to waflib.Configure.ConfigurationContext
Alias for creating shared libraries by looking at the file extensions:
def build(bld):
bld.shlib(source='foo.c', target='app')
# equivalent to:
# bld(features='c cshlib', source='foo.c', target='app')
Configuration Method bound to waflib.Configure.ConfigurationContext
Alias for creating static libraries by looking at the file extensions:
def build(bld):
bld.stlib(source='foo.cpp', target='app')
# equivalent to:
# bld(features='cxx cxxstlib', source='foo.cpp', target='app')
Configuration Method bound to waflib.Configure.ConfigurationContext
Alias for creating object files by looking at the file extensions:
def build(bld):
bld.objects(source='foo.c', target='app')
# equivalent to:
# bld(features='c', source='foo.c', target='app')
Decorator: attach new configuration functions to waflib.Build.BuildContext and waflib.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 |
---|