bouwer.plugins package
Submodules
bouwer.plugins.Archive module
-
class bouwer.plugins.Archive.Archive[source]
Bases: bouwer.plugin.Plugin
Generate an archive
Constructor
-
action_run(action)[source]
Run the given action
-
execute_any(filename, include=['.'], exclude=[''])[source]
Builder implementation
-
get_filelist(target, directory, include, exclude)[source]
bouwer.plugins.CCheck module
bouwer.plugins.CCompiler module
-
class bouwer.plugins.CCompiler.CCompiler[source]
Bases: bouwer.util.Singleton
Constructor
-
c_library(target, sources, item=None, depends=[])[source]
Build a library using a target name and list of sources
-
c_object(source, item=None, depends=, []**extra_tags)[source]
Compile a C source file into an object file
-
c_program(target, sources, item=None, depends=, []**extra_tags)[source]
Build an program given its target name and sources list
-
use_library(libraries, target=None)[source]
Build against a :py:`list` of libraries
The library target for linking will be discovered by
searching the generated Action objects in
the actions layer.
-
class bouwer.plugins.CCompiler.Include[source]
Bases: bouwer.plugin.Plugin
Extend the C/C++ include path
Constructor
-
config_inputz___()[source]
Configuration input items
-
config_output()[source]
Configuration output items
-
execute_config_params(conf, includes)[source]
Append includes to the incpath for CC.
-
class bouwer.plugins.CCompiler.Library[source]
Bases: bouwer.plugin.Plugin
Build a software library
Constructor
-
config_input()[source]
Configuration input items
-
config_output()[source]
Configuration output items
-
execute_config(item, sources, depends=[])[source]
Build a library using a Config and list of sources
-
execute_target(target, sources, depends=[])[source]
Build a library using a target name and list of sources
-
class bouwer.plugins.CCompiler.LibraryObject[source]
Bases: bouwer.plugin.Plugin
Specify an additional object for a library
Constructor
-
config_input()[source]
Configuration input items
-
config_output()[source]
Configuration output items
-
execute_config(item, sources, depends=[])[source]
Build executable objects if configurion item item is True
-
execute_source(source, depends=[])[source]
Build an executable object given its source file
-
class bouwer.plugins.CCompiler.Object[source]
Bases: bouwer.plugin.Plugin
Build an executable object for a program.
Constructor
-
config_input()[source]
Configuration input items
-
config_output()[source]
Configuration output items
-
execute_config(item, sources, depends=[])[source]
Build executable objects if configurion item item is True
-
execute_source(source, item=None, depends=[])[source]
Build an executable object given its source file
-
class bouwer.plugins.CCompiler.Program[source]
Bases: bouwer.plugin.Plugin
Build an executable program
Constructor
-
config_input()[source]
Configuration input items
-
execute_config(item, sources, libraries=, []depends=, []name=None)[source]
Build a program given a Config item and sources list.
-
execute_source(source)[source]
Build an executable object given its source file
-
execute_target(target, sources, libraries=, []depends=, []item=None)[source]
Build an program given its target name and sources list
-
class bouwer.plugins.CCompiler.UseLibrary[source]
Bases: bouwer.plugin.Plugin
Build and link a program against a library
Constructor
-
config_input()[source]
Configuration input items
-
config_output()[source]
Configuration output items
-
execute_any(libraries)[source]
Build against a :py:`list` of libraries
The library target for linking will be discovered internally.
-
execute_config_params(item, libraries)[source]
bouwer.plugins.Command module
-
class bouwer.plugins.Command.Command[source]
Bases: bouwer.plugin.Plugin
Run a shell command
Constructor
-
config_input()[source]
-
execute_any(command)[source]
Run a shell command
-
execute_config(item, sources, command, outfile=None)[source]
Runs a command only if item is True
bouwer.plugins.Install module
-
class bouwer.plugins.Install.Install[source]
Bases: bouwer.plugin.Plugin
Copy files to a new location
Constructor
-
action_run(action)[source]
Run the given action
-
execute_any(stritem_dir, files)[source]
Builder implementation
bouwer.plugins.LineConfig module
-
class bouwer.plugins.LineConfig.LineConfig[source]
Bases: bouwer.plugin.Plugin
Configure using standard input
Constructor
-
configure(conf)[source]
Main configuration routine
-
initialize()[source]
Initialize plugin
bouwer.plugins.ProgressBar module
-
class bouwer.plugins.ProgressBar.ProgressBar[source]
Bases: bouwer.plugin.Plugin
Output a textual progress bar on the terminal
Constructor
-
action_event(action, event)[source]
Called when an ActionEvent is triggered
-
get_console_width()[source]
Return the width of the console in characters
-
initialize()[source]
Initialize plugin
-
update_progress(progress, label='')[source]
Displays or updates a console progress bar
bouwer.plugins.QuietOutput module
-
class bouwer.plugins.QuietOutput.QuietOutput[source]
Bases: bouwer.plugin.Plugin
Outputs nothing unless an error occurs
Constructor
-
action_event(action, event)[source]
Does nothing for quiet
-
initialize()[source]
Initialize plugin
bouwer.plugins.RequireVersion module
-
class bouwer.plugins.RequireVersion.RequireVersion[source]
Bases: bouwer.plugin.Plugin
Verify that Bouwer has the given minimum/maximum version.
Constructor
-
execute_any(minimum, maximum='9.9.9')[source]
Builder implementation
Module contents