Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Can I specify a build order of components?
Topic Summary:
Created On: 21-Jan-2009 19:37
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 21-Jan-2009 19:37
User is offline View Users Profile Print this message


Paul Coene

Posts: 8
Joined: 7-May-2008

I have an EXE component and a DLL component. Is there some way to setup the DLL to automatically build (if needed) when I GMR the EXE component? Basically a build order of multiple components with one click.
Report this to a Moderator Report this to a Moderator
 22-Jan-2009 09:46
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Hi again, Paul

As far as I know, it doesn't work out of the box, but you can do it:

  1. Create a dependency between your exe and your lib components, and stereotype it as "Usage".
  2. Tell the exe component which configuration of the lib component to build by either:
    a) ensuring that the lib has a configuration with the same name as the configuration you want to build the exe with (e.g. both have the default "DefaultConfig" configuration.), or
    b) mapping the exe's configuration to the lib's configuration by setting the CG::Dependency::ConfigurationDependencies property on the exe component.
  3. Edit the exe component's makefile template to contain a line like this:
    CMP_DEPS=$(OMModelLibs)
    This will cause a list of dependent lib components to be generated into the makefile.
  4. Further edit the makefile template to create a target based on the CMP_DEPS variable. This target should call the make for each lib listed in CMP_DEPS.
This deals with the build. However, it doesn't automatically generate the lib when you generate the exe. If that's also important to you, which I guess it probably is, let me know. (You can do it, but it needs a bit of VBA scripting.)

best regards,
Simon

-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.