![]() |
|
PhoenixGenerator
2.0.4
Set of tools to generate code
|
Include dependency graph for project_generator_load.cpp:Go to the source code of this file.
Functions | |
| bool | check_package_file (const PPath &fileName, const PString &name, const PPath &packageDir, PPackageAttribute &pkgAttr) |
| Check the package file. | |
| bool | generate_empty_config (PPath &outFileName, const PString &name, PString &minVersion, PString &maxVersion) |
| Generate an empty package info file skeleton. | |
| void | is_generate_empty_config_ok (PPath &tomlFile, const PString &name, PPackageAttribute &pkgAttr) |
| Generate an empty package info file skeleton and notify the user. | |
| bool | is_package_in_dir (std::vector< PPath > &packageFileNames, const PString &name, const PPath &packageDir, PPackageAttribute &pkgAttr) |
| Search the package in the package directory. | |
| bool | parseProjectMembers (ProjectMembersMap &memberMap, const DicoValue *memberDico) |
| Parse project members (authors, maintainers, contributors) from TOML data. | |
| bool | project_generator_loadConfig (ProjectConfig &config, const PPath &descriptionFile) |
| Load the project configuration. | |
| bool | project_generator_loadPackageInfo (ProjectConfig &config) |
| This function should load the package info file from share/PhoenixGenerator/Packages and retrieve the infos in the datastructure. | |
| bool | project_generator_split_dependencies (ProjectConfig &config, std::vector< PString > &vecDependencies) |
| Split dependencies strings into name, min_version, max_version and fill the map of dependencies. | |
| bool check_package_file | ( | const PPath & | fileName, |
| const PString & | name, | ||
| const PPath & | packageDir, | ||
| PPackageAttribute & | pkgAttr ) |
Check the package file.
| fileName | : configuration file | |
| name | : name of the project to search | |
| packageDir | : directory where package configuration are stored | |
| [out] | pkgAttr | : PPackageAttribute to be set |
Definition at line 179 of file project_generator_load.cpp.
References PPackageAttribute::getCmakeFind(), PPackageAttribute::getCmakeLib(), PPackageAttribute::getPixiName(), PPackageAttribute::getUrl(), PPackageAttribute::setCmakeFind(), PPackageAttribute::setCmakeLib(), PPackageAttribute::setPixiName(), and PPackageAttribute::setUrl().
Referenced by is_package_in_dir().
Here is the call graph for this function:
Here is the caller graph for this function:| bool generate_empty_config | ( | PPath & | outFileName, |
| const PString & | name, | ||
| PString & | minVersion, | ||
| PString & | maxVersion ) |
Generate an empty package info file skeleton.
| [out] | outFileName | : output file name |
| name | : name of the package | |
| minVersion | : minimum version of the package | |
| maxVersion | : maximum version of the package |
Definition at line 155 of file project_generator_load.cpp.
Referenced by is_generate_empty_config_ok().
Here is the caller graph for this function:| void is_generate_empty_config_ok | ( | PPath & | tomlFile, |
| const PString & | name, | ||
| PPackageAttribute & | pkgAttr ) |
Generate an empty package info file skeleton and notify the user.
| [out] | tomlFile | : output file name |
| name | : name of the package | |
| pkgAttr | : PPackageAttribute containing version info |
Definition at line 231 of file project_generator_load.cpp.
References generate_empty_config(), PPackageAttribute::getMaxVersion(), and PPackageAttribute::getMinVersion().
Referenced by project_generator_loadPackageInfo().
Here is the call graph for this function:
Here is the caller graph for this function:| bool is_package_in_dir | ( | std::vector< PPath > & | packageFileNames, |
| const PString & | name, | ||
| const PPath & | packageDir, | ||
| PPackageAttribute & | pkgAttr ) |
Search the package in the package directory.
| packageFileNames | : list of package configuration files | |
| name | : name of the project to search | |
| packageDir | : directory where package configuration are stored | |
| [out] | pkgAttr | : PPackageAttribute to be set |
Definition at line 216 of file project_generator_load.cpp.
References check_package_file().
Referenced by project_generator_loadPackageInfo().
Here is the call graph for this function:
Here is the caller graph for this function:| bool parseProjectMembers | ( | ProjectMembersMap & | memberMap, |
| const DicoValue * | memberDico ) |
Parse project members (authors, maintainers, contributors) from TOML data.
| [out] | memberMap | : map to fill with parsed members |
| memberDico | : TOML dictionary containing the members data |
Definition at line 57 of file project_generator_load.cpp.
References PProjectMembers::getFirstName(), PProjectMembers::getLastName(), PProjectMembers::setAffiliation(), PProjectMembers::setEmail(), PProjectMembers::setFirstName(), and PProjectMembers::setLastName().
Referenced by project_generator_loadConfig().
Here is the call graph for this function:
Here is the caller graph for this function:| bool project_generator_loadConfig | ( | ProjectConfig & | config, |
| const PPath & | descriptionFile ) |
Load the project configuration.
| [out] | config | : loaded project configuration |
| descriptionFile | : description of the full project |
Definition at line 84 of file project_generator_load.cpp.
References ProjectConfig::authorMap, ProjectConfig::ciToolkitUrl, ProjectConfig::ciToolkitVersion, ProjectConfig::contributorMap, ProjectConfig::description, ProjectConfig::keywordList, ProjectConfig::mainBranch, ProjectConfig::maintainerMap, ProjectConfig::name, parseProjectMembers(), project_generator_split_dependencies(), ProjectConfig::runnerTag, ProjectConfig::url, and ProjectConfig::version.
Referenced by simple_project_generator().
Here is the call graph for this function:
Here is the caller graph for this function:| bool project_generator_loadPackageInfo | ( | ProjectConfig & | config | ) |
This function should load the package info file from share/PhoenixGenerator/Packages and retrieve the infos in the datastructure.
| [out] | config | : project configuration to fill |
Definition at line 244 of file project_generator_load.cpp.
References is_generate_empty_config_ok(), is_package_in_dir(), and ProjectConfig::mapDependencies.
Referenced by simple_project_generator().
Here is the call graph for this function:
Here is the caller graph for this function:| bool project_generator_split_dependencies | ( | ProjectConfig & | config, |
| std::vector< PString > & | vecDependencies ) |
Split dependencies strings into name, min_version, max_version and fill the map of dependencies.
| [out] | config | : project configuration to fill |
| vecDependencies | : list of dependencies strings |
Definition at line 16 of file project_generator_load.cpp.
References ProjectConfig::mapDependencies.
Referenced by project_generator_loadConfig().
Here is the caller graph for this function: