![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: How to tell Rhapsody NOT to include references to OXF in generated source code Topic Summary: Created On: 14-Oct-2005 08:58 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hello,
I'm developing an application for the environment where recources are very limited. That's why I want to have references in generated source code only to those clases which I defined myself. But Rhapsody includes lots of oxf/ classes, methods, events...How can I tell it not to do that? Thank you, -- Andrew Stepanenko, PhD Student, Faculty of Computer Information Technologies, Ternopil State Economic University Shevchenko Street 9, Office 24-25 Ternopil, 46000 UKRAINE Tel: +38 (0352) 43 52 41 fax: +38 (0352) 43 52 45 Web: [url]http://unf.tane.edu.ua[/url] |
|
![]() |
|
![]() |
|
Hi there,
this is possible via the Rhapsody properties for Code generation. If you set the "right" properties, NO OXF includes will be generated. Note however, that the generated makefiles (at least for Windows) will ALWAYS contain a link statement for using the oxf LIBs. You might consider this as a feature ;-) and re-edit the generated makefile on Windows. kind regards, Bernhard. |
|
![]() |
|
![]() |
|
Hi Andrew
The property you need to set to avoid generation of the #include "oxf/oxf.h" line is: [CODE]CPP_CG::Framework::IncludeHeaderFile[/CODE] You could also look at the [URL=http://www.ilogix.com/forum/showthread.php?t=843][COLOR=Navy]Using Rhapsody 6.0 with No Framework[/COLOR][/URL] thread in the Value Added Utilities forum. I think this addresses your need directly... cheers, Simon ------------------------- Simon Morrish simon.morrish@eu.panasonic.com http://panasonic.co.uk Panasonic ideas for life |
|
![]() |
|
![]() |
|
You can remove the framework libraries from the makefile as well by editing the <lang>_CG:<environment>:MakeFileContent property
<lang> = C|CPP <environment> = Microsoft, VxWorks, Linux, etc. |
|
![]() |
|
![]() |
|
Hi Andrew,
I am working on a project that requires no framework code at all. I created a profile and set all the C_CG::Framework properties to empty strings, the CG::Configuration::MainGenerationScheme to "UserInitializationOnly" CG::Class::GenerateImplicitConstructor to false C_CG::Class::Animate to false and C_CG::Class::GenerateDestructor to false. We are also using Rhapsody in C with files NOT classes. When adding functions to files, only use functions, do NOT use the initializer, cleanup etc. options as they will use C++ style framework code. Regards, Ian |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.