Makefile.shared 1.2 KB

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