2.11.2 Set build options at the file level

You can individually set compile and assemble options for each source file added to the project.

(1)

When setting compile options for a C source file

Select a C source file on the project tree and select the [Build Settings] tab on the Property panel. In the [Build] category, if you select [Yes] on the [Set individual compile option] property, the Message Dialog Box is displayed.

Figure 2.69

[Set individual compile option] Property

Figure 2.70

Message Dialog Box

 

If you click the [Yes] button in the dialog box, the [Individual Compile Options(C)] tab will be displayed.

Figure 2.71

Property Panel: [Individual Compile Options(C)] Tab

 

You can set compile options for the C source file by setting the necessary properties in this tab. Note that this tab takes over the settings of the [Compile Options] tab by default.

(2)

When setting compile options for a C++ source file

Select a C++ source file on the project tree and select the [Build Settings] tab on the Property panel. In the [Build] category, if you select [Yes] on the [Set individual compile option] property, the Message Dialog Box is displayed.

Figure 2.72

[Set individual compile option] Property

Figure 2.73

Message Dialog Box

 

If you click the [Yes] button in the dialog box, the [Individual Compile Options(C++)] tab will be displayed.

Figure 2.74

Property Panel: [Individual Compile Options(C++)] Tab

 

You can set compile options for the C++ source file by setting the necessary properties in this tab. Note that this tab takes over the settings of the [Compile Options] tab by default.

(3)

When setting assemble options for an assembler source file

Select an assembler source file on the project tree and select the [Build Settings] tab on the Property panel. In the [Build] category, if you select [Yes] on the [Set individual assemble option] property, the Message Dialog Box is displayed.

Figure 2.75

[Set individual assemble option] Property

Figure 2.76

Message Dialog Box

 

If you click the [Yes] button in the dialog box, the [Individual Assemble Options] tab will be displayed.

Figure 2.77

Property Panel: [Individual Assemble Options] Tab

 

You can set assemble options for the assembler source file by setting the necessary properties in this tab. Note that this tab takes over the settings of the [Assemble Options] tab by default.