![]() |
PhoenixGenerator
2.0.0
Set of tools to generate code
|
Describes a CMake library. More...
#include <PCMakeListsGenerator.h>
Public Member Functions | |
PString & | getAddDefinitions () |
Gets the addDefinitions of the PCMakeLibrary. More... | |
const PString & | getAddDefinitions () const |
Gets the addDefinitions of the PCMakeLibrary. More... | |
PPath & | getInstallDirectory () |
Gets the installDirectory of the PCMakeLibrary. More... | |
const PPath & | getInstallDirectory () const |
Gets the installDirectory of the PCMakeLibrary. More... | |
bool & | getIsShared () |
Gets the isShared of the PCMakeLibrary. More... | |
bool | getIsShared () const |
Gets the isShared of the PCMakeLibrary. More... | |
PVecPath & | getListHeaders () |
Gets the listHeaders of the PCMakeLibrary. More... | |
const PVecPath & | getListHeaders () const |
Gets the listHeaders of the PCMakeLibrary. More... | |
PVecString & | getListLibDependecies () |
Gets the listLibDependecies of the PCMakeLibrary. More... | |
const PVecString & | getListLibDependecies () const |
Gets the listLibDependecies of the PCMakeLibrary. More... | |
PVecPath & | getListSources () |
Gets the listSources of the PCMakeLibrary. More... | |
const PVecPath & | getListSources () const |
Gets the listSources of the PCMakeLibrary. More... | |
PString & | getName () |
Gets the name of the PCMakeLibrary. More... | |
const PString & | getName () const |
Gets the name of the PCMakeLibrary. More... | |
PString & | getOtherCommandAfter () |
Gets the otherCommandAfter of the PCMakeLibrary. More... | |
const PString & | getOtherCommandAfter () const |
Gets the otherCommandAfter of the PCMakeLibrary. More... | |
PString & | getRemoveDefinitions () |
Gets the removeDefinitions of the PCMakeLibrary. More... | |
const PString & | getRemoveDefinitions () const |
Gets the removeDefinitions of the PCMakeLibrary. More... | |
bool & | getWantGenerateFindPackage () |
Gets the wantGenerateFindPackage of the PCMakeLibrary. More... | |
bool | getWantGenerateFindPackage () const |
Gets the wantGenerateFindPackage of the PCMakeLibrary. More... | |
PCMakeLibrary & | operator= (const PCMakeLibrary &other) |
Operator = of class PCMakeLibrary. More... | |
PCMakeLibrary () | |
Constructor of class PCMakeLibrary. More... | |
PCMakeLibrary (const PCMakeLibrary &other) | |
Copy Constructor of class PCMakeLibrary. More... | |
void | setAddDefinitions (const PString &addDefinitions) |
Sets the addDefinitions of the PCMakeLibrary. More... | |
void | setInstallDirectory (const PPath &installDirectory) |
Sets the installDirectory of the PCMakeLibrary. More... | |
void | setIsShared (bool isShared) |
Sets the isShared of the PCMakeLibrary. More... | |
void | setListHeaders (const PVecPath &listHeaders) |
Sets the listHeaders of the PCMakeLibrary. More... | |
void | setListLibDependecies (const PVecString &listLibDependecies) |
Sets the listLibDependecies of the PCMakeLibrary. More... | |
void | setListSources (const PVecPath &listSources) |
Sets the listSources of the PCMakeLibrary. More... | |
void | setName (const PString &name) |
Sets the name of the PCMakeLibrary. More... | |
void | setOtherCommandAfter (const PString &otherCommandAfter) |
Sets the otherCommandAfter of the PCMakeLibrary. More... | |
void | setRemoveDefinitions (const PString &removeDefinitions) |
Sets the removeDefinitions of the PCMakeLibrary. More... | |
void | setWantGenerateFindPackage (bool wantGenerateFindPackage) |
Sets the wantGenerateFindPackage of the PCMakeLibrary. More... | |
virtual | ~PCMakeLibrary () |
Destructor of class PCMakeLibrary. More... | |
Protected Member Functions | |
void | copyPCMakeLibrary (const PCMakeLibrary &other) |
Copy Function of class PCMakeLibrary. More... | |
Private Member Functions | |
void | initialisationPCMakeLibrary () |
Initialisation Function of class PCMakeLibrary. More... | |
Private Attributes | |
PString | p_addDefinitions |
String to pass to the add_definitions. More... | |
PPath | p_installDirectory |
Name of the install directory of the library. More... | |
bool | p_isShared |
True if the library is chared false if not. More... | |
PVecPath | p_listHeaders |
Lists of the headers. More... | |
PVecString | p_listLibDependecies |
List of the library libraries dependencies. More... | |
PVecPath | p_listSources |
Lists of the sources. More... | |
PString | p_name |
Name of the library. More... | |
PString | p_otherCommandAfter |
Other command after the definition of the target. More... | |
PString | p_removeDefinitions |
String to pass to the remove_definitions. More... | |
bool | p_wantGenerateFindPackage |
True if we want to have the CMake find_package file generated for the given lib. More... | |
Describes a CMake library.
Definition at line 14 of file PCMakeListsGenerator.h.
PCMakeLibrary::PCMakeLibrary | ( | ) |
Constructor of class PCMakeLibrary.
Definition at line 10 of file PCMakeListsGenerator.cpp.
References initialisationPCMakeLibrary().
PCMakeLibrary::PCMakeLibrary | ( | const PCMakeLibrary & | other | ) |
Copy Constructor of class PCMakeLibrary.
other | : PCMakeLibrary we want ot copy |
Definition at line 17 of file PCMakeListsGenerator.cpp.
References copyPCMakeLibrary().
|
virtual |
Destructor of class PCMakeLibrary.
Definition at line 22 of file PCMakeListsGenerator.cpp.
|
protected |
Copy Function of class PCMakeLibrary.
other | : PCMakeLibrary we want ot copy |
Definition at line 248 of file PCMakeListsGenerator.cpp.
References p_addDefinitions, p_installDirectory, p_isShared, p_listHeaders, p_listLibDependecies, p_listSources, p_name, p_otherCommandAfter, p_removeDefinitions, and p_wantGenerateFindPackage.
Referenced by operator=(), and PCMakeLibrary().
PString & PCMakeLibrary::getAddDefinitions | ( | ) |
Gets the addDefinitions of the PCMakeLibrary.
Definition at line 199 of file PCMakeListsGenerator.cpp.
References p_addDefinitions.
const PString & PCMakeLibrary::getAddDefinitions | ( | ) | const |
Gets the addDefinitions of the PCMakeLibrary.
Definition at line 192 of file PCMakeListsGenerator.cpp.
References p_addDefinitions.
Referenced by saveCMakeLibrary().
PPath & PCMakeLibrary::getInstallDirectory | ( | ) |
Gets the installDirectory of the PCMakeLibrary.
Definition at line 129 of file PCMakeListsGenerator.cpp.
References p_installDirectory.
const PPath & PCMakeLibrary::getInstallDirectory | ( | ) | const |
Gets the installDirectory of the PCMakeLibrary.
Definition at line 122 of file PCMakeListsGenerator.cpp.
References p_installDirectory.
Referenced by saveCMakeLibrary().
bool & PCMakeLibrary::getIsShared | ( | ) |
Gets the isShared of the PCMakeLibrary.
Definition at line 227 of file PCMakeListsGenerator.cpp.
References p_isShared.
bool PCMakeLibrary::getIsShared | ( | ) | const |
Gets the isShared of the PCMakeLibrary.
Definition at line 220 of file PCMakeListsGenerator.cpp.
References p_isShared.
Referenced by getFullLibraryName(), and saveCMakeLibrary().
PVecPath & PCMakeLibrary::getListHeaders | ( | ) |
Gets the listHeaders of the PCMakeLibrary.
Definition at line 171 of file PCMakeListsGenerator.cpp.
References p_listHeaders.
const PVecPath & PCMakeLibrary::getListHeaders | ( | ) | const |
Gets the listHeaders of the PCMakeLibrary.
Definition at line 164 of file PCMakeListsGenerator.cpp.
References p_listHeaders.
Referenced by saveCMakeLibrary(), and saveCMakeLibraryFindPackageFile().
PVecString & PCMakeLibrary::getListLibDependecies | ( | ) |
Gets the listLibDependecies of the PCMakeLibrary.
Definition at line 143 of file PCMakeListsGenerator.cpp.
References p_listLibDependecies.
const PVecString & PCMakeLibrary::getListLibDependecies | ( | ) | const |
Gets the listLibDependecies of the PCMakeLibrary.
Definition at line 136 of file PCMakeListsGenerator.cpp.
References p_listLibDependecies.
Referenced by saveCMakeLibrary().
PVecPath & PCMakeLibrary::getListSources | ( | ) |
Gets the listSources of the PCMakeLibrary.
Definition at line 157 of file PCMakeListsGenerator.cpp.
References p_listSources.
const PVecPath & PCMakeLibrary::getListSources | ( | ) | const |
Gets the listSources of the PCMakeLibrary.
Definition at line 150 of file PCMakeListsGenerator.cpp.
References p_listSources.
Referenced by saveCMakeLibrary().
PString & PCMakeLibrary::getName | ( | ) |
Gets the name of the PCMakeLibrary.
Definition at line 115 of file PCMakeListsGenerator.cpp.
References p_name.
const PString & PCMakeLibrary::getName | ( | ) | const |
Gets the name of the PCMakeLibrary.
Definition at line 108 of file PCMakeListsGenerator.cpp.
References p_name.
Referenced by getFullLibraryName(), saveCMakeLibrary(), and saveCMakeLibraryFindPackageFile().
PString & PCMakeLibrary::getOtherCommandAfter | ( | ) |
Gets the otherCommandAfter of the PCMakeLibrary.
Definition at line 213 of file PCMakeListsGenerator.cpp.
References p_otherCommandAfter.
const PString & PCMakeLibrary::getOtherCommandAfter | ( | ) | const |
Gets the otherCommandAfter of the PCMakeLibrary.
Definition at line 206 of file PCMakeListsGenerator.cpp.
References p_otherCommandAfter.
Referenced by saveCMakeLibrary().
PString & PCMakeLibrary::getRemoveDefinitions | ( | ) |
Gets the removeDefinitions of the PCMakeLibrary.
Definition at line 185 of file PCMakeListsGenerator.cpp.
References p_removeDefinitions.
const PString & PCMakeLibrary::getRemoveDefinitions | ( | ) | const |
Gets the removeDefinitions of the PCMakeLibrary.
Definition at line 178 of file PCMakeListsGenerator.cpp.
References p_removeDefinitions.
Referenced by saveCMakeLibrary().
bool & PCMakeLibrary::getWantGenerateFindPackage | ( | ) |
Gets the wantGenerateFindPackage of the PCMakeLibrary.
Definition at line 241 of file PCMakeListsGenerator.cpp.
References p_wantGenerateFindPackage.
bool PCMakeLibrary::getWantGenerateFindPackage | ( | ) | const |
Gets the wantGenerateFindPackage of the PCMakeLibrary.
Definition at line 234 of file PCMakeListsGenerator.cpp.
References p_wantGenerateFindPackage.
Referenced by saveCMakeLibrary(), and saveCMakeLibraryFindPackageFile().
|
private |
Initialisation Function of class PCMakeLibrary.
Definition at line 262 of file PCMakeListsGenerator.cpp.
References p_isShared, and p_wantGenerateFindPackage.
Referenced by PCMakeLibrary().
PCMakeLibrary & PCMakeLibrary::operator= | ( | const PCMakeLibrary & | other | ) |
Operator = of class PCMakeLibrary.
other | : PCMakeLibrary we want ot copy |
Definition at line 30 of file PCMakeListsGenerator.cpp.
References copyPCMakeLibrary().
void PCMakeLibrary::setAddDefinitions | ( | const PString & | addDefinitions | ) |
Sets the addDefinitions of the PCMakeLibrary.
addDefinitions | : addDefinitions of the PCMakeLibrary |
Definition at line 80 of file PCMakeListsGenerator.cpp.
References p_addDefinitions.
void PCMakeLibrary::setInstallDirectory | ( | const PPath & | installDirectory | ) |
Sets the installDirectory of the PCMakeLibrary.
installDirectory | : installDirectory of the PCMakeLibrary |
Definition at line 45 of file PCMakeListsGenerator.cpp.
References p_installDirectory.
void PCMakeLibrary::setIsShared | ( | bool | isShared | ) |
Sets the isShared of the PCMakeLibrary.
isShared | : isShared of the PCMakeLibrary |
Definition at line 94 of file PCMakeListsGenerator.cpp.
References p_isShared.
void PCMakeLibrary::setListHeaders | ( | const PVecPath & | listHeaders | ) |
Sets the listHeaders of the PCMakeLibrary.
listHeaders | : listHeaders of the PCMakeLibrary |
Definition at line 66 of file PCMakeListsGenerator.cpp.
References p_listHeaders.
void PCMakeLibrary::setListLibDependecies | ( | const PVecString & | listLibDependecies | ) |
Sets the listLibDependecies of the PCMakeLibrary.
listLibDependecies | : listLibDependecies of the PCMakeLibrary |
Definition at line 52 of file PCMakeListsGenerator.cpp.
References p_listLibDependecies.
void PCMakeLibrary::setListSources | ( | const PVecPath & | listSources | ) |
Sets the listSources of the PCMakeLibrary.
listSources | : listSources of the PCMakeLibrary |
Definition at line 59 of file PCMakeListsGenerator.cpp.
References p_listSources.
void PCMakeLibrary::setName | ( | const PString & | name | ) |
Sets the name of the PCMakeLibrary.
name | : name of the PCMakeLibrary |
Definition at line 38 of file PCMakeListsGenerator.cpp.
References p_name.
void PCMakeLibrary::setOtherCommandAfter | ( | const PString & | otherCommandAfter | ) |
Sets the otherCommandAfter of the PCMakeLibrary.
otherCommandAfter | : otherCommandAfter of the PCMakeLibrary |
Definition at line 87 of file PCMakeListsGenerator.cpp.
References p_otherCommandAfter.
void PCMakeLibrary::setRemoveDefinitions | ( | const PString & | removeDefinitions | ) |
Sets the removeDefinitions of the PCMakeLibrary.
removeDefinitions | : removeDefinitions of the PCMakeLibrary |
Definition at line 73 of file PCMakeListsGenerator.cpp.
References p_removeDefinitions.
void PCMakeLibrary::setWantGenerateFindPackage | ( | bool | wantGenerateFindPackage | ) |
Sets the wantGenerateFindPackage of the PCMakeLibrary.
wantGenerateFindPackage | : wantGenerateFindPackage of the PCMakeLibrary |
Definition at line 101 of file PCMakeListsGenerator.cpp.
References p_wantGenerateFindPackage.
|
private |
String to pass to the add_definitions.
Definition at line 67 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeLibrary(), getAddDefinitions(), and setAddDefinitions().
|
private |
Name of the install directory of the library.
Definition at line 57 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeLibrary(), getInstallDirectory(), and setInstallDirectory().
|
private |
True if the library is chared false if not.
Definition at line 71 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeLibrary(), getIsShared(), initialisationPCMakeLibrary(), and setIsShared().
|
private |
Lists of the headers.
Definition at line 63 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeLibrary(), getListHeaders(), and setListHeaders().
|
private |
List of the library libraries dependencies.
Definition at line 59 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeLibrary(), getListLibDependecies(), and setListLibDependecies().
|
private |
Lists of the sources.
Definition at line 61 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeLibrary(), getListSources(), and setListSources().
|
private |
Name of the library.
Definition at line 55 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeLibrary(), getName(), and setName().
|
private |
Other command after the definition of the target.
Definition at line 69 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeLibrary(), getOtherCommandAfter(), and setOtherCommandAfter().
|
private |
String to pass to the remove_definitions.
Definition at line 65 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeLibrary(), getRemoveDefinitions(), and setRemoveDefinitions().
|
private |
True if we want to have the CMake find_package file generated for the given lib.
Definition at line 73 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeLibrary(), getWantGenerateFindPackage(), initialisationPCMakeLibrary(), and setWantGenerateFindPackage().