Generate source code to a subdirectory#16
Generate source code to a subdirectory#16gchauvet wants to merge 11 commits intogobo-eiffel:masterfrom
Conversation
|
|
Point 4: I'm agree with you, I'm reworking my patch to be backward compatible. |
|
The reason why I had put the script generation in
Now I see that for a given C generator class, you might want to provide different ways to generate scripts. I'm not sure the script generation should be migrated to the
Or even better if we want to be able to generate several kinds of scripts for the same C generation:
Of course, the C generator should have a default script generator is none is provided. The default should probably generate the same kind of scripts as now. Going that way,
|
|
As you mentioned, this is the best approach to use the delegation design pattern. We can imagine something like this :
For option switch: gec --subsystem=batch|cmake (default batch) ...IMO, we can also delegate execution plan to this delegate class. |
|
Shouldn't |
|
Yes |
|
I need to add cd {output directory} in Unix batch file, because system call create a new process "sh -c" who don't care of current working directory. I don't know if this issue occurs under Windows. |
This reverts commit 0a1d91f.
|
Changes are fine under Linux. I will test under Windows (seven) this weekend. |
This is a new proposal about C output destination : instead to have all generated files in the same root eiffel project folder, this patch create a subdirectory called ".gec".
The output executable file remains in the root directory.