Links in new flakiness dashboard could benefit from tooltips
[WebKit-https.git] / Makefile.shared
1 SCRIPTS_PATH ?= ../Tools/Scripts
2
3 XCODE_OPTIONS = `perl -I$(SCRIPTS_PATH) -Mwebkitdirs -e 'print XcodeOptionString()' -- $(BUILD_WEBKIT_OPTIONS)` $(ARGS)
4
5 ifneq (,$(SDKROOT))
6         XCODE_OPTIONS += SDKROOT=$(SDKROOT)
7 endif
8
9 ifneq (,$(ARCHS))
10         XCODE_OPTIONS += ARCHS="$(ARCHS)"
11         XCODE_OPTIONS += ONLY_ACTIVE_ARCH=NO
12 endif
13
14 DEFAULT_VERBOSITY := $(shell defaults read org.webkit.BuildConfiguration BuildTranscriptVerbosity 2>/dev/null || echo "default")
15 VERBOSITY ?= $(DEFAULT_VERBOSITY)
16
17 ifeq ($(VERBOSITY),default)
18 OUTPUT_FILTER = grep -v setenv
19 else
20 ifeq ($(VERBOSITY),noisy)
21 OUTPUT_FILTER = cat
22 else
23 OUTPUT_FILTER = $(SCRIPTS_PATH)/filter-build-webkit
24 endif
25 endif
26
27 all:
28         ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
29
30 debug d development dev develop: force
31         $(SCRIPTS_PATH)/set-webkit-configuration --debug
32         ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
33
34 release r deployment dep deploy: force
35         $(SCRIPTS_PATH)/set-webkit-configuration --release
36         ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
37
38 clean:
39         ( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
40
41 force: ;