Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 2.06 KB

BUILD-Delphi.rst

File metadata and controls

67 lines (42 loc) · 2.06 KB

OSEHRA VistA Delphi Packages

Use the following steps to build VistA Delphi packages from this source.

  1. Install Delphi 2007 from Embarcadero. At the time of this writing Embarcadero Delphi XE2 is the latest version but the license still allows installation of Delphi 2007. On 64-bit Windows the installer places msbuild rules in the wrong framework directory as discussed in Embarcadero QC Report 54409.

    The suggested workaround is to copy:

    c:\Windows\Microsoft.NET\Framework\v2.0.50727\Borland.*.Targets
    

    to:

    c:\Windows\Microsoft.NET\Framework64\v2.0.50727\
    

    after the installation completes.

  2. Download or create XuDigSig files

    Available from Github or create local versions in a folder. The path to this folder will be used during configuration.

  3. Install CMake 2.8 or higher.

  4. Run a command prompt with the Delphi tools available:

    Start -> CodeGear RAD Studio -> RAD Studio Command Prompt
    
  5. Make a build directory in this source tree:

    cd path\to\VistA-Delphi
    mkdir build
    cd build
    
  6. This source contains CMake input files to generate build files. Run CMake and enable the project BUILD_DELPHI option. Set the BUILD_DELPHI_XuSigDig_DIR variable to the path of the folder from step 2:

    cmake .. -G"Borland Makefiles" -DBUILD_DELPHI=ON -DBUILD_DELPHI_XuDigSig_DIR=path\to\CPRSv29-XUDigSig
    

    CMake will generate Delphi 2007 project files.

  7. CMake also generates a Makefile to drive the Delphi build from the command line using msbuild. Run make:

    make
    

    This will build the Delphi project files in the proper order.

  8. Look for build outputs in the build tree under:

    CPRS/Bin/$(Configuration)
    

    where $(Configuration) is Debug or Release.