📄 reference.html
字号:
<!-- Copyright (C) 2003 Red Hat, Inc. --><!-- This material may be distributed only subject to the terms --><!-- and conditions set forth in the Open Publication License, v1.0 --><!-- or later (the latest version is presently available at --><!-- http://www.opencontent.org/openpub/). --><!-- Distribution of the work or derivative of the work in any --><!-- standard (paper) book form is prohibited unless prior --><!-- permission is obtained from the copyright holder. --><HTML><HEAD><TITLE>CDL Language Specification</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="The eCos Component Writer's Guide"HREF="cdl-guide.html"><LINKREL="PREVIOUS"TITLE="Building Test Cases"HREF="build.tests.html"><LINKREL="NEXT"TITLE="cdl_option"HREF="ref.cdl-option.html"></HEAD><BODYCLASS="CHAPTER"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">The <SPANCLASS="APPLICATION">eCos</SPAN> Component Writer's Guide</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="build.tests.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="ref.cdl-option.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="CHAPTER"><H1><ANAME="REFERENCE">Chapter 5. CDL Language Specification</H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="ref.cdl-option.html"><TTCLASS="LITERAL">cdl_option</TT></A> -- Define a single configuration option</DT><DT><AHREF="ref.cdl-component.html"><TTCLASS="LITERAL">cdl_component</TT></A> -- Define a component, a collection of configuration options</DT><DT><AHREF="ref.cdl-package.html"><TTCLASS="LITERAL">cdl_package</TT></A> -- Define a package, a component that can be distributed</DT><DT><AHREF="ref.cdl-interface.html"><TTCLASS="LITERAL">cdl_interface</TT></A> -- Define an interface, functionality that can be provided bya number of different implementations.</DT><DT><AHREF="ref.active-if.html"><SPANCLASS="PROPERTY">active_if</SPAN></A> -- Allow additional control over the active state of anoption or other CDL entity.</DT><DT><AHREF="ref.calculated.html"><SPANCLASS="PROPERTY">calculated</SPAN></A> -- Used if the current option's value is not user-modifiable,but is calculated using a suitable CDL expression.</DT><DT><AHREF="ref.compile.html"><SPANCLASS="PROPERTY">compile</SPAN></A> -- List the source files that should be built if this optionis active and enabled.</DT><DT><AHREF="ref.default-value.html"><SPANCLASS="PROPERTY">default_value</SPAN></A> -- Provide a default value for this option using a CDL expression.</DT><DT><AHREF="ref.define.html"><SPANCLASS="PROPERTY">define</SPAN></A> -- Specify additional <TTCLASS="LITERAL">#define</TT> symbols thatshould go into the owning package's configuration header file.</DT><DT><AHREF="ref.define-format.html"><SPANCLASS="PROPERTY">define_format</SPAN></A> -- Control how an option's value will appear in theconfiguration header file.</DT><DT><AHREF="ref.define-header.html"><SPANCLASS="PROPERTY">define_header</SPAN></A> -- Specify the configuration header file thatwill be generated for a given package.</DT><DT><AHREF="ref.define-proc.html"><SPANCLASS="PROPERTY">define_proc</SPAN></A> -- Use a fragment of Tcl code to output additional data toconfiguration header files.</DT><DT><AHREF="ref.description.html"><SPANCLASS="PROPERTY">description</SPAN></A> -- Provide a textual description for an option.</DT><DT><AHREF="ref.display.html"><SPANCLASS="PROPERTY">display</SPAN></A> -- Provide a short string describing this option.</DT><DT><AHREF="ref.doc.html"><SPANCLASS="PROPERTY">doc</SPAN></A> -- The location of online-documentation for a configuration option.</DT><DT><AHREF="ref.flavor.html"><SPANCLASS="PROPERTY">flavor</SPAN></A> -- Specify the nature of a configuration option.</DT><DT><AHREF="ref.hardware.html"><SPANCLASS="PROPERTY">hardware</SPAN></A> -- Specify that a package is tied to specific hardware.</DT><DT><AHREF="ref.if-define.html"><SPANCLASS="PROPERTY">if_define</SPAN></A> -- Output a common preprocessor construct to a configurationheader file.</DT><DT><AHREF="ref.implements.html"><SPANCLASS="PROPERTY">implements</SPAN></A> -- Enabling this option provides one instance of a moregeneral interface.</DT><DT><AHREF="ref.include-dir.html"><SPANCLASS="PROPERTY">include_dir</SPAN></A> -- Specify the desired location of a package's exportedheader files in the install tree.</DT><DT><AHREF="ref.include-files.html"><SPANCLASS="PROPERTY">include_files</SPAN></A> -- List the header files that are exported by a package.</DT><DT><AHREF="ref.legal-values.html"><SPANCLASS="PROPERTY">legal_values</SPAN></A> -- Impose constraints on the possible values for an option.</DT><DT><AHREF="ref.library.html"><SPANCLASS="PROPERTY">library</SPAN></A> -- Specify which library should contain the object filesgenerated by building this package.</DT><DT><AHREF="ref.make.html"><SPANCLASS="PROPERTY">make</SPAN></A> -- Define an additional custom build step associated with anoption, resulting in a target that should not go directly into a library.</DT><DT><AHREF="ref.make-object.html"><SPANCLASS="PROPERTY">make_object</SPAN></A> -- Define a custom build step, resulting in an object filethat should go into a library.</DT><DT><AHREF="ref.no-define.html"><SPANCLASS="PROPERTY">no_define</SPAN></A> -- Suppress the normal generation of a preprocessor<TTCLASS="LITERAL">#define</TT> symbol in a configuration header file.</DT><DT><AHREF="ref.parent.html"><SPANCLASS="PROPERTY">parent</SPAN></A> -- Control the location of an option in the configuration hierarchy.</DT><DT><AHREF="ref.requires.html"><SPANCLASS="PROPERTY">requires</SPAN></A> -- List constraints that the configuration should satisfy ifa given option is active and enabled..</DT><DT><AHREF="ref.script.html"><SPANCLASS="PROPERTY">script</SPAN></A> -- Include additional configuration information from anotherCDL script.</DT></DL></DIV><P>This chapter contains reference information for the main <SPANCLASS="APPLICATION">CDL</SPAN>commands <TTCLASS="LITERAL">cdl_option</TT>, <TTCLASS="LITERAL">cdl_component</TT>, <TTCLASS="LITERAL">cdl_package</TT> and<TTCLASS="LITERAL">cdl_interface</TT>, followed by the various properties such as<SPANCLASS="PROPERTY">active_if</SPAN> and <SPANCLASS="PROPERTY">compile</SPAN> in alphabetical order.</P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="build.tests.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="cdl-guide.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="ref.cdl-option.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Building Test Cases</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"> </TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><TTCLASS="LITERAL">cdl_option</TT></TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -