Adding new plug-ins

Plato has four standard plug-ins for 1) an FTN95 executable, 2) an FTN95 DLL, 3) an SCC executable and 4) an SCC DLL.

[Note: you can add C++ files to an FTN95 project and you can add Fortran files to an SCC project.]

You can create additional plug-ins for other compilers or for special adaptations of FTN95 and SCC. To do this you must provide templates for the compilation and linking processes etc.

To begin, open the Options dialog and select Project templates from the left hand pane.

The check box in the list view allows you to activate the plug-in. Plug-ins that are activated appear in the dialog when a New Project is created.

The Title, Prompt and Icon fields are also used in the New Project dialog. Further information is provided in the "What's this" help.

Some of the edit fields use format specifiers (such as %f) to represent current components in a command. Details appear below. %! represents a single % symbol. Escape sequences that are not listed are reserved.

Compile:

This field is used when compilng in project mode and non-project mode (i.e. when there is no project open).

%f

the stem of the current file name (e.g. "main" in main.f90)

%e

the extension of the current file name

%b

the full path of the binary file to create

%o

the options for the current configuration and platform (see below)

%p

the full path of the current file

%d

the full path of the directory for the current file

%D

the full path of the directory for the binary file to create

[Note: Error reports are currently assumed to conform to the Silverfrost pattern.]

 

Debug etc:

These fields provide the options to use in place of %o above depending upon the current configuration and platform.

 

Link file:

This field is only used for linking when there is no project open.

%b

the full path of the binary file to link

%t

the target to create

[Note: Object files are currently assumed to have the .obj extension.]

 

Link project:

This field is only used for linking when there is a project open.

%b

a list of binary files to link separated by spaces

%t

the target to create

%L

a list of references as shown in the Project Explorer dialog.

 

Run:

This field is used in both project and non-project mode. It is normally left blank which defaults to "%t %r".

%t

the target to run

%r

the run-time parameters described below

 

Run params:

This field is used in both project and non-project mode. It contains the run-time parameters represented by %r above.

[Note: In project mode you can also set "Launch arguments" in the Project properties. You can use both. The plug-in attributes apply to all projects of this type. The Launch arguments are project dependent.]

 

Step into and Run to:

These fields are used in both project and non-project mode.

%t

the target to debug

%r

the run-time parameters described above

%p

the full path of the active file

%n

the current line number in the active file

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited