Integration and Construction Guide (9)

zhaozj2021-02-12  146

1.1 Implementation of project components

The project itself is different from the third-party development package, and the unified directory structure can be used directly, and the source code must be included in the configuration management, and the fine-grained version control is required.

In response to the above features, the source code structure organization of the component to the component is shown in the following figure:

table of Contents

Description

Note

build

Build a script and IDE project file

Incorrecting configuration management

Include

The public header file (ie interface) directory of the component, depending on its component, will add a header file to its header file to contain the lookup path by setting the environment variable.

Incorrecting configuration management

SRC

Source code of the component, including private header files

Incorrecting configuration management

DOC

User reference document

Incorrecting configuration management

Test

Verify that the component is successfully compiled, installed test code

Incorrecting configuration management

Lib

Components ultimately provide a static library and dynamic library to the project other components

It is usually generated by the build script in the compilation step.

bin

executable file

It is usually generated by the build script in the compilation step.

Build a script to perform steps:

First, initialization (-init) is performed, ready to compile tool configuration; execute clear work (Clean), get clean work space; complete build preparation (-PREP), create some temporary directory and target directory (lib); automatic compilation ( Autobuild, generate the target library in the lib directory, generate executables in the bin directory; turn on the installation process (INSTALL), set an environment variable to point to the current root directory of this development package; Test Build, generate test execution File; Execute Test (TEST), the verification component is installed successfully, using its components can be properly compiled, and can be tested.

转载请注明原文地址:https://www.9cbs.com/read-6155.html

New Post(0)