How does eclipse contain multiple target files in a project?

1. Background

Generally speaking, one of our projects is one target file, but sometimes we also need to include two or more target files in one project. For example, a project needs to have an app target file and a bootloader target file. Their underlying library files all use the same set, and we can put them into one project to manage them, which is more convenient. Next we will see how to operate it under eclipse.

2. Eclipse configures multiple target engineering processes

Multiple target files can be created here, and each target file can have its own configuration parameters.

Add a new target file (the illustration is just a reminder, what I actually added is bootld), the parameters do not use the parameters of the previous target file (header file path, etc.), reconfiguration, different target projects require different files, Unnecessary files should also be blocked again.

Through this switch, it will be recompiled every time you switch.

Finally there are two compilation output files.

3. How to switch between different projects

3.1 Through shortcut icon

3.2 Via drop-down option list

Guess you like

Origin blog.csdn.net/Damon_Sandy/article/details/131043352