beautypg.com

Building nonstop projects, Build configurations (local projects only), Building with make on windows – HP Integrity NonStop H-Series User Manual

Page 39: Build configuration selection combo box

background image

Building NonStop projects

Eclipse defines two build actions that you can invoke from several places in the IDE — Build Project
and Clean actions. By default, these actions invoke make all and make clean respectively. In
addition, Eclipse defines the actions Build All (to build all projects in your workspace) and Build
Working Set (to build a predefined group of projects).

NSDEE adds another build action, Deploy Project, which invokes make deploy by default and
is used to transfer the result of a build to a NonStop system.

TIP:

By default, Eclipse initiates builds automatically whenever you save a source file. This works

well for Java builds, but can be cumbersome for C, C++, COBOL, and pTAL builds. To turn this
feature off, deselect Build Automatically on the Project menu. All of these build actions are available
from the Project menu, and many are also available from the main tool bar and from the context
menu for the NonStop Project Explorer view.

Build configurations (local projects only)

Local Windows-hosted projects allow you to define any number of build configurations, where
each build configuration you define targets differing build characteristics such as target architecture,
debuggability, and optimization.

By default NSDEE creates release and debug build configurations for each tool chain (TNS/R,
TNS/E, or both) you select at project creation time. You can modify these initial build configurations
or add to them. For example, you could add a build configuration to build for a different platform.
For details, see

“Building for both OSS and Guardian ” (page 90)

.

Build configuration settings are actually a subset of a project's properties. To open the Properties
dialog for a given project, select the project in the NonStop Project Explorer view and then select
Properties from the context menu. In the Properties dialog, all build configuration settings are
available by selecting the C/C++ Build topic on the left or one of its subtopics. (Even for COBOL
and pTAL projects, build configuration settings are available via the C/C++ Build topic or one of
its subtopics.) The build settings will be shown on the right.

TIP:

Property pages specific to build configurations settings are easy to spot because their pages

always show the build configuration selection combo box near the top and as shown in

Figure 5 (page 39)

. The combo box lets you choose which build configuration to apply changes

to.

Figure 5 Build configuration selection combo box

Building with make on Windows

To build with make on Windows, you need to have installed either Cygwin or Msys (both are
available on the NSDEE installation media). Furthermore, you will need to have the path to the
bin

directory containing the make program as part of your PATH environment variable. You have

the option of adding a Cygwin or Msys bin directory to PATH either outside of NSDEE (for
example, by adding bin to your Windows PATH) or by having NSDEE prepend a bin path to
PATH

for you when builds are launched. For more information on having NSDEE prepend a bin

path to PATH, see

“NSDEE_CONN_PORT, nsdee-auth, and Deploy.jar” (page 43)

.

Building NonStop projects

39

This manual is related to the following products: