Makeprojects
Loading...
Searching...
No Matches
makeprojects.config Namespace Reference

Package that reads, parses and processes the configuration file. More...

Functions

 save_default (working_directory=None, destinationfile=BUILD_RULES_PY)
 Calls the internal function to save a default .projectsrc file.
 find_default_build_rules ()
 Search for the build_rules.py file.

Variables

str _XCODEPROJECT_FILE
 The filename project.pbxproj.
 _XCODEPROJ_MATCH
 Match *.xcodeproj.
 _HLSL_MATCH
 Match *.hlsl.
 _GLSL_MATCH
 Match *.glsl.
 _X360SL_MATCH
 Match *.x360sl.
 _VITACG_MATCH
 Match *.vitacg.
 _MAKEFILE_MATCH
 Match *.mak.
str BUILD_RULES_PY = "build_rules.py"
 build_rules.py file to detect secondly
str _BUILD_RULES_VAR
 BUILD_RULES_PY location environment variable.
 USER_HOME = os.path.expanduser("~")
 Location of the user's home directory.
 PROJECTS_HOME = os.environ["MAKE_PROJECTS_HOME"]
 Location of makeprojects home directory if redirected.
 DEFAULT_BUILD_RULES = find_default_build_rules()
 Full pathname of the configuration file.

Detailed Description

Package that reads, parses and processes the configuration file.

Function Documentation

◆ find_default_build_rules()

makeprojects.config.find_default_build_rules ( )

Search for the build_rules.py file.

Scan for the build_rules.py file starting from the current working directory and search downwards until the root directoy is it. If not found, search in the user's home directory or for linux/macOS, in /etc

Returns
Pathname of the configuration file, or None if no file was found.

◆ save_default()

makeprojects.config.save_default ( working_directory = None,
destinationfile = BUILD_RULES_PY )

Calls the internal function to save a default .projectsrc file.

Given a pathname, create and write out a default .projectsrc file that can be used as input to makeprojects to generate project files.

Parameters
working_directoryDirectory to save the destination file
destinationfilePathname of where to save the default configuation file
Returns
0 if no error, an error code if the file couldn't be saved.