It's all about the answers!

Ask a question

Help with Build Engine/Build Definition


Chris Fagyal (462109) | asked Sep 24 '10, 11:52 a.m.
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

3 answers



permanent link
David Olsen (5237) | answered Sep 26 '10, 2:45 a.m.
JAZZ DEVELOPER
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.

permanent link
Sudhakar Frederick (80113631) | answered Sep 28 '10, 12:38 p.m.
JAZZ DEVELOPER
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

permanent link
Ralph Schoon (62.9k33645) | answered Sep 29 '10, 3:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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

Your answer


Register or to post your answer.