config/makefiles/debugmake.mk

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 # -*- makefile -*-
michael@0 2 # vim:set ts=8 sw=8 sts=8 noet:
michael@0 3 #
michael@0 4 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 5 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 6 # You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 7 #
michael@0 8
michael@0 9 ###########################################################################
michael@0 10 ## Intent: Helper targets for displaying variables and state information
michael@0 11 ###########################################################################
michael@0 12
michael@0 13 # Support usage outside of config/rules.mk
michael@0 14 ifndef INCLUDED_DEBUGMAKE_MK #{
michael@0 15
michael@0 16 define shell_quote
michael@0 17 '$(subst ','\'',$(1))'
michael@0 18 endef
michael@0 19
michael@0 20 echo-variable-%:
michael@0 21 @echo $(call shell_quote,$($*))
michael@0 22
michael@0 23 echo-tiers:
michael@0 24 @echo $(TIERS)
michael@0 25
michael@0 26 echo-tier-dirs:
michael@0 27 @$(foreach tier,$(TIERS),echo '$(tier):'; echo ' dirs: $(tier_$(tier)_dirs)'; $(if $(tier_$(tier)_staticdirs),echo ' staticdirs: $(tier_$(tier)_staticdirs)';) )
michael@0 28
michael@0 29 echo-dirs:
michael@0 30 @echo $(call shell_quote,$(DIRS))
michael@0 31
michael@0 32 define print_var
michael@0 33 @printf '%20s = %s\n' $1 $(call shell_quote,$($1))
michael@0 34
michael@0 35 endef
michael@0 36
michael@0 37 define print_vars
michael@0 38 $(foreach var,$1,$(call print_var,$(var)))
michael@0 39 endef
michael@0 40
michael@0 41 showtargs:
michael@0 42 ifneq (,$(filter $(PROGRAM) $(HOST_PROGRAM) $(SIMPLE_PROGRAMS) $(HOST_LIBRARY) $(LIBRARY) $(SHARED_LIBRARY),$(TARGETS)))
michael@0 43 @echo --------------------------------------------------------------------------------
michael@0 44 $(call print_vars,\
michael@0 45 PROGRAM \
michael@0 46 SIMPLE_PROGRAMS \
michael@0 47 LIBRARY \
michael@0 48 SHARED_LIBRARY \
michael@0 49 SHARED_LIBRARY_LIBS \
michael@0 50 LIBS \
michael@0 51 DEF_FILE \
michael@0 52 IMPORT_LIBRARY \
michael@0 53 STATIC_LIBS \
michael@0 54 EXTRA_DSO_LDOPTS \
michael@0 55 DEPENDENT_LIBS \
michael@0 56 )
michael@0 57 @echo --------------------------------------------------------------------------------
michael@0 58 endif
michael@0 59 $(LOOP_OVER_PARALLEL_DIRS)
michael@0 60 $(LOOP_OVER_DIRS)
michael@0 61 $(LOOP_OVER_TOOL_DIRS)
michael@0 62
michael@0 63 showbuild:
michael@0 64 $(call print_vars,\
michael@0 65 MOZ_BUILD_ROOT \
michael@0 66 MOZ_WIDGET_TOOLKIT \
michael@0 67 CC \
michael@0 68 CXX \
michael@0 69 CCC \
michael@0 70 CPP \
michael@0 71 LD \
michael@0 72 AR \
michael@0 73 IMPLIB \
michael@0 74 FILTER \
michael@0 75 MKSHLIB \
michael@0 76 MKCSHLIB \
michael@0 77 RC \
michael@0 78 MC \
michael@0 79 CFLAGS \
michael@0 80 OS_CFLAGS \
michael@0 81 COMPILE_CFLAGS \
michael@0 82 CXXFLAGS \
michael@0 83 OS_CXXFLAGS \
michael@0 84 COMPILE_CXXFLAGS \
michael@0 85 COMPILE_CMFLAGS \
michael@0 86 COMPILE_CMMFLAGS \
michael@0 87 LDFLAGS \
michael@0 88 OS_LDFLAGS \
michael@0 89 DSO_LDOPTS \
michael@0 90 OS_INCLUDES \
michael@0 91 OS_LIBS \
michael@0 92 EXTRA_LIBS \
michael@0 93 BIN_FLAGS \
michael@0 94 INCLUDES \
michael@0 95 DEFINES \
michael@0 96 ACDEFINES \
michael@0 97 BIN_SUFFIX \
michael@0 98 LIB_SUFFIX \
michael@0 99 DLL_SUFFIX \
michael@0 100 IMPORT_LIB_SUFFIX \
michael@0 101 INSTALL \
michael@0 102 VPATH \
michael@0 103 )
michael@0 104
michael@0 105 showhost:
michael@0 106 $(call print_vars,\
michael@0 107 HOST_CC \
michael@0 108 HOST_CXX \
michael@0 109 HOST_CFLAGS \
michael@0 110 HOST_LDFLAGS \
michael@0 111 HOST_LIBS \
michael@0 112 HOST_EXTRA_LIBS \
michael@0 113 HOST_EXTRA_DEPS \
michael@0 114 HOST_PROGRAM \
michael@0 115 HOST_OBJS \
michael@0 116 HOST_PROGOBJS \
michael@0 117 HOST_LIBRARY \
michael@0 118 )
michael@0 119
michael@0 120 INCLUDED_DEBUGMAKE_MK = 1
michael@0 121 endif #}

mercurial