Dirs and sources files in the WinCE BSP

Source: Internet
Author: User

1.Dirs file

About the dirs file, is to specify the path to compile, this earth people know. Just a brief introduction. There are three definitions as described above: Dirs,dirs_ce and Optional_dirs.

Dirs: is to specify the directory to compile.

Dirs_ce: The directory is compiled only if the source code under the directory is used for wince image files.

Optional_dirs: Specifies the directory to which you can choose to compile. For example: optional_dirs=proj1, if you want to compile the proj1 directory, you can set the build_options=proj1, and then run the build command.

As an example:

dirs= common \
            drivers \
            oal \
            bootloader

Indicates that the Common,drivers,oal and bootloader directories need to be compiled.

dirs=*

Represents the compilation of all current directories.

2.Sources file

In the wince BSP will see a lot of sources files, usually with the source code in the same directory, of course, is not absolute. These sources files are defined as macros that tell Build.exe how to compile and link when compiling the source code, tell Nmake.exe how to compile the source code, and what type of file to generate eventually.

Here is a specific description:

TARGETNAME: The name of the target file that was generated after the last compile, excluding the extension.

TargetType: The type of file that is generated. The specific values are as follows:

LIBRARY, a. lib file

Dynlink, a. dll file

program, an. exe file

ReleaseType: This macro sets the two environment variables Releasedir and Releaselibdir, which is to set the path for the compiled file to be stored. The specific values are as follows:

PLATFORM, generated files in platform\<bsp name>\<target>

Local, the generated file is under the current path

CUSTOM, the generated file is specified in the TargetPath location

MANAGED, generated files in%_projectroot%\oak\<target>\managed

OAK, SDK, DDK, generated files in%_projectroot%\oak\<target>

TargetPath: When the above Releasetype=custom, the macro specifies the path

Sourcelibs: Static link. The entity of the function is chained up to produce a copy

Targetlibs: Dynamic Link. The address of the function is chained and the library is loaded when the system executes

INCLUDES: Specifies the path to the additional header file to search for

SOURCES: Specifies the file to be compiled

Adefines: Specifies the parameters to be used by the assembler

Cdefines: Specifies the parameters to be used by the compiler

Ldefines: Specifies the parameters to be used by the connector

Rdefines: Specify parameters for Resource Compiler Rc.exe

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.