Version Information Editor is written in Object Pascal and is targeted at Delphi 2010. The Delphi IDE can be used to modify the source and to perform test builds. Final builds should be built using the provided makefile, but you can get away with using the IDE if you don't change any resources.
Several DelphiDabbler libraries and components are required in to compile Version Information Editor. They are:
These components must be installed into the Delphi component palette since they are required at design time.
All the components and classes must be installed in the same directory, so the easiest thing to do is to install everything into the Delphi user design time package. See here if you need help doing this.
The following tools are required to build VIEd.
A copy of the Delphi 2010 command line compiler is required to build the object Pascal code from the provided makefile.
You can use the Delphi IDE to edit the code and test compile it, but final builds should be created using the makefile, which requires the following tools that are supplied with Delphi:
The following command line tools are required to compile the whole project using the build scripts.
DCC32
BRCC32
.rc) files.
The following environment variables are associated with these tools:
DELPHIROOT - required unless DELPHI2010 is set.
DCC32 and BRCC32 are expected to be in the
Bin sub-directory of DELPHIROOT.
DELPHI2010 - optional
DELPHI2010 is defined DELPHIROOT will be set
to the value of DELPHI2010.
This is the make tool that ships with Delphi. You can use any version that works.
Yes, you need an executable version of the tool you are going to build. Use an
existing stable version from v2.11.2. This tool is used to compile version
the program's version information (.vi) files into intermediate
resource source (.rc) files. You can get the latest stable
version from
http://www.delphidabbler.com/software/vied.
The Unicode version on the Inno setup command line compiler is needed to create CodeSnip's install program. v5.4.0 (u) or later is required as is a compatible version of the ISPP pre-processor. You can get Inno Setup with ISPP at http://www.jrsoftware.org/isinfo.php. Choose the Unicode version. If you already have the ANSI version the Unicode version can be installed alongside it - just use a different install directory and program group name.
The compiler is expected to be on the path unless its install directory is
specified by the INNOSETUP environment variable.
This command line compiler is supplied with Microsoft HTML Help Workshop. It is used to compile the VIEd help file.
The program is expected to be on the path unless its install directory is
specified by the HHCROOT environment variable.
This program is used to create VIEd's release file. You can get a Windows command line version at http://stahlforce.com/dev/index.php?tool=zipunzip.
The program is expected to be on the path unless its install directory is
specified by the ZIPROOT environment variable.
First you need to get the source code of Version Information Editor. There are two choices:
vied by doing:
> svn checkoput http://verinfo-tools.googlecode.com/svn/trunk/vied/ vied
> svn checkout http://verinfo-tools.googlecode.com/svn/tags/vied/release-9.9.9/ vied
9.9.9 with the version number of the required
release. All available releases can be viewed in this branch of the SVN repository.
The makefile requires that the following environment variables are set:
DELPHIROOT or DELPHI2010
DELPHIROOT must be set to the install directory of the version
of Delphi being used. If you are using Delphi 2010 you can set
DELPHI2010 to its install directory. If set
DELPHI2010 will be used in preference to
DELPHIROOT.
DELPHIDABLIB or DELPHIDABLIBD2010
DELPHIDABLIB must be set to the directory where the required
DelphiDabbler components and library files are installed in the version of
Delphi to be used. If you are using Delphi 2010 you can set
DELPHIDABLIBD2010 instead and it will be used is preference.
INNOSETUP
VIEDROOT
HHCROOT
ZIPROOT
RELEASEFILENAME
You may find it convenient to create a batch file that sets up the environment that you run from a command window before running the makefile.
After checking out or downloading and extracting the source code you should have the following directory structure:
./
|
+-- Docs - documentation
|
+-- Source - main source code
|
+-- Assets - assets to be included in resources
|
+-- Help - source for help file: contains project files
|
+-- CSS - style sheet used for help file
|
+-- HTML - HTML help topic files
If your source tree also contains one or more of the Bin,
Exe or Release directories that's OK, as will become
clear later. Subversion users will also see the usual hidden .svn
directories.
The first thing to do before attempting to hack the code is to configure the
source tree. Open a console window and navigate to the Source
directory. Run any script you have created to set the environment variables
then do:
> make config
This script does two things:
Bin, Exe and
Release directories, along with various sub-directories of
Bin that are required to receive the binary code. If any of
these directories already existed they will have been emptied.
.cfg file from a template file. This file is
required to configure the Delphi command line compiler. The
.cfg file will be ignored by Subversion.
If you intending to edit and compile the code using the Delphi IDE you must
also run the following command from the Source directory:
> make resources
This creates the resource files that the IDE needs to link into compiled executables.
You are now ready to modify the code if you wish and to build the source.
The code is built using the makefile, which must be run from a command line
that is set to the Source directory. Run any script you have
created once, before using the makefile for the first time.
The makefile offers several options. They are:
make config
.cfg file from its template and creates empty
Bin, Exe and Release directories.
make resources
Bin directory, which must exist.
make pascal
Bin directory. The
compiled exe file is placed in the Exe directory.
make vied
make
resources followed by make pascal.
make help
Exe directory.
make setup
Exe directory. It also requires that certain documents are
present in the Docs directory. The compiled setup program is
placed in the Exe directory.
make release
dd-vied.zip but this can be changed by
setting the RELEASEFILENAME environment variable (see above).
make everything or make
make clean
Bin, Exe and
Release directories and contents and neither does it delete the
.cfg from the Source directory.
make deepclean
make clean this command deletes unwanted and temporary
files and directories. It also removes the directories and files created by
make config, i.e. the Bin, Exe and
Release directories along with the .cfg in the
Source directory.
Note: If the make command fails to run you may
need to use %DELPHIROOT%\Bin\Make or
%DELPHI2010%\Bin\Make depending on which environment variable you
have set.
If you are planning to re-use or modify any of the code, please see
SourceCodeLicenses.txt in the Docs directory for
an overview of the various open source licenses that apply to the
Version Information Editor source code.