Title: [106634] trunk
- Revision
- 106634
- Author
- [email protected]
- Date
- 2012-02-02 23:44:38 -0800 (Thu, 02 Feb 2012)
Log 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:
Modified Paths
Diff
Modified: trunk/ChangeLog (106633 => 106634)
--- trunk/ChangeLog 2012-02-03 07:37:09 UTC (rev 106633)
+++ trunk/ChangeLog 2012-02-03 07:44:38 UTC (rev 106634)
@@ -1,3 +1,31 @@
+2012-02-02 Mark Rowe <[email protected]>
+
+ <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:
+
2012-02-02 Rakesh KN <[email protected]>
hidden attribute on <input type=file /> suppresses the file selection dialog
Modified: trunk/Makefile.shared (106633 => 106634)
--- trunk/Makefile.shared 2012-02-03 07:37:09 UTC (rev 106633)
+++ trunk/Makefile.shared 2012-02-03 07:44:38 UTC (rev 106634)
@@ -1,18 +1,31 @@
SCRIPTS_PATH ?= ../Tools/Scripts
XCODE_OPTIONS = `perl -I$(SCRIPTS_PATH) -Mwebkitdirs -e 'print XcodeOptionString()'` $(ARGS)
+DEFAULT_VERBOSITY := $(shell defaults read org.webkit.BuildConfiguration BuildTranscriptVerbosity 2>/dev/null || echo "default")
+VERBOSITY ?= $(DEFAULT_VERBOSITY)
+
+ifeq ($(VERBOSITY),default)
+OUTPUT_FILTER = grep -v setenv
+else
+ifeq ($(VERBOSITY),noisy)
+OUTPUT_FILTER = cat
+else
+OUTPUT_FILTER = $(SCRIPTS_PATH)/filter-build-webkit
+endif
+endif
+
all:
- ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
+ ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
debug d development dev develop: force
$(SCRIPTS_PATH)/set-webkit-configuration --debug
- ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
+ ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
release r deployment dep deploy: force
$(SCRIPTS_PATH)/set-webkit-configuration --release
- ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
+ ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
clean:
- ( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} )
+ ( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
force: ;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes