Build configurations

Build configuration is a list of files which will be built among all the files included in a particular project.

Once created, every project has one - default - build configuration that includes all the files of this project:

Whoever, you may create several build configurations of one project so as to build different sets of files.

Adding and removing build configurations

You can view, select, add, and remove the existing build configurations in the properties of your project:

To create a new build configuration, please follow these steps.

Step 6. After you press OK, your new configuration is selected and you can edit it and build the project.

When you build the project in any of the ways described here, the selected build configuration is built.

All the non-default build configurations, are listed in the .fglproject file of the project:

...

<item id="com.querix.fgl.core.buildconfigurations">

    <buildConfiguration active="true" name="test_radio"/>

</item>

...

To remove a non-default build configuration, please follow these steps.

Default build configuration CANNOT be deleted.

Adding and excluding files from the build configuration

Default configurations cannot be changed.

You can add and exclude files from non-default build configurations according to your development needs.

Thus, there are three state a file can have as regards any non-default build configuration:

All the files added or excluded from the non-default build configuration, are listed in the .fgltarget file of the program:

...

<buildConfiguration name="test_radio">

  <additions>

    <sources type="fgl">

      <file location="radio_v1.4gl"/>

    </sources>

  </additions>

  <exclusions>

    <sources type="fgl">

      <file outputLocation="" location="radio_v0.4gl"/>

    </sources>

  </exclusions>

</buildConfiguration>

...

Adding files to the build configuration

To add an existing file to a build configuration, please follow these steps.

 

You can also create a totally new file and add it the non-default configuration:

Step 1. Create a new source file as described here (Steps 1-2).

Excluding files from the build configuration

How to exclude a file from a build configuration depends on whether this build configuration is a default or non-default one.

There are two ways to exclude a file that exists in both default and non-default build configurations:

To exclude a file that exists only in a non-default build configuration, select Delete in its context menu or press Delete on your keyboard. In the opened message window, press Yes:

Do not check out the checkbox, Also delete source file <> from the file system.

If you do, you will lose this file because it will be deleted.

All the excluded files can be brought back to the build configuration.

To do this, select Unexclude in the context menu of the file:

 

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.