Changeset 106634 in webkit


Ignore:
Timestamp:
Feb 2, 2012 11:44:38 PM (12 years ago)
Author:
mrowe@apple.com
Message:

<http://webkit.org/b/77717> Makefile should provide control over output verbosity

Allow the filtering of the output of our Makefile to be configured via a user default
and overriden via a command-line argument to make.

The Makefile takes the verbosity from BuildTranscriptVerbosity default in the
org.webkit.BuildConfiguration domain. The supported values are "default", "quiet"
and "noisy". "default" maintains the existing behavior of only filtering out
the setenv lines from Xcode's shell script build phases. "quiet" filters all output
through filter-build-webkit. "noisy" provides unfiltered output. The verbosity can
be overriden for a single invocation of make by specifying the VERBOSITY variable
on the make command line.

To always get full output:
defaults write org.webkit.BuildConfiguration BuildTranscriptVerbosity noisy

To always get filtered ouptut:
defaults write org.webkit.BuildConfiguration BuildTranscriptVerbosity quiet

To get full output for a single build:
make VERBOSITY=noisy

Reviewed by Dan Bernstein.

  • Makefile.shared:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r106538 r106634  
     12012-02-02  Mark Rowe  <mrowe@apple.com>
     2
     3        <http://webkit.org/b/77717> Makefile should provide control over output verbosity
     4
     5        Allow the filtering of the output of our Makefile to be configured via a user default
     6        and overriden via a command-line argument to make.
     7
     8        The Makefile takes the verbosity from BuildTranscriptVerbosity default in the
     9        org.webkit.BuildConfiguration domain. The supported values are "default", "quiet"
     10        and "noisy". "default" maintains the existing behavior of only filtering out
     11        the setenv lines from Xcode's shell script build phases. "quiet" filters all output
     12        through filter-build-webkit. "noisy" provides unfiltered output. The verbosity can
     13        be overriden for a single invocation of make by specifying the VERBOSITY variable
     14        on the make command line.
     15
     16        To always get full output:
     17        defaults write org.webkit.BuildConfiguration BuildTranscriptVerbosity noisy
     18
     19        To always get filtered ouptut:
     20        defaults write org.webkit.BuildConfiguration BuildTranscriptVerbosity quiet
     21
     22        To get full output for a single build:
     23        make VERBOSITY=noisy
     24
     25        Reviewed by Dan Bernstein.
     26
     27        * Makefile.shared:
     28
    1292012-02-02  Rakesh KN  <rakesh.kn@motorola.com>
    230
  • trunk/Makefile.shared

    r74301 r106634  
    22XCODE_OPTIONS = `perl -I$(SCRIPTS_PATH) -Mwebkitdirs -e 'print XcodeOptionString()'` $(ARGS)
    33
     4DEFAULT_VERBOSITY := $(shell defaults read org.webkit.BuildConfiguration BuildTranscriptVerbosity 2>/dev/null || echo "default")
     5VERBOSITY ?= $(DEFAULT_VERBOSITY)
     6
     7ifeq ($(VERBOSITY),default)
     8OUTPUT_FILTER = grep -v setenv
     9else
     10ifeq ($(VERBOSITY),noisy)
     11OUTPUT_FILTER = cat
     12else
     13OUTPUT_FILTER = $(SCRIPTS_PATH)/filter-build-webkit
     14endif
     15endif
     16
    417all:
    5         ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
     18        ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
    619
    720debug d development dev develop: force
    821        $(SCRIPTS_PATH)/set-webkit-configuration --debug
    9         ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
     22        ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
    1023
    1124release r deployment dep deploy: force
    1225        $(SCRIPTS_PATH)/set-webkit-configuration --release
    13         ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
     26        ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
    1427
    1528clean:
    16         ( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
     29        ( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
    1730
    1831force: ;
Note: See TracChangeset for help on using the changeset viewer.