Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » use of requires statement
use of requires statement [message #526292] Fri, 09 April 2010 13:58 Go to next message
Patrick Geremia is currently offline Patrick GeremiaFriend
Messages: 79
Registered: July 2009
Member
Could someone explain when to use the /requires/ statement in package.xdc?
Are they needed when building libs or only when building an executable?

--
Patrick Geremia
Texas Instruments (http://www.ti.com)
Phone: +33 4 93 22 26 33
Email: p-geremia@ti.com
Availability: http://meetwith.me/patrickgeremia
Re: use of requires statement [message #526332 is a reply to message #526292] Fri, 09 April 2010 17:20 Go to previous messageGo to next message
Sasha Slijepcevic is currently offline Sasha SlijepcevicFriend
Messages: 115
Registered: July 2009
Senior Member
You should use the 'requires' statement to indicate that your package ALWAYS requires the presence of some other package. In other words, a consumer of your package cannot use it without some other packages being present on the package path.

If another package is required only for your package to be built, you should use 'requires internal'.
Re: use of requires statement [message #526353 is a reply to message #526292] Fri, 09 April 2010 19:04 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
Also it's worth pointing out that the requires statements are
unnecessary for any library build; every multi-package xdc build
proceeds in "phases" and the first phase ensures that headers are
created for all packages before proceeding to the next phase which
builds any object files.

The requires statements are also unnecessary for executables _if_ you
implement module$use() for the modules in your package; see
http://rtsc.eclipse.org/docs-tip/XDCscript_-_Module-Body.mod ule%24use.

On 4/9/2010 6:58 AM, Patrick Geremia wrote:
> Could someone explain when to use the /requires/ statement in package.xdc?
> Are they needed when building libs or only when building an executable?
>
Previous Topic:Issue with building large libraries on Windows
Next Topic:releasing a package
Goto Forum:
  


Current Time: Thu Apr 25 22:01:48 GMT 2024

Powered by FUDForum. Page generated in 0.03091 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top