Difference between revisions of "Recommended global variables"
From Code::Blocks
MortenMacFly (talk | contribs) |
Sethjackson (talk | contribs) (Wiki syntax. ;)) |
||
Line 4: | Line 4: | ||
However, if you wish to maximise the benefit of using global user variables, then you better make sure that the same name always means the same thing! | However, if you wish to maximise the benefit of using global user variables, then you better make sure that the same name always means the same thing! | ||
− | + | '''Example:''' | |
+ | |||
If you call the location of your wxWidgets installation <tt>#wx</tt>, and two other developers call them <tt>#wxwin</tt> and <tt>#wxwidgets</tt> in their projects, then somebody compiling all three projects will be promted three times for the same thing. This is obviously less than optimal. | If you call the location of your wxWidgets installation <tt>#wx</tt>, and two other developers call them <tt>#wxwin</tt> and <tt>#wxwidgets</tt> in their projects, then somebody compiling all three projects will be promted three times for the same thing. This is obviously less than optimal. | ||
This list is provided as a guideline and in no way authoritative. However, if you use the names in this list, chances are good that people trying to compile your projects will be a lot happier. | This list is provided as a guideline and in no way authoritative. However, if you use the names in this list, chances are good that people trying to compile your projects will be a lot happier. | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border: 1px solid gray; border-collapse: collapse;" | ||
+ | |||
+ | |+ List of names for [[global user variables]] | ||
+ | |||
+ | |- style="background: #ececec; border: 1px solid gray; text-align: center;" | ||
+ | ! Variable | ||
+ | ! Meaning | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | cb || Base directory of the Code::Blocks SDK | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | cs || Base directory of Crystal Space | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | dm || Base directory of Digital Mars | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | dx || Base directory of the DirectX SDK | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | fl || Base directory of FLTK | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | ft || Base directory of FreeType | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | genesis || Base directory of Genesis 3D | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | gcc || Base directory of GCC/MinGW | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | glfw || Base directory of GLFW | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | glut || Base directory of GLUT | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | g3d || Base directory of Graphics 3D | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | irr || Base directory of Irrlicht | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | msvc || Base directory of MSVC | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | ogre || Base directory of Ogre 3D | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | openal || Base directory of OpenAL | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | psdk || Base directory of the Microsoft Platform SDK | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | sdl || Base directory of SDL | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | sw || Base directory of SmartWin | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | qt || Base directory of Qt | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | wx || Base directory of wxWidgets | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | zlib || Base directory of zlib | ||
+ | |- | ||
− | + | |} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 22:47, 18 April 2006
Technically, it does not matter how you name your global user variables. However, if you wish to maximise the benefit of using global user variables, then you better make sure that the same name always means the same thing!
Example:
If you call the location of your wxWidgets installation #wx, and two other developers call them #wxwin and #wxwidgets in their projects, then somebody compiling all three projects will be promted three times for the same thing. This is obviously less than optimal.
This list is provided as a guideline and in no way authoritative. However, if you use the names in this list, chances are good that people trying to compile your projects will be a lot happier.
Variable | Meaning |
---|---|
cb | Base directory of the Code::Blocks SDK |
cs | Base directory of Crystal Space |
dm | Base directory of Digital Mars |
dx | Base directory of the DirectX SDK |
fl | Base directory of FLTK |
ft | Base directory of FreeType |
genesis | Base directory of Genesis 3D |
gcc | Base directory of GCC/MinGW |
glfw | Base directory of GLFW |
glut | Base directory of GLUT |
g3d | Base directory of Graphics 3D |
irr | Base directory of Irrlicht |
msvc | Base directory of MSVC |
ogre | Base directory of Ogre 3D |
openal | Base directory of OpenAL |
psdk | Base directory of the Microsoft Platform SDK |
sdl | Base directory of SDL |
sw | Base directory of SmartWin |
qt | Base directory of Qt |
wx | Base directory of wxWidgets |
zlib | Base directory of zlib |