Tuesday, February 22, 2005

Back to work

Well.. I am... back to work... I had some great 1 week hollidays... now is time to sync myself with all pending things at my work.... in short I post my last article about Delphi Installation Organization.

Tuesday, February 15, 2005

Delphi Installation Organization Part 3

Well.. had may coffee... (sorry... my two coffees) and know I fell quite motivated to press some of my favorite keys... those keys at my keyboard to explain the Delphi Installation Organization.
At my last post I explained the level 1 folders at the _Win32 Folder. Today I will explain how I have configured my Delphi base Settings. Well.. the first thing you must bare in mind is that I will explain all this in a generic point of view... I mean that I will try to make it at least D5,D6,D7 or D2005 compatible... but surelly the ways to get to the configuration parameter at the different IDE's may differ. So lets dive into it...
Get your IDE options and find following parameters:

Delphi Library Path:
Well.. in here there must be all Directories for all units that will be used at any uses clause at all your delphi projects... in here I have all directories I use and the ones that Delphi has set at the installation.. My added paths could be for example:

G:\BDS\_Win32\_Consts
G:\BDS\_Win32\_library\Albert Research
G:\BDS\_Win32\_library\GraphicEx
$(BDS)\lib

as you maybe have noticed I have intentionally set as the last order the standard delphi folders, this is because I want to have My units being found first... for example If I want to have my own consts as I explained on Part 2 of this article, I add the following folder G:\BDS\_Win32\_Consts at the very first order off all the library path then my custom consts units would be found first and used to compile my projects... so there will be no need to modify, delete, move the original consts units from the Delphi Installation folder. Cool isnt it ?... The fact is that the intention of all this article is to avoid to delete,modify nothing from the Delphi Instalation folder.
Package OutPut Directory:
This should be set to G:\BDS\_Win32\_bpl so that any compiled package will be produced in here. This is because we want all our packages live together in the same folder... not all around the hard disk... why? ... well at this moment (there are other reasons but it is to soon for explaining).. just think it is for doing a easier backup of all your Delphi Stuff..
DCP Output Directory:
This should be set to G:\BDS\_Win32\_dcp for the same reasons explained above.

Important.Having set this, you must modify the library path of your system adding the _dcp and _bpl path to it...

Browsing Path:
In here you set the folder from where the IDE seeks for units as in the Library path... but this is for "Browsing the Units"... just what happens when you CTRL-Click a unit name at the uses clause in the Code Editor. My settings would be similar as in the Library Path... but I rather prefer here to give more importance to de Delphi VCL units... having in mind those setting set with the translated consts... the folders at my IDE could be like following:
G:\BDS\_Win32\_Consts
$(BDS)\source\Win32\vcl
$(BDS)\source\Win32\rtl\common
...
G:\BDS\_Win32\_library\Albert Research
...
and so on..


Well... that was it for today... in the next (and last) article from this series I will explain how and what to store from the delphi Instalation to be able to, after reinstalling the os and Delphi, set Delphi to its production state in a few seconds.

Friday, February 11, 2005

Work and Hollidays

Well.. I presume I have been a bad blogger. There has been no post since one week or more. Why?... well.. quite easy... the same problem as everyone... work !!!
It has been a terrible week... we had some changes and movings at my work, and I could not even drop a few lines into my blog, because I was exhausted every day when I arrived at home. In fact my computer stayed turned off all this week.
This next week I have hollidays... (my first in quite a lot of years) so maybe there will be an ocasion to write the missing parts of the Delphi Installation Organization. See you then...