is it possible to convert through command line Visual studio project to the cbp?
(codeblocks --help does not show such possibility)
Not really. There is no 1:1 silent conversion, but you are guided through the process for good reasons. So its interactive, but what you can do it to open the WS via command line - this might work (never tried though). Then you can batch-process the projects interactively.
no it does not work, because of the:
CodeBlocksApp::ParseCmdLine
else if (ft == ftCodeBlocksWorkspace
else if (ft == ftCodeBlocksProject statements.
I've tried to modify sources in the straight way:
extended the if statements with the ftMSVC6Project, ftMSVC6Workspace and etc.
A.
At least with the attached patch msw project/workspace is opened in the codeblocks with the messages:
codeblocks.exe my_project.dsp
1. Are you sure do you want to OWERWRITE it?
2. Select Compiler
3. Select configurations
4. 1. Are you sure do you want to OWERWRITE it? (again same message)
5. Select Compiler (again same message)
6. Select configurations (again same message)
B.
if I try this:
codeblocks.exe --build my_project.dsp
MainFrame::OpenGeneric do not receive the converted project and does the default call:
cbMimePlugin* plugin = Manager::Get()->GetPluginManager()->GetMIMEHandlerForFile(filename);
basically I want to have something like: (in the silent way)
codeblocks.exe --convert my_project.dsp my_project.cbp
Probably I am in the wrong way with the modifications in the CodeBlocksApp::ParseCmdLine.
I think ProjectImporter plugin somehow should be modified to parse the command line parameters.
Could you give me some hints howto parse command line inside the plugin?