How about?<br><br>make | grep -v '^Scanning' | sed -e 's/^.*\///'<br><br>Juan<br><br><div class="gmail_quote">On Sun, Dec 19, 2010 at 11:49 PM, Michael Wild <span dir="ltr"><<a href="mailto:themiwi@gmail.com">themiwi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">On 12/20/2010 01:01 AM, Campbell Barton wrote:<br>
> Hi, I'm STILL trying to have CMake makefiles replace Blender's hand<br>
> crafted makefiles.<br>
><br>
> Now the main sticking point with 2 other developers is they don't like<br>
> CMakes output, as its overly verbose.<br>
><br>
> I realize CMake doesn't need to bend to the whim of all users but<br>
> wondering if we could have something like RULE_BRIEF_OUTPUT<br>
><br>
> Rather then printing progress and full path for all files it could<br>
> skip percentage and use a relative path for each C file.<br>
><br>
> I can try submitting a patch but would first like to know if this<br>
> would be acceptable.<br>
><br>
> how it looks now...<br>
> --- snip<br>
> Scanning dependencies of target bf_editor_animation<br>
> [ 0%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_channels_defines.c.o<br>
> [ 0%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_channels_edit.c.o<br>
> [ 0%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_deps.c.o<br>
> [ 0%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_filter.c.o<br>
> [ 0%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_ipo_utils.c.o<br>
> [ 0%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/anim_markers.c.o<br>
> [ 0%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/drivers.c.o<br>
> [ 0%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/fmodifier_ui.c.o<br>
> [ 1%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframes_draw.c.o<br>
> [ 1%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframes_edit.c.o<br>
> [ 1%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframes_general.c.o<br>
> [ 1%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyframing.c.o<br>
> [ 1%] Building C object<br>
> source/blender/editors/animation/CMakeFiles/bf_editor_animation.dir/keyingsets.c.o<br>
> Linking C static library ../../../../lib/libbf_editor_animation.a<br>
> [ 1%] Built target bf_editor_animation<br>
> Scanning dependencies of target bf_editor_armature<br>
> [ 1%] Building C object<br>
> source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/armature_ops.c.o<br>
> [ 1%] Building C object<br>
> source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/editarmature.c.o<br>
> [ 1%] Building C object<br>
> source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/editarmature_generate.c.o<br>
> [ 1%] Building C object<br>
> source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/editarmature_retarget.c.o<br>
> [ 1%] Building C object<br>
> source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/editarmature_sketch.c.o<br>
> [ 1%] Building C object<br>
> source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/poseSlide.c.o<br>
> [ 2%] Building C object<br>
> source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/poseUtils.c.o<br>
> [ 2%] Building C object<br>
> source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/poselib.c.o<br>
> [ 2%] Building C object<br>
> source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/poseobject.c.o<br>
> [ 2%] Building C object<br>
> source/blender/editors/armature/CMakeFiles/bf_editor_armature.dir/reeb.c.o<br>
> Linking C static library ../../../../lib/libbf_editor_armature.a<br>
> [ 2%] Built target bf_editor_armature<br>
> Scanning dependencies of target bf_editor_curve<br>
> [ 2%] Building C object<br>
> source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/curve_ops.c.o<br>
> [ 2%] Building C object<br>
> source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/editcurve.c.o<br>
> [ 2%] Building C object<br>
> source/blender/editors/curve/CMakeFiles/bf_editor_curve.dir/editfont.c.o<br>
> Linking C static library ../../../../lib/libbf_editor_curve.a<br>
> [ 2%] Built target bf_editor_curve<br>
> [ 5%] Built target bf_editor_datafiles<br>
> ---<br>
><br>
> What it could look like...<br>
> --- snip<br>
> Entering 'source/blender/editors/animation'<br>
> anim_channels_defines.c<br>
> anim_channels_edit.c<br>
> anim_deps.c<br>
> anim_filter.c<br>
> anim_ipo_utils.c<br>
> anim_markers.c<br>
> drivers.c<br>
> fmodifier_ui.c<br>
> keyframes_draw.c<br>
> keyframes_edit.c<br>
> keyframes_general.c<br>
> keyframing.c<br>
> keyingsets.c<br>
> Linking C static library ../../../../lib/libbf_editor_animation.a<br>
> [ 1%] Built target bf_editor_animation<br>
> Entering 'source/blender/editors/armature'<br>
> armature_ops.c<br>
> editarmature.c<br>
> editarmature_generate.c<br>
> editarmature_retarget.c<br>
> editarmature_sketch.c<br>
> poseSlide.c<br>
> poseUtils.c<br>
> poselib.c<br>
> poseobject.c<br>
> reeb.c<br>
> Linking C static library ../../../../lib/libbf_editor_armature.a<br>
> [ 2%] Built target bf_editor_armature<br>
> Entering 'source/blender/editors/curve'<br>
> curve_ops.c<br>
> editcurve.c<br>
> editfont.c<br>
> Linking C static library ../../../../lib/libbf_editor_curve.a<br>
> [ 2%] Built target bf_editor_curve<br>
> [ 5%] Built target bf_editor_datafiles<br>
> ---<br>
><br>
<br>
IMHO, I think the abbreviated output like you show it is pretty much<br>
useless in parallel builds as it gets all jumbled up. No telling to<br>
which target a certain output line belongs. I'd prefer<br>
<br>
Entering source/blender/editors/animation<br>
Scanning dependencies of target bf_editor_animation<br>
CMakeFiles/bf_editor_animation.dir/anim_channels_defines.c.o<br>
CMakeFiles/bf_editor_animation.dir/anim_channels_edit.c.o<br>
CMakeFiles/bf_editor_animation.dir/anim_deps.c.o<br>
CMakeFiles/bf_editor_animation.dir/anim_filter.c.o<br>
CMakeFiles/bf_editor_animation.dir/anim_ipo_utils.c.o<br>
CMakeFiles/bf_editor_animation.dir/anim_markers.c.o<br>
CMakeFiles/bf_editor_animation.dir/drivers.c.o<br>
CMakeFiles/bf_editor_animation.dir/fmodifier_ui.c.o<br>
CMakeFiles/bf_editor_animation.dir/keyframes_draw.c.o<br>
CMakeFiles/bf_editor_animation.dir/keyframes_edit.c.o<br>
CMakeFiles/bf_editor_animation.dir/keyframes_general.c.o<br>
CMakeFiles/bf_editor_animation.dir/keyframing.c.o<br>
CMakeFiles/bf_editor_animation.dir/keyingsets.c.o<br>
Linking C static library ../../../../lib/libbf_editor_animation.a<br>
[ 1%] Built target bf_editor_animation<br>
Entering source/blender/editors/armature<br>
Scanning dependencies of target bf_editor_armature<br>
CMakeFiles/bf_editor_armature.dir/armature_ops.c.o<br>
CMakeFiles/bf_editor_armature.dir/editarmature.c.o<br>
CMakeFiles/bf_editor_armature.dir/editarmature_generate.c.o<br>
CMakeFiles/bf_editor_armature.dir/editarmature_retarget.c.o<br>
CMakeFiles/bf_editor_armature.dir/editarmature_sketch.c.o<br>
CMakeFiles/bf_editor_armature.dir/poseSlide.c.o<br>
CMakeFiles/bf_editor_armature.dir/poseUtils.c.o<br>
CMakeFiles/bf_editor_armature.dir/poselib.c.o<br>
CMakeFiles/bf_editor_armature.dir/poseobject.c.o<br>
CMakeFiles/bf_editor_armature.dir/reeb.c.o<br>
Linking C static library ../../../../lib/libbf_editor_armature.a<br>
[ 2%] Built target bf_editor_armature Scanning dependencies of target<br>
bf_editor_curve<br>
Entering source/blender/editors/curve<br>
CMakeFiles/bf_editor_curve.dir/curve_ops.c.o<br>
CMakeFiles/bf_editor_curve.dir/editcurve.c.o<br>
CMakeFiles/bf_editor_curve.dir/editfont.c.o<br>
Linking C static library ../../../../lib/libbf_editor_curve.a<br>
[ 2%] Built target bf_editor_curve<br>
[ 5%] Built target bf_editor_datafiles<br>
<br>
I.e., the output object-file names are relative to the<br>
CMAKE_CURRENT_BINARY_DIR. This way you still can tell to which target a<br>
output line belongs, although in parallel builds you still lose the<br>
directory information.<br>
<br>
But honestly, I think that CMake is by no means too verbose. Your<br>
proposal wouldn't change the number of lines displayed anyway, and for<br>
large libraries with many source files it makes sense to have the<br>
percentage there. Also, full paths are unambiguous.<br>
<br>
<br>
My 2c<br>
<br>
Michael<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>