How to set default compiler options for XE2?

I cannot figure out how to change the default build / compilation settings. By default, the default check box is selected in the lower left of the project settings dialog box. The documentation states:

The Default checkbox that appeared at the lower edge of many Project Options pages has been removed from the product. If you want to specify options as the default for multiple projects, the suggested alternative is to use option sets instead.

I am going to bypass Parameter Sets , Configuration Manager , etc. Is this possible? What does it mean to “set default options for several projects"? If I have several projects, this means that these projects and their options exist, how can I set a default value for an already installed one? How about new projects?

+8
delphi delphi-xe2 build-settings
source share
2 answers

This feature has really disappeared, and in this product there is nothing like it to my knowledge. I think the best you can do is the following:

  • Create a new project.
  • Change the project settings to what you want.
  • Change something else in the default project that you don’t like, for example { Private declarations } .
  • Add this project to the repository.
  • use file | New | Configure to move this project template to File | New menu for easy access.
+6
source share

Project->Options->Target . You can configure the basic configuration, and then provide various parameters that differ from the base for Debug and Release . You can also create custom parameter sets, which means they are different from the standard Debug and Release . You may also have different configurations based on different purposes (VCL application. Debug build has different capabilities than Debug application for FMX applications, etc.).

To change the default settings, the definition of "default" begins first. You can start with the “basic configuration” using Project->Options->Delphi Compiler , and then select the All Configuration target. You can improve it a bit by changing the basic configuration for Debug and Release configurations. You can also define your own parameter sets using the Save button next to the Target list.

Your specific question about “setting options as the default value for multiple projects” means base configuration . From there, you refine these basic parameters to give you debug settings and release parameters (which can also be saved as the original defaults and refined for each project).

So, for a specific answer, you can change the default value by changing the base configuration , or by specifying by changing the Debug or Release configurations that are inherited from this base, depending on what your final result should be and what you are trying to accomplish.

+2
source share

All Articles