Home » Language IDEs » C / C++ IDE (CDT) » Launch external translator program according file extension(How can I launch flex/bison(p.ex.) automatically during build)
Launch external translator program according file extension [message #1828351] |
Mon, 08 June 2020 09:30 |
Charly Clément Messages: 5 Registered: June 2020 |
Junior Member |
|
|
My problem is yet simple, but I cannot find any pertinent information about it :
According the extension of a file in a CDT C/C++ project, I would like to launch a specific program.
My goal is to launch flex, bison, with parameters arising from current filename, current project location,... (for which variables exists), for files in my project, which have respectively the extensions ".L" an ".Y" (by example).
So simple that I ask me if I am missing something obvious.
Thanks in advance for your answers,
Charly C.
|
|
| |
Re: Launch external translator program according file extension [message #1828377 is a reply to message #1828361] |
Mon, 08 June 2020 16:22 |
Charly Clément Messages: 5 Registered: June 2020 |
Junior Member |
|
|
Hello David,
Thanks for your answer.
I effectively looked around the "External Tools" and (pre-)"Build Step". I probably could solve my need with one of them.
However, I use "Managed Build", and precisely because of that, I expected to find a more "Nice to Have" functionality, allowing to configure the following behavior :
1) When I build the whole project, the builder automatically calls the external program, according to the file extension, as pre or post build.
2) When I "right-click" on such a file in the project browser, the usual contex-menu allow me to "Build Selected File", calling the adequate external program.
What is your opinion ? :
- Does a such behavior just ready and easy to configure in CDT ?
- Which piece of Eclipse Software handles this kind of behavior (CDT, Builder, Toolchain,....) ?
- What would involve to realize such functionality ?
Remark / Need Help :
I am totally confused with these notions of Builder, Toolchain, CDT, extensions,....
Who implements what ? Who calls what ? What involves customizing / extending any of them ?
Eclipse offers such an amount of tools, apis, frameworks, to help realize extensions, plugins, scripting,.... that I am totally lost.
Thanks in advance if somebody has time and patience for explain me the "essential" about my Interrogations.
|
|
| |
Goto Forum:
Current Time: Wed Apr 24 14:52:33 GMT 2024
Powered by FUDForum. Page generated in 0.02340 seconds
|