Building Packages

From RAD Studio
Jump to: navigation, search

Go Up to How To Compile and Build Applications


You can create packages in RAD Studio and include them in your projects.

To create a new package:

  1. Create a new package from the File menu:
    File > New > Package - C++Builder
    File > New > Package - Delphi
    This creates a new empty package and makes an entry for it in the Projects Window, along with two folders: one marked Contains and one marked Requires.
    Note: If you want to add required files to the package, you must add compiled packages (dcpil, .dll) to the Requires folder. Add uncompiled code files (.pas, .cpp, .h) to the Contains folder.
  2. Select the package name in the Project Manager.
  3. Right-click to display the drop-down context menu and choose Add to display the Add dialog box.
  4. Browse to locate the file or files you want to add.
  5. Select one or more files, and click Open.
  6. Click OK.This adds the selected files to the package.
  7. Choose Project > Build <Package Name> to build the package.

To add a package to a project:

  1. Create a new project.
  2. Select the project name in the Projects Window.
  3. Right-click to display the drop-down context menu.
  4. Choose Add.
  5. Browse to locate a package file.
  6. Select the file and click Open.
  7. Click OK.This adds the package to the project.
  8. Choose Project > Build <Project Name> to build the project.

See Also