2023-04-04 12:45:30 +01:00
|
|
|
# Executables
|
|
|
|
|
|
|
|
|
|
## Short introduction
|
|
|
|
|
|
|
|
|
|
This implements a functionality to query the mains and the executables for a multi targets project.
|
|
|
|
|
|
2023-10-10 16:42:28 +03:00
|
|
|
## Capabilities
|
2023-04-04 12:45:30 +01:00
|
|
|
|
|
|
|
|
We provide the Build and Run tasks for specific targets in a GPR Projects.
|
|
|
|
|
|
|
|
|
|
To check these tasks :
|
|
|
|
|
- click : `Ctrl + Shift + P `.
|
|
|
|
|
- Select `Run Tasks` , then Select `GPR Tasks`.
|
|
|
|
|
|
|
|
|
|
## Change description
|
|
|
|
|
|
2023-10-10 16:42:28 +03:00
|
|
|
We introduce two commands, the first one:
|
2023-04-04 12:45:30 +01:00
|
|
|
|
2023-10-10 16:42:28 +03:00
|
|
|
command: `als-mains`
|
2023-04-04 12:45:30 +01:00
|
|
|
|
|
|
|
|
Which provides the mains for the project, with a response type:
|
|
|
|
|
|
2025-01-29 13:53:17 +02:00
|
|
|
```typescript
|
2023-10-10 16:42:28 +03:00
|
|
|
type GlsMainResult = string[];
|
2023-04-04 12:45:30 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The second one is:
|
|
|
|
|
|
2023-10-10 16:42:28 +03:00
|
|
|
command: `als-executables`
|
2023-04-04 12:45:30 +01:00
|
|
|
|
|
|
|
|
Which provides the executables for the project, with a response type:
|
|
|
|
|
|
2025-01-29 13:53:17 +02:00
|
|
|
```typescript
|
2023-10-10 16:42:28 +03:00
|
|
|
type GlsExecutableResult = string[];
|
2023-04-04 12:45:30 +01:00
|
|
|
```
|