Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Container Project funtionality: (2 Items)
   
Container Project funtionality  
I want to create a container project that builds projects in the proper order and then performs some custom steps like 
staging static and built files to a certain directory.  I created a container project and was able to reference and 
order other project in it to be built in the correct order.  I also referenced a System Builder project in the container
 but this doesn't show up in the build configuration list.  When I build the container, the System Builder project is 
built first before the listed projects.  I need it to be built last because I am building a hardware driver that I want 
loaded in the image.

For the custom steps, I tried creating a builder that calls a Windows batch file to stage the files, but the builder 
never gets called.  Is there some way to do this?

I'm using Momentics version 4.7.0 on Windows XP.  I am required to build on Windows and then transfer the staged files 
to a native QNX system to create a bootable compact flash card.
Re: Container Project funtionality  
Hi, Robert,

System Builder projects cannot be included in a Container Project
configuration because they are not C/C++ projects.  Note that the Container
Project Configuration¹s references to a project are entirely distinct from
simple ³Project References.²  The latter mechanism is a basic capability of
all Eclipse projects and does not need to be used with Container Projects.
Also, projects referenced in this way are always built using their current
default builder and (for C projects) active build configuration.  You don¹t
get the Container Project¹s finer control over which build variants and
targets to make.

Also, as you noticed, ³Referenced Projects² are built before the project
that references them, so the IDE built the System Builder project before
building the Container Project.  This put it ahead of all of the projects in
the Container Project Configuration.

If you are using a BSP that you imported into your project, then you will
probably have a ³BSP source project² from which the System Builder project
gets the files that it needs to include in the image.  This source project
should already be configured to build an IFS image.  As it is a C/C++
project, it can be added to your container.

Alternatively, because you need the System Builder project to build last,
you can add your container project to the ³Referenced Projects² of the
System Builder project so that building the System Builder project first
builds the container.

Container project configurations invoke the make builder on the projects
that they reference.  So, you can create a make target in your project¹s
makefile that performs the custom steps, or just calls the batch file that
you already have.  The container project configuration then just needs to
make that target.

HTH,

Christian



On 10-11-01 4:17 PM, "Robert Murrell" <community-noreply@qnx.com> wrote:

> I want to create a container project that builds projects in the proper order
> and then performs some custom steps like staging static and built files to a
> certain directory.  I created a container project and was able to reference
> and order other project in it to be built in the correct order.  I also
> referenced a System Builder project in the container but this doesn't show up
> in the build configuration list.  When I build the container, the System
> Builder project is built first before the listed projects.  I need it to be
> built last because I am building a hardware driver that I want loaded in the
> image.
> 
> For the custom steps, I tried creating a builder that calls a Windows batch
> file to stage the files, but the builder never gets called.  Is there some way
> to do this?
> 
> I'm using Momentics version 4.7.0 on Windows XP.  I am required to build on
> Windows and then transfer the staged files to a native QNX system to create a
> bootable compact flash card.
> 
> 
> 
> 
> _______________________________________________
> 
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post73193