Sample .cec Files
Sample 1
The following code example shows all of the important keywords known to the .cec parser.
CECInfo (
Name(test2.cec)
CECVersion(4.00)
GUID({EBA7FFA0-87EB-11d3-9930-00105AC7264F})
Vendor("My Company")
Description("Dens test cec file")
)
ComponentType (
Name("Dens_Child_Comp")
Description("Dens Child Feature")
GUID( {EBA7FFA0-87EB-11d3-9930-00105AC7264F} )
Vendor("Dens2 computer company")
Implementations (
Implementation (
Name("DensChild_xxxx")
Description("DensChild xxxx Feature")
GUID( {24E94E20-87EC-11d3-9930-00105AC7264F} )
Vendor("Dens2 child imp company")
Date("10/21/99")
BuildMethods (
BuildMethod (
Step( BSP )
Action(
'#BUILD(SOURCES,"$(_WINCEROOT)\public\dens\den_xxxx")' )
CPU( "x86" )
)
BuildMethod (
Step( makeimg )
CPU( "x86" )
Action( '#ENV( DENS_VAR, 1)' )
)
)
)
)
)
ComponentType (
Name("Dens_comps")
Description("Dens Features")
Group("\Dens")
GUID( {01FA62A0-858D-11d3-992E-00105AC7264F} )
Vendor("Dens computer company")
Implementations (
Implementation (
Name("Dens_i486")
Description("Dens_i486 Feature")
GUID( {B0325830-858D-11d3-992E-00105AC7264F} )
Vendor("Dens i486 company")
Date("10/19/99")
Children( Dens_Child_Comp )
BuildMethods (
BuildMethod (
Step( BSP )
CPU( "x86" )
Action(
'#BUILD(SOURCES,"$(_WINCEROOT)\public\dens\abcdefghijklmnop
qustuvwxyz\den_i486")' )
)
)
)
Implementation (
Name("Dens_SH3")
Description("Dens_SH3 Feature")
GUID( {B0325831-858D-11d3-992E-00105AC7264F} )
Vendor("Dens SH3 company")
Date("October 20,1999")
BuildMethods (
BuildMethod (
Step( BSP )
CPU( "SH3" )
Action(
'#BUILD(SOURCES,"$(_WINCEROOT)\public\dens\den_sh3")' )
)
)
)
Implementation (
Name("Dens_Default")
Description("Dens_default Feature")
GUID( {B0325832-858D-11d3-992E-00105AC7264F} )
Vendor("Dens default company")
Date("October 21,1999")
BuildMethods (
BuildMethod (
Step( BSP )
CPU( "default" )
Action(
'#BUILD(SOURCES,"$(_WINCEROOT)\public\dens\den_default")' )
)
)
)
Implementation (
Name("Dens_R4111")
Description("Dens_R4111 Feature")
GUID( {1A40ACC0-8D74-11d3-9937-00105AC7264F} )
Vendor("Dens R4111 company")
Date("October 28,1999")
BuildMethods (
BuildMethod (
Step( BSP )
CPU( "R4111" )
Action( '#BUILD(SOURCES,"$(_WINCEROOT)\r4111")' )
Action( '#BUILD(SOURCES,"$(_WINCEROOT)\r4111_comp")' )
)
)
)
Implementation (
Name("Dens_mixed")
Description("Dens_mixed Feature")
GUID( {43DBF740-9C71-11d3-9941-00105AC7264F} )
Vendor("Dens mixed company")
Date("November 16,1999")
BuildMethods (
BuildMethod (
Step( BSP )
CPU( "x86" )
Action( '#BUILD(SOURCES, "$(_WINCEROOT)\x86")' )
)
BuildMethod (
Step( BSP )
CPU( "SH3" )
Action( '#BUILD(SOURCES, "$(_WINCEROOT)\sh3")' )
)
BuildMethod (
Step( BSP )
CPU( "R4111" )
Action( '#BUILD(SOURCES, "$(_WINCEROOT)\r4111")' )
)
)
)
) // end implementations
) // end componentType
Sample 2
The following code example shows a full code sample of a .cec file.
// The necessary CECInfo block
CECInfo (
Name(example.cec)
CECVersion(4.00)
Vendor("Johnnys company")
Description("Example CEC for cec.doc")
)
// CEPC - platform video drivers ("ddi_s3v" and "ddi_vga8")...
//
ComponentType (
Name( display )
GUID( {B3509B51-F1E4-11d2-85F6-004005365450} )
Description( "CEPC Video Drivers" )
Group( "\" )
Implementations(
Implementation(
Name( ddi_s3v )
Description( "S3ViRGE driver" )
BSPPlatformDir( "CEPC" )
GUID( {B3509B57-F1E4-11d2-85F6-004005365450} )
BuildMethods(
BuildMethod(
Step( BSP )
GUID( {B3509B58-F1E4-11d2-85F6-004005365450} )
CPU( "x86" )
Action( '#ENV(BSP_NODISPLAY, "")' )
Action( '#ENV(BSP_DISPLAY_S3VIRGE, "1")' )
)
BuildMethod(
Step( makeimg )
GUID( {F7E9BEC4-1644-11d4-99D1-00105AC7264F} )
CPU( "x86" )
Action( '#ENV(BSP_NODISPLAY, "")' )
Action( '#ENV(BSP_DISPLAY_S3VIRGE, "1")' )
Action( '#ENV(CEPC_DDI_S3VIRGE, 1)' )
)
)
)
Implementation(
Name( ddi_vga8 )
Description( "VGA 8BPP driver" )
BSPPlatformDir( "CEPC" )
GUID( {B3509B59-F1E4-11d2-85F6-004005365450} )
BuildMethods(
BuildMethod(
Step( BSP )
GUID( {B3509B5A-F1E4-11d2-85F6-004005365450} )
CPU( "x86" )
Action( '#ENV(BSP_NODISPLAY, "")' )
Action( '#ENV(BSP_DISPLAY_VGA8BPP, "1")' )
)
BuildMethod(
Step( makeimg )
GUID( {F7E9BEC5-1644-11d4-99D1-00105AC7264F} )
CPU( "x86" )
Action( '#ENV(BSP_NODISPLAY, "")' )
Action( '#ENV(BSP_DISPLAY_VGA8BPP, "1")' )
Action( '#ENV(CEPC_DDI_VGA8BPP, 1)' )
)
)
)
)
)
// CEPC - wavedev...
//
ComponentType (
Name( Wavedev )
GUID ( {14C1DB2A-3DEE-4851-ABEA-C60DCB9D2ADD} )
Description( "Wavedev" )
Group( "\" )
Implementations(
Implementation(
Name( Wavedev )
Description( "Wavedev driver" )
BSPPlatformDir( "CEPC" )
GUID ( {20469435-4124-41c0-9C96-632BF395E0DF} )
BuildMethods(
BuildMethod(
Step( BSP )
GUID( {D402B4BF-A9A5-4554-828C-C46FDA5BCEF5} )
CPU( "x86" )
Action( '#ENV(IMGTINY, "")' )
Action( '#ENV(IMGNODRIVERS, "")' )
Action( '#ENV(BSP_NOAUDIO, "")' )
)
BuildMethod(
Step( makeimg )
GUID( {2E3D2543-7485-45dd-94AD-9869E330FE6C} )
CPU( "x86" )
Action( '#ENV(IMGTINY, "")' )
Action( '#ENV(IMGNODRIVERS, "")' )
Action( '#ENV(BSP_NOAUDIO, "")' )
)
)
)
)
)
For more examples of .cec files, examine the default .cec files that are installed with Platform Builder. The .cec files are installed in the <Platform Builder installation path>\Cepb\Cec directory of your Platform Builder installation.
See Also
Last updated on Friday, October 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.