Get rid of WebFontCache
[WebKit-https.git] / Makefile.shared
1 SCRIPTS_PATH ?= ../Tools/Scripts
2
3 SET_COLOR_DIAGNOSTICS_ARG = if [[ -t 1 ]]; then COLOR_DIAGNOSTICS_ARG="COLOR_DIAGNOSTICS=YES"; fi
4 XCODE_OPTIONS = `perl -I$(SCRIPTS_PATH) -Mwebkitdirs -e 'print XcodeOptionString()' -- $(BUILD_WEBKIT_OPTIONS)` $${COLOR_DIAGNOSTICS_ARG} $(ARGS)
5
6 ifneq (,$(SDKROOT))
7         XCODE_OPTIONS += SDKROOT=$(SDKROOT)
8 endif
9
10 ifneq (,$(ARCHS))
11         XCODE_OPTIONS += ARCHS="$(ARCHS)"
12         XCODE_OPTIONS += ONLY_ACTIVE_ARCH=NO
13 endif
14
15 DEFAULT_VERBOSITY := $(shell defaults read org.webkit.BuildConfiguration BuildTranscriptVerbosity 2>/dev/null || echo "default")
16 VERBOSITY ?= $(DEFAULT_VERBOSITY)
17
18 ifeq ($(VERBOSITY),default)
19 OUTPUT_FILTER = grep -v setenv
20 else
21 ifeq ($(VERBOSITY),noisy)
22 OUTPUT_FILTER = cat
23 else
24 OUTPUT_FILTER = $(SCRIPTS_PATH)/filter-build-webkit
25 endif
26 endif
27
28 export DSYMUTIL_NUM_THREADS = $(shell sysctl -n hw.activecpu)
29
30 all:
31         ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
32
33 debug d development dev develop: force
34         $(SCRIPTS_PATH)/set-webkit-configuration --debug
35         ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
36
37 release r deployment dep deploy: force
38         $(SCRIPTS_PATH)/set-webkit-configuration --release
39         ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
40
41 analyze:
42         $(SCRIPTS_PATH)/set-webkit-configuration --release
43 ifndef PATH_TO_SCAN_BUILD
44         ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) RUN_CLANG_STATIC_ANALYZER=YES | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
45 else
46         ( $(SET_COLOR_DIAGNOSTICS_ARG); $(PATH_TO_SCAN_BUILD) xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
47 endif
48
49 clean:
50         ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
51
52 force: ;