AdaCore / gnatstudio

GNAT Studio is a powerful and lightweight IDE for Ada and SPARK.
399 stars 52 forks source link

Feature suggestion: In Preferences > Build: new free field to use other utility than gnatmake or gprbuild #149

Closed sowebio closed 1 year ago

sowebio commented 1 year ago

Instead of ( ) Gnatmake (o) Gprbuild

Suggests Avoir: ( ) Gnatmake (o) Gprbuild ( ) [ free field ]

Indeed, several of us use stubs that do things before and after the launch of Gprbuild. We have a stub that beeps at the end of the compile and then beeps after transferring the binary via scp to a url specified via an environment variable in GNAT Studio... In the current state of things we rename gprbuild to gprbuil_org and our stub to gprbuild which will run gprbuild_org. This workaround is not very clean.

ogorodnik commented 1 year ago

Hello, First of all in the Edit/Preferences menu item in the Build targets tab you have predefined targets like "Build all" where Target model can be set to "make" and you will be able to use a makefile. But it is more convenient to define your own Target model. In this case you will be able to define even python script to control building. More information about defining new build target can be found in GNAT Stuido documentation, section 15.5.21 "Customizing Build Targets and Models".

sowebio commented 1 year ago

Le 12/01/2023 à 14:18, Andry Ogorodnik a écrit :

Thanks Andry, I will follow your advice :)

Hello, First of all in the Edit/Preferences menu item in the Build targets tab you have predefined targets like "Build all" where Target model can be set to "make" and you will be able to use a makefile. But it is more convenient to define your own Target model. In this case you will be able to define even python script to control building. More information about defining new build target can be found in GNAT Stuido documentation, section 15.5.21 "Customizing Build Targets and Models".

— Reply to this email directly, view it on GitHub https://github.com/AdaCore/gnatstudio/issues/149#issuecomment-1380341710, or unsubscribe https://github.com/notifications/unsubscribe-auth/AITO6QJCGSTLJ2TUIVJWOI3WSAABVANCNFSM6AAAAAATZB7MKE. You are receiving this because you authored the thread.Message ID: @.***>

-- Stéphane Rivière Ile d'Oléron - France