Next: polyorb-config, Previous: Tracing exceptions, Up: Building an application with PolyORB [Contents][Index]
polyorb.gpr
This section describes how to build your program using project files.
An alternative method, using polyorb-config
, is described in the
following section. polyorb-config
is intended primarily for Unix-like
systems. The project-file method will work on all supported systems.
To build your application, create a project file as usual.
Import the polyorb.gpr
project by putting with "polyorb";
in your project file.
Set the ADA_PROJECT_PATH environment variable to point to the directory
containing polyorb.gpr
, which is <prefix>/lib/gnat
.
If SOAP is being used, ADA_PROJECT_PATH must also be set so we can find
xmlada.gpr
.
If your project file is my_proj.gpr
, you can build it by saying:
$ gnatmake -P my_proj
See the GNAT User’s Guide and the GNAT Reference Manual for more information on project files.