Module called for configuring, compiling and installing targets
This is the main entry point, all Waf execution starts here.
Parameters: |
|
---|
Read the main wscript file into waflib.Context.Context.g_module and bind default functions such as init, dist, distclean if not defined. Called by waflib.Scripting.waf_entry_point() during the initialization.
Parameters: | file_path (string) – absolute path representing the top-level wscript file |
---|
Parses the command-line options and initialize the logging system. Called by waflib.Scripting.waf_entry_point() during the initialization.
Executes a single Waf command. Called by waflib.Scripting.run_commands().
Parameters: | cmd_name (string) – command to execute, like build |
---|
Execute the Waf commands that were given on the command-line, and the other options Called by waflib.Scripting.waf_entry_point() during the initialization, and executed after waflib.Scripting.parse_options().
Distclean function called in the particular case when:
top == out
Parameters: | dirname (string) – absolute path of the folder to clean |
---|
Bases: waflib.Context.Context
creates an archive containing the project source code
Return the path to use for a node in the tar archive, the purpose of this is to let subclases resolve symbolic links or to change file names
Returns: | absolute path |
---|---|
Return type: | string |
Adds a file to the tar archive. Symlinks are not verified.
Parameters: |
|
---|
Returns the base path for files added into the archive tar file
Return type: | string |
---|
Returns the archive file name. Set the attribute arch_name to change the default value:
def dist(ctx):
ctx.arch_name = 'ctx.tar.bz2'
Return type: | string |
---|
Returns the default name of the main directory in the archive, which is set to appname-version. Set the attribute base_name to change the default value:
def dist(ctx):
ctx.base_name = 'files'
Return type: | string |
---|
Returns the patterns to exclude for finding the files in the top-level directory. Set the attribute excl to change the default value:
def dist(ctx):
ctx.excl = 'build **/*.o **/*.class'
Return type: | string |
---|
Files to package are searched automatically by waflib.Node.Node.ant_glob(). Set files to prevent this behaviour:
def dist(ctx):
ctx.files = ctx.path.find_node('wscript')
Files are also searched from the directory ‘base_path’, to change it, set:
def dist(ctx):
ctx.base_path = path
Return type: | list of waflib.Node.Node |
---|