forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (39 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
ifneq ($(USE_WORKSPACE),NO)
include ../Makefile.shared
SCHEME = Everything up to WebKit
else
WEBINSPECTORUI_MODULE =
TO_LOWER = $(shell echo $(1) | tr [:upper:] [:lower:])
ifneq (,$(SDKROOT))
ifneq (,$(findstring macosx,$(call TO_LOWER,$(notdir $(SDKROOT)))))
WEBINSPECTORUI_MODULE = WebInspectorUI
endif
else
WEBINSPECTORUI_MODULE = WebInspectorUI
endif
ifeq (iosmac,$(SDK_VARIANT))
WEBINSPECTORUI_MODULE =
endif
MODULES = bmalloc WTF JavaScriptCore WebGPU ThirdParty WebCore $(WEBINSPECTORUI_MODULE) WebKitLegacy WebKit
define build_target_for_each_module
for dir in $(MODULES); do \
${MAKE} $@ -C $$dir PATH_FROM_ROOT=$(PATH_FROM_ROOT)/$${dir}; \
exit_status=$$?; \
[ $$exit_status -ne 0 ] && exit $$exit_status; \
done; true
endef
all:
@$(build_target_for_each_module)
debug d:
@$(build_target_for_each_module)
release r:
@$(build_target_for_each_module)
release+assert ra:
@$(build_target_for_each_module)
testing t:
@$(build_target_for_each_module)
analyze:
@$(build_target_for_each_module)
clean:
@$(build_target_for_each_module)
endif # USE_WORKSPACE