OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [cdl-guide/] [ref.include-dir.html] - Diff between revs 28 and 174

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- This material may be distributed only subject to the terms      -->
<!-- This material may be distributed only subject to the terms      -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- or later (the latest version is presently available at          -->
<!-- or later (the latest version is presently available at          -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- permission is obtained from the copyright holder.               -->
<!-- permission is obtained from the copyright holder.               -->
<HTML
<HTML
><HEAD
><HEAD
><TITLE
><TITLE
>include_dir</TITLE
>include_dir</TITLE
><meta name="MSSmartTagsPreventParsing" content="TRUE">
><meta name="MSSmartTagsPreventParsing" content="TRUE">
<META
<META
NAME="GENERATOR"
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
"><LINK
REL="HOME"
REL="HOME"
TITLE="The eCos Component Writer's Guide"
TITLE="The eCos Component Writer's Guide"
HREF="cdl-guide.html"><LINK
HREF="cdl-guide.html"><LINK
REL="UP"
REL="UP"
TITLE="CDL Language Specification"
TITLE="CDL Language Specification"
HREF="reference.html"><LINK
HREF="reference.html"><LINK
REL="PREVIOUS"
REL="PREVIOUS"
TITLE="implements"
TITLE="implements"
HREF="ref.implements.html"><LINK
HREF="ref.implements.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="include_files"
TITLE="include_files"
HREF="ref.include-files.html"></HEAD
HREF="ref.include-files.html"></HEAD
><BODY
><BODY
CLASS="REFENTRY"
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
BGCOLOR="#FFFFFF"
TEXT="#000000"
TEXT="#000000"
LINK="#0000FF"
LINK="#0000FF"
VLINK="#840084"
VLINK="#840084"
ALINK="#0000FF"
ALINK="#0000FF"
><DIV
><DIV
CLASS="NAVHEADER"
CLASS="NAVHEADER"
><TABLE
><TABLE
SUMMARY="Header navigation table"
SUMMARY="Header navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TH
><TH
COLSPAN="3"
COLSPAN="3"
ALIGN="center"
ALIGN="center"
>The <SPAN
>The <SPAN
CLASS="APPLICATION"
CLASS="APPLICATION"
>eCos</SPAN
>eCos</SPAN
> Component Writer's Guide</TH
> Component Writer's Guide</TH
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="left"
ALIGN="left"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="ref.implements.html"
HREF="ref.implements.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="80%"
WIDTH="80%"
ALIGN="center"
ALIGN="center"
VALIGN="bottom"
VALIGN="bottom"
></TD
></TD
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="right"
ALIGN="right"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="ref.include-files.html"
HREF="ref.include-files.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"></DIV
WIDTH="100%"></DIV
><H1
><H1
><A
><A
NAME="REF.INCLUDE-DIR"><SPAN
NAME="REF.INCLUDE-DIR"><SPAN
CLASS="PROPERTY"
CLASS="PROPERTY"
>include_dir</SPAN
>include_dir</SPAN
></H1
></H1
><DIV
><DIV
CLASS="REFNAMEDIV"
CLASS="REFNAMEDIV"
><A
><A
NAME="AEN4534"
NAME="AEN4534"
></A
></A
><H2
><H2
>Name</H2
>Name</H2
>Property <SPAN
>Property <SPAN
CLASS="PROPERTY"
CLASS="PROPERTY"
>include_dir</SPAN
>include_dir</SPAN
>&nbsp;--&nbsp;Specify the desired location of a package's exported
>&nbsp;--&nbsp;Specify the desired location of a package's exported
header files in the install tree.</DIV
header files in the install tree.</DIV
><DIV
><DIV
CLASS="REFSYNOPSISDIV"
CLASS="REFSYNOPSISDIV"
><A
><A
NAME="AEN4538"><H2
NAME="AEN4538"><H2
>Synopsis</H2
>Synopsis</H2
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="SYNOPSIS"
CLASS="SYNOPSIS"
>cdl_package &lt;name&gt; {
>cdl_package &lt;name&gt; {
    include_dir &lt;sub-directory&gt;
    include_dir &lt;sub-directory&gt;
    &#8230;
    &#8230;
}</PRE
}</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
><DIV
><DIV
CLASS="REFSECT1"
CLASS="REFSECT1"
><A
><A
NAME="AEN4540"
NAME="AEN4540"
></A
></A
><H2
><H2
>Description</H2
>Description</H2
><P
><P
>Most packages export one or more header files defining their public
>Most packages export one or more header files defining their public
interface. For example the C library exports header files such as
interface. For example the C library exports header files such as
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>stdio.h</TT
>stdio.h</TT
> and
> and
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>ctype.h</TT
>ctype.h</TT
>.
>.
If the package follows the <A
If the package follows the <A
HREF="package.html#PACKAGE.HIERARCHY"
HREF="package.html#PACKAGE.HIERARCHY"
>directory
>directory
layout conventions</A
layout conventions</A
> then the exported header files will normally
> then the exported header files will normally
be found in the package's
be found in the package's
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>include</TT
>include</TT
> sub-directory.
> sub-directory.
Alternatively the <SPAN
Alternatively the <SPAN
CLASS="PROPERTY"
CLASS="PROPERTY"
>include_files</SPAN
>include_files</SPAN
> property can be used to specify
> property can be used to specify
which header files should be exported.</P
which header files should be exported.</P
><P
><P
>By default a package's exported header files will be copied to
>By default a package's exported header files will be copied to
the <TT
the <TT
CLASS="FILENAME"
CLASS="FILENAME"
>include</TT
>include</TT
> sub-directory of
> sub-directory of
the install tree. This is correct for packages like the C library
the install tree. This is correct for packages like the C library
because that is the correct location for files such as
because that is the correct location for files such as
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>stdio.h</TT
>stdio.h</TT
>. However to reduce the
>. However to reduce the
probability of name clashes it is desirable for packages to use
probability of name clashes it is desirable for packages to use
different sub-directories, for example infrastructure header files get
different sub-directories, for example infrastructure header files get
copied to <TT
copied to <TT
CLASS="FILENAME"
CLASS="FILENAME"
>include/cyg/infra</TT
>include/cyg/infra</TT
>
>
rather than to the top-level
rather than to the top-level
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>include</TT
>include</TT
> directory itself.</P
> directory itself.</P
><P
><P
>It would be possible to replicate these sub-directories in each
>It would be possible to replicate these sub-directories in each
package's source tree, such that the infrastructure header file
package's source tree, such that the infrastructure header file
sources lived in
sources lived in
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>include/cyg/infra</TT
>include/cyg/infra</TT
> in the source
> in the source
tree as well as in the install tree. This would make things more
tree as well as in the install tree. This would make things more
difficult for the package developers. Instead it is possible to
difficult for the package developers. Instead it is possible to
specify the desired install tree sub-directory using an <SPAN
specify the desired install tree sub-directory using an <SPAN
CLASS="PROPERTY"
CLASS="PROPERTY"
>include_dir</SPAN
>include_dir</SPAN
>
>
property, for example <TT
property, for example <TT
CLASS="LITERAL"
CLASS="LITERAL"
>include_dir&nbsp;cyg/infra</TT
>include_dir&nbsp;cyg/infra</TT
>.</P
>.</P
><P
><P
>The <SPAN
>The <SPAN
CLASS="PROPERTY"
CLASS="PROPERTY"
>include_dir</SPAN
>include_dir</SPAN
> property can only be used in the body of a
> property can only be used in the body of a
<TT
<TT
CLASS="LITERAL"
CLASS="LITERAL"
>cdl_package</TT
>cdl_package</TT
> command, since it applies to all of the header files
> command, since it applies to all of the header files
exported by a package, and only one <SPAN
exported by a package, and only one <SPAN
CLASS="PROPERTY"
CLASS="PROPERTY"
>include_dir</SPAN
>include_dir</SPAN
> property can be
> property can be
used. If there is no <SPAN
used. If there is no <SPAN
CLASS="PROPERTY"
CLASS="PROPERTY"
>include_dir</SPAN
>include_dir</SPAN
> property then exported header files
> property then exported header files
will end up in the top-level <TT
will end up in the top-level <TT
CLASS="FILENAME"
CLASS="FILENAME"
>include</TT
>include</TT
>
>
directory of the install tree.</P
directory of the install tree.</P
></DIV
></DIV
><DIV
><DIV
CLASS="REFSECT1"
CLASS="REFSECT1"
><A
><A
NAME="AEN4563"
NAME="AEN4563"
></A
></A
><H2
><H2
>Example</H2
>Example</H2
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>cdl_package CYGPKG_INFRA {
>cdl_package CYGPKG_INFRA {
    display       "Infrastructure"
    display       "Infrastructure"
    include_dir   cyg/infra
    include_dir   cyg/infra
    description   "
    description   "
        Common types and useful macros.
        Common types and useful macros.
        Tracing and assertion facilities.
        Tracing and assertion facilities.
        Package startup options."
        Package startup options."
    &#8230;
    &#8230;
}</PRE
}</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
><DIV
><DIV
CLASS="REFSECT1"
CLASS="REFSECT1"
><A
><A
NAME="AEN4566"
NAME="AEN4566"
></A
></A
><H2
><H2
>See Also</H2
>See Also</H2
><P
><P
>Property <A
>Property <A
HREF="ref.include-files.html"
HREF="ref.include-files.html"
><SPAN
><SPAN
CLASS="PROPERTY"
CLASS="PROPERTY"
>include_files</SPAN
>include_files</SPAN
></A
></A
>, and
>, and
command <A
command <A
HREF="ref.cdl-package.html"
HREF="ref.cdl-package.html"
><TT
><TT
CLASS="LITERAL"
CLASS="LITERAL"
>cdl_package</TT
>cdl_package</TT
></A
></A
>.</P
>.</P
></DIV
></DIV
><DIV
><DIV
CLASS="NAVFOOTER"
CLASS="NAVFOOTER"
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
SUMMARY="Footer navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="ref.implements.html"
HREF="ref.implements.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="cdl-guide.html"
HREF="cdl-guide.html"
ACCESSKEY="H"
ACCESSKEY="H"
>Home</A
>Home</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="ref.include-files.html"
HREF="ref.include-files.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
><SPAN
><SPAN
CLASS="PROPERTY"
CLASS="PROPERTY"
>implements</SPAN
>implements</SPAN
></TD
></TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="reference.html"
HREF="reference.html"
ACCESSKEY="U"
ACCESSKEY="U"
>Up</A
>Up</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
><SPAN
><SPAN
CLASS="PROPERTY"
CLASS="PROPERTY"
>include_files</SPAN
>include_files</SPAN
></TD
></TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
></BODY
></BODY
></HTML
></HTML
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.