Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
html build log file
tiwag:
1. the buildlog file doesn't prepend the project's name when building with batchbuild
2. would it be possible to change the buildlog so that it always contain the full commandline in the log,
even when the IDE buildlog is set to any other format ?
thanks & brgds
killerbot:
--- Quote from: tiwag on October 24, 2006, 10:20:18 am ---
1. the buildlog file doesn't prepend the project's name when building with batchbuild
2. would it be possible to change the buildlog so that it always contain the full commandline in the log,
even when the IDE buildlog is set to any other format ?
thanks & brgds
--- End quote ---
I can confirm issue 1, The Don is aware of it.
Hehe, patiently waiting ;-)
tiwag:
i used the following patch for testing the behaviour of 2.
--- Code: ---Index: trunk/src/plugins/compilergcc/compilergcc.cpp
===================================================================
--- trunk/src/plugins/compilergcc/compilergcc.cpp (revision 3133)
+++ trunk/src/plugins/compilergcc/compilergcc.cpp (working copy)
@@ -1030,6 +1030,10 @@
// msgMan->Log(m_PageIndex, _T("[%u] %s"), procIndex, cmd->message.c_str());
LogMessage(cmd->message);
}
+ if (!cmd->command.IsEmpty())
+ {
+ LogMessage(_T(">>>") + cmd->command,false,false,false,true);
+ }
if (cmd->command.IsEmpty())
{
--- End code ---
which results in pretty nice logs:
IDE build log:
--- Code: ----------------- Build: default in datetime ---------------
Compiling: dt.rc
Compiling: main.cpp
Compiling: controls.cpp
Linking executable: dt.exe
Process terminated with status 0 (0 minutes, 2 seconds)
0 errors, 0 warnings
Build log saved as: D:\Devel\_projects\datetime\datetime_build_log.html
--- End code ---
build_log.html file
--- Code: ---Build started on: 24-10-2006 at 12:02.19
Build ended on: 24-10-2006 at 12:02.21
-------------- Build: default in datetime ---------------
Compiling: dt.rc
>>>windres.exe -i dt.rc -J rc -o .objs\dt.res -O coff -ID:\MinGW\include
Compiling: main.cpp
>>>mingw32-g++.exe -Os -Wall -g -ID:\MinGW\include -c main.cpp -o .objs\main.o
Compiling: controls.cpp
>>>mingw32-g++.exe -Os -Wall -g -ID:\MinGW\include -c controls.cpp -o .objs\controls.o
Linking executable: dt.exe
>>>mingw32-g++.exe -LD:\MinGW\lib -o dt.exe .objs\main.o .objs\controls.o .objs\dt.res -mwindows
Process terminated with status 0 (0 minutes, 2 seconds)
0 errors, 0 warnings
--- End code ---
but this solution works only when compiler logging is set to "Task description"
@mandrav
what do you think about changing the compiler logging output format in general,
so that full compiler logging always shows the messages from the Task description and the commandline,
as shown in the above example for the buildlog.html file ?
brgds
mandrav:
Both issues are fixed.
tiwag:
--- Quote from: mandrav on October 24, 2006, 01:04:41 pm ---Both issues are fixed.
--- End quote ---
why do i get a "unnamed_build_log.html" file when i batch-build a project ??
the project's name should be known i guess :P
Navigation
[0] Message Index
[#] Next page
Go to full version