Changeset 267424 in webkit
- Timestamp:
- Sep 22, 2020, 11:37:51 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
ChangeLog (modified) (1 diff)
-
Makefile (modified) (1 diff)
-
Makefile.shared (modified) (2 diffs)
-
Source/Makefile (modified) (1 diff)
-
Source/ThirdParty/ChangeLog (modified) (1 diff)
-
Source/ThirdParty/Makefile (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/Makefile (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r267416 r267424 1 2020-09-22 Keith Rollin <krollin@apple.com> 2 3 Refactor build rules in Makefiles and Makefile.shared 4 https://bugs.webkit.org/show_bug.cgi?id=216806 5 <rdar://problem/69332316> 6 7 Reviewed by David Kilzer. 8 9 Factor out the common aspects of the build rules in Makefile.shared 10 and the various Makefiles. This allows us to more easily see what's 11 different between the various build targets, and to apply uniform 12 changes across all of the targets. 13 14 * Makefile: 15 * Makefile.shared: 16 * Source/Makefile: 17 1 18 2020-09-22 Jonathan Bedard <jbedard@apple.com> 2 19 -
trunk/Makefile
r254227 r267424 1 1 MODULES = WebKitLibraries Source Tools 2 2 3 define build_target_for_each_module 4 for dir in $(MODULES); do \ 5 ${MAKE} $@ -C $$dir PATH_FROM_ROOT=$(PATH_FROM_ROOT)/$${dir}; \ 6 exit_status=$$?; \ 7 [ $$exit_status -ne 0 ] && exit $$exit_status; \ 8 done; true 9 endef 10 3 11 all: 4 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 5 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 12 @$(build_target_for_each_module) 6 13 7 14 debug d: 8 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 9 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 15 @$(build_target_for_each_module) 10 16 11 17 release r: 12 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 13 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 18 @$(build_target_for_each_module) 14 19 15 20 release+assert ra: 16 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 17 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 21 @$(build_target_for_each_module) 18 22 19 23 testing t: 20 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 21 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 24 @$(build_target_for_each_module) 22 25 23 26 analyze: 24 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 25 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 27 @$(build_target_for_each_module) 26 28 27 29 clean: 28 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 29 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 30 @$(build_target_for_each_module) -
trunk/Makefile.shared
r267130 r267424 1 1 SCRIPTS_PATH ?= ../Tools/Scripts 2 2 3 SET_COLOR_DIAGNOSTICS_ARG = if [[ -t 1 ]]; then COLOR_DIAGNOSTICS_ARG="COLOR_DIAGNOSTICS=YES"; fi4 3 XCODE_OPTIONS = `perl -I$(SCRIPTS_PATH) -Mwebkitdirs -e 'print XcodeOptionString()' -- $(BUILD_WEBKIT_OPTIONS)` $${COLOR_DIAGNOSTICS_ARG} $(ARGS) 5 4 … … 93 92 export PATH = $(shell getconf PATH) 94 93 95 all: set_sanitizer_configuration 96 ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)' | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} ) 94 95 define set_webkit_configuration 96 $(SCRIPTS_PATH)/set-webkit-configuration $1 $(ASAN_OPTION) $(TSAN_OPTION) $(WK_LTO_OPTION) 97 endef 98 99 define invoke_xcode 100 ( \ 101 [[ -t 1 ]] && COLOR_DIAGNOSTICS_ARG="COLOR_DIAGNOSTICS=YES"; \ 102 $1 xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) $2 | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} \ 103 ) 104 endef 105 106 all: 107 @$(call set_webkit_configuration,) 108 @$(call invoke_xcode,,GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)') 97 109 98 110 debug d development dev develop: force 99 $(SCRIPTS_PATH)/set-webkit-configuration --debug $(ASAN_OPTION) $(TSAN_OPTION) $(WK_LTO_OPTION)100 ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)' | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]})111 @$(call set_webkit_configuration,--debug) 112 @$(call invoke_xcode,,GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)') 101 113 102 114 release r deployment dep deploy: force 103 $(SCRIPTS_PATH)/set-webkit-configuration --release $(ASAN_OPTION) $(TSAN_OPTION) $(WK_LTO_OPTION)104 ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)' | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]})115 @$(call set_webkit_configuration,--release) 116 @$(call invoke_xcode,,GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)') 105 117 106 118 release+assert ra: force 107 $(SCRIPTS_PATH)/set-webkit-configuration --release $(ASAN_OPTION) $(TSAN_OPTION) $(WK_LTO_OPTION)108 ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) ASSERT_ENABLED=1 $$(inherited)' | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]})119 @$(call set_webkit_configuration,--release) 120 @$(call invoke_xcode,,GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) ASSERT_ENABLED=1 $$(inherited)') 109 121 110 122 testing t: force 111 $(SCRIPTS_PATH)/set-webkit-configuration --debug $(ASAN_OPTION) $(TSAN_OPTION) $(WK_LTO_OPTION) --force-optimization-level=O3112 ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)' | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]})123 @$(call set_webkit_configuration,--debug --force-optimization-level=O3) 124 @$(call invoke_xcode,,GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)') 113 125 114 126 analyze: 115 $(SCRIPTS_PATH)/set-webkit-configuration --debug $(ASAN_OPTION) $(TSAN_OPTION) $(WK_LTO_OPTION)127 @$(call set_webkit_configuration,--debug) 116 128 ifndef PATH_TO_SCAN_BUILD 117 ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)' RUN_CLANG_STATIC_ANALYZER=YES | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]})129 @$(call invoke_xcode,,GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)' RUN_CLANG_STATIC_ANALYZER=YES) 118 130 else 119 ( $(SET_COLOR_DIAGNOSTICS_ARG); $(PATH_TO_SCAN_BUILD) xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)' | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} ) 120 endif 121 122 set_sanitizer_configuration: 123 ifneq (,$(ASAN_OPTION)) 124 $(SCRIPTS_PATH)/set-webkit-configuration $(ASAN_OPTION) 125 endif 126 ifneq (,$(TSAN_OPTION)) 127 $(SCRIPTS_PATH)/set-webkit-configuration $(TSAN_OPTION) 131 @$(call invoke_xcode,$(PATH_TO_SCAN_BUILD),GCC_PREPROCESSOR_DEFINITIONS='$(GCC_PREPROCESSOR_ADDITIONS) $$(inherited)') 128 132 endif 129 133 130 134 clean: 131 ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]})135 @$(call invoke_xcode,,-alltargets clean) 132 136 133 137 force: ; -
trunk/Source/Makefile
r254227 r267424 11 11 MODULES = bmalloc WTF JavaScriptCore ThirdParty WebCore $(WEBINSPECTORUI_MODULE) WebKitLegacy WebKit 12 12 13 define build_target_for_each_module 14 for dir in $(MODULES); do \ 15 ${MAKE} $@ -C $$dir PATH_FROM_ROOT=$(PATH_FROM_ROOT)/$${dir}; \ 16 exit_status=$$?; \ 17 [ $$exit_status -ne 0 ] && exit $$exit_status; \ 18 done; true 19 endef 20 13 21 all: 14 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 15 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 22 @$(build_target_for_each_module) 16 23 17 24 debug d: 18 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 19 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 25 @$(build_target_for_each_module) 20 26 21 27 release r: 22 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 23 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 28 @$(build_target_for_each_module) 24 29 25 30 release+assert ra: 26 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 27 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 31 @$(build_target_for_each_module) 28 32 29 33 testing t: 30 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 31 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 34 @$(build_target_for_each_module) 32 35 33 36 analyze: 34 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 35 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 37 @$(build_target_for_each_module) 36 38 37 39 clean: 38 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 39 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 40 @$(build_target_for_each_module) -
trunk/Source/ThirdParty/ChangeLog
r265315 r267424 1 2020-09-22 Keith Rollin <krollin@apple.com> 2 3 Refactor build rules in Makefiles and Makefile.shared 4 https://bugs.webkit.org/show_bug.cgi?id=216806 5 <rdar://problem/69332316> 6 7 Reviewed by David Kilzer. 8 9 Factor out the common aspects of the build rules in Makefile.shared 10 and the various Makefiles. This allows us to more easily see what's 11 different between the various build targets, and to apply uniform 12 changes across all of the targets. 13 14 * Makefile: 15 1 16 2020-08-05 Tim Horton <timothy_horton@apple.com> 2 17 -
trunk/Source/ThirdParty/Makefile
r254227 r267424 25 25 MODULES = ANGLE $(LIBWEBRTC_MODULE) 26 26 27 define build_target_for_each_module 28 for dir in $(MODULES); do \ 29 ${MAKE} $@ -C $$dir PATH_FROM_ROOT=$(PATH_FROM_ROOT)/$${dir}; \ 30 exit_status=$$?; \ 31 [ $$exit_status -ne 0 ] && exit $$exit_status; \ 32 done; true 33 endef 34 27 35 all: 28 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 29 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 36 @$(build_target_for_each_module) 30 37 31 38 debug d development dev develop: 32 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 33 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 39 @$(build_target_for_each_module) 34 40 35 41 release r deployment dep deploy: 36 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 37 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 42 @$(build_target_for_each_module) 38 43 39 44 release+assert ra: 40 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 41 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 45 @$(build_target_for_each_module) 42 46 43 47 testing t: 44 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 45 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 48 @$(build_target_for_each_module) 46 49 47 50 analyze: 48 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 49 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 51 @$(build_target_for_each_module) 50 52 51 53 clean: 52 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 53 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 54 @$(build_target_for_each_module) -
trunk/Tools/ChangeLog
r267414 r267424 1 2020-09-22 Keith Rollin <krollin@apple.com> 2 3 Refactor build rules in Makefiles and Makefile.shared 4 https://bugs.webkit.org/show_bug.cgi?id=216806 5 <rdar://problem/69332316> 6 7 Reviewed by David Kilzer. 8 9 Factor out the common aspects of the build rules in Makefile.shared 10 and the various Makefiles. This allows us to more easily see what's 11 different between the various build targets, and to apply uniform 12 changes across all of the targets. 13 14 * Makefile: 15 1 16 2020-09-22 Youenn Fablet <youenn@apple.com> 2 17 -
trunk/Tools/Makefile
r257161 r267424 21 21 endif 22 22 23 define build_target_for_each_module 24 for dir in $(MODULES); do \ 25 ${MAKE} $@ -C $$dir PATH_FROM_ROOT=$(PATH_FROM_ROOT)/$${dir}; \ 26 exit_status=$$?; \ 27 [ $$exit_status -ne 0 ] && exit $$exit_status; \ 28 done; true 29 endef 30 23 31 all: 24 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 25 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 32 @$(build_target_for_each_module) 26 33 27 34 debug d development dev develop: 28 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 29 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 35 @$(build_target_for_each_module) 30 36 31 37 release r deployment dep deploy: 32 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 33 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 38 @$(build_target_for_each_module) 34 39 35 40 release+assert ra: 36 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 37 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 41 @$(build_target_for_each_module) 38 42 39 43 testing t: 40 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 41 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 44 @$(build_target_for_each_module) 42 45 43 46 analyze: 44 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 45 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 47 @$(build_target_for_each_module) 46 48 47 49 clean: 48 @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ 49 if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done 50 @$(build_target_for_each_module)
Note:
See TracChangeset
for help on using the changeset viewer.