Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Help with Build Engine/Build Definition

Question:

How do I use a build configuration defined for a component when executing a build through the build engine?

I have several components and each of them has a set of build configurations for various targets (X86, PowerPC, etc). Each of those build configurations contains a whole slew of environment variables that are needed by the Make system to actually build the software. However, I have been unable to figure out how I tell the build definition to specifically use a build configuration when building.

Thanks,
Chris

0 votes



3 answers

Permanent link
On 2010/09/24 8:53, cfagyal wrote:
How do I use a build configuration defined for a component when
executing a build through the build engine?

I have several components and each of them has a set of build
configurations for various targets (X86, PowerPC, etc). Each of
those build configurations contains a whole slew of environment
variables that are needed by the Make system to actually build the
software. However, I have been unable to figure out how I tell the
build definition to specifically use a build configuration when
building.

"All problems in computer science can be solved by another level of
indirection."

Write a script that finds the correct set of environment variable to
set, sets them, and then calls Make. Have the build definition call
that script rather than calling Make directly.

0 votes


Permanent link
Take a look at
http://jazz.net/forums/viewtopic.php?t=9178&highlight=sudhakarf. The
example there is to invoke msbuild or devenv from a "Command line Build"
Jazz Build Definition. If I understand you right, you can setup a number
of properties that you can modify on the fly when requesting a build. In
the example in the post, I use " ${config}" to determine which
configuration (Release, Debug, X86, x64 etc) will be built. his property
is passed to build.bat as %5.

Also see https://jazz.net/wiki/bin/view/Main/CppBuild
HTH

On 24/09/2010 9:23 PM, cfagyal wrote:
Question:

How do I use a build configuration defined for a component when
executing a build through the build engine?

I have several components and each of them has a set of build
configurations for various targets (X86, PowerPC, etc). Each of
those build configurations contains a whole slew of environment
variables that are needed by the Make system to actually build the
software. However, I have been unable to figure out how I tell the
build definition to specifically use a build configuration when
building.

Thanks,
Chris

0 votes


Permanent link
Hi,

an addition (increasing useability) would be to create different Build definitions for the different environments. The simplest would be to create a build definition with a switch e.g. ${config} and pass that to the CMD call. The CMD would use the switch to determine the environment to be set. The various build definitions would just provide the one value for the switch for the configuration they care about.

The advantages are:
- no manual input needed for building
- easy to understand which configuration the build was done for

Just a thought.

Ralph

Take a look at
http://jazz.net/forums/viewtopic.php?t=9178&highlight=sudhakarf. The
example there is to invoke msbuild or devenv from a "Command line Build"
Jazz Build Definition. If I understand you right, you can setup a number
of properties that you can modify on the fly when requesting a build. In
the example in the post, I use " ${config}" to determine which
configuration (Release, Debug, X86, x64 etc) will be built. his property
is passed to build.bat as %5.

Also see https://jazz.net/wiki/bin/view/Main/CppBuild
HTH

On 24/09/2010 9:23 PM, cfagyal wrote:
Question:

How do I use a build configuration defined for a component when
executing a build through the build engine?

I have several components and each of them has a set of build
configurations for various targets (X86, PowerPC, etc). Each of
those build configurations contains a whole slew of environment
variables that are needed by the Make system to actually build the
software. However, I have been unable to figure out how I tell the
build definition to specifically use a build configuration when
building.

Thanks,
Chris

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Sep 24 '10, 11:52 a.m.

Question was seen: 5,244 times

Last updated: Sep 24 '10, 11:52 a.m.

Confirmation Cancel Confirm