Message dropped when restoring webpages.
[WebKit-https.git] / Source / ThirdParty / Makefile
1 LIBWEBRTC_MODULE = 
2
3 TO_LOWER = $(shell echo $(1) | tr [:upper:] [:lower:])
4
5 ifeq (iosmac,$(SDK_VARIANT))
6         DISABLE_LIBWEBRTC = 1
7 endif
8
9 ifneq (,$(SDKROOT))
10         ifneq (,$(findstring iphone,$(call TO_LOWER,$(notdir $(SDKROOT)))))
11                 LIBWEBRTC_MODULE = libwebrtc
12         endif
13         ifneq (,$(findstring macosx,$(call TO_LOWER,$(notdir $(SDKROOT)))))
14                 LIBWEBRTC_MODULE = libwebrtc
15         endif
16         ifneq (,$(findstring watch,$(call TO_LOWER,$(notdir $(SDKROOT)))))
17                 LIBWEBRTC_MODULE = libwebrtc
18         endif
19         ifeq ($(MAKECMDGOALS),installsrc)
20                 LIBWEBRTC_MODULE = libwebrtc
21         endif
22 else
23         LIBWEBRTC_MODULE = libwebrtc
24 endif
25
26 ifneq (,$(DISABLE_LIBWEBRTC))
27         LIBWEBRTC_MODULE =
28 endif
29
30 MODULES = ANGLE $(LIBWEBRTC_MODULE)
31
32 define build_target_for_each_module
33         for dir in $(MODULES); do \
34                 ${MAKE} $@ -C $$dir PATH_FROM_ROOT=$(PATH_FROM_ROOT)/$${dir}; \
35                 exit_status=$$?; \
36                 [ $$exit_status -ne 0 ] && exit $$exit_status; \
37         done; true
38 endef
39
40 all:
41         @$(build_target_for_each_module)
42
43 debug d:
44         @$(build_target_for_each_module)
45
46 release r:
47         @$(build_target_for_each_module)
48
49 release+assert ra:
50         @$(build_target_for_each_module)
51
52 testing t:
53         @$(build_target_for_each_module)
54
55 analyze:
56         @$(build_target_for_each_module)
57
58 clean:
59         @$(build_target_for_each_module)
60
61 installsrc:
62         @$(build_target_for_each_module)