Bug 1776056 - Switch to the tab an animation is running and make sure the animation...
[gecko.git] / config / makefiles / debugmake.mk
blobbf2db445a3905bfc012bff6875e51eeb37673d17
1 # -*- makefile -*-
2 # vim:set ts=8 sw=8 sts=8 noet:
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
6 # You can obtain one at http://mozilla.org/MPL/2.0/.
9 ###########################################################################
10 ## Intent: Helper targets for displaying variables and state information
11 ###########################################################################
13 # Support usage outside of config/rules.mk
14 ifndef INCLUDED_DEBUGMAKE_MK #{
16 define CR
19 endef
21 define shell_quote
22 '$(subst $(CR),\$(CR),$(subst ','\'',$(1)))'
23 endef
25 echo-variable-%:
26 @echo $(call shell_quote,$($*))
28 echo-dirs:
29 @echo $(call shell_quote,$(DIRS))
31 define print_var
32 @printf '%20s = %s\n' $1 $(call shell_quote,$($1))
34 endef
36 define print_vars
37 $(foreach var,$1,$(call print_var,$(var)))
38 endef
40 showtargs:
41 ifneq (,$(filter $(PROGRAM) $(HOST_PROGRAM) $(SIMPLE_PROGRAMS) $(LIBRARY) $(SHARED_LIBRARY),$(TARGETS)))
42 @echo --------------------------------------------------------------------------------
43 $(call print_vars,\
44 PROGRAM \
45 SIMPLE_PROGRAMS \
46 LIBRARY \
47 SHARED_LIBRARY \
48 LIBS \
49 DEF_FILE \
50 IMPORT_LIBRARY \
51 STATIC_LIBS \
52 SHARED_LIBS \
53 EXTRA_DSO_LDOPTS \
54 DEPENDENT_LIBS \
56 @echo --------------------------------------------------------------------------------
57 endif
58 $(LOOP_OVER_DIRS)
60 showbuild showhost: _DEPEND_CFLAGS=
61 showbuild showhost: COMPILE_PDB_FLAG=
62 showbuild:
63 $(call print_vars,\
64 MOZ_WIDGET_TOOLKIT \
65 CC \
66 CXX \
67 CCC \
68 CPP \
69 LD \
70 AR \
71 MKSHLIB \
72 MKCSHLIB \
73 RC \
74 CFLAGS \
75 OS_CFLAGS \
76 COMPILE_CFLAGS \
77 CXXFLAGS \
78 OS_CXXFLAGS \
79 COMPILE_CXXFLAGS \
80 COMPILE_CMFLAGS \
81 COMPILE_CMMFLAGS \
82 LDFLAGS \
83 OS_LDFLAGS \
84 DSO_LDOPTS \
85 OS_INCLUDES \
86 OS_LIBS \
87 BIN_FLAGS \
88 INCLUDES \
89 DEFINES \
90 ACDEFINES \
91 BIN_SUFFIX \
92 LIB_SUFFIX \
93 DLL_SUFFIX \
94 IMPORT_LIB_SUFFIX \
95 INSTALL \
96 VPATH \
99 showhost:
100 $(call print_vars,\
101 HOST_CC \
102 HOST_CXX \
103 HOST_CFLAGS \
104 HOST_LDFLAGS \
105 HOST_LIBS \
106 HOST_EXTRA_LIBS \
107 HOST_EXTRA_DEPS \
108 HOST_PROGRAM \
109 HOST_OBJS \
110 HOST_PROGOBJS \
113 INCLUDED_DEBUGMAKE_MK = 1
114 endif #}