Hi all,
Currently I'm trying to adapt it to Windows too.
The problem is the jam configuration of these projects uses multiple raw multiline commands (like in .bat), and ninja uses CreateProcess for Windows.
For example:
Rule one
{
MakeSomething $(<) ;
}
actions MakeSomething
{
set VAR=1
if exist $(<) touch $(<:D)/*$(<:S)
some_cmd
....
etc
}
These commands could be quite long.
The question is what's the best way for creating rules for something like this.
Only way that I can think right now is using rspfiles. `rspfile_content` will contain the script, rspfile=one.bat, and the command like 'cmd /c one.bat' will run it.
For linux I join the commands to one big one liner and that approach works well. But it's
not possible with Windows because of limitations.
From this a new question arises, is it possible to add an escape sequence like $\n but which will write real '\n' to the file, so I don't need to create one liners.