summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2021-03-29 11:00:11 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2021-03-30 18:48:24 +0200
commitc3361e082f90ca37f6572a444c670eed08b6d266 (patch)
tree61219e86a4f643d8ab3d5c1eb75c11d05490654c /rules
parentafbb5708240c1f6efde1a7d6d198e87abe7ced18 (diff)
downloadptxdist-c3361e082f90ca37f6572a444c670eed08b6d266.tar.gz
ptxdist-c3361e082f90ca37f6572a444c670eed08b6d266.tar.xz
wpewebkit: add runtime logging support
To enable 'Release' builds with logging support we need to override the LOG_DISABLED define else logging is only enabled for 'Debug' builds. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Message-Id: <20210329090011.25309-4-m.felsch@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/wpewebkit.in7
-rw-r--r--rules/wpewebkit.make4
2 files changed, 11 insertions, 0 deletions
diff --git a/rules/wpewebkit.in b/rules/wpewebkit.in
index f123f4dad..1235e2502 100644
--- a/rules/wpewebkit.in
+++ b/rules/wpewebkit.in
@@ -90,4 +90,11 @@ config WPEWEBKIT_AUDIO
bool
prompt "audio support"
+config WPEWEBKIT_ENABLE_LOGGING
+ bool
+ prompt "enable logging support"
+ help
+ Enable this option if you want to get some more logging information. For more
+ information check https://trac.webkit.org/wiki/WebKitGTK/Debugging.
+
endif
diff --git a/rules/wpewebkit.make b/rules/wpewebkit.make
index 9e41e3222..141d83a71 100644
--- a/rules/wpewebkit.make
+++ b/rules/wpewebkit.make
@@ -76,6 +76,10 @@ WPEWEBKIT_CONF_OPT += \
-DENABLE_REMOTE_INSPECTOR=ON \
-DUSE_SYSTEM_MALLOC=$(WPEWEBKIT_SYSTEM_MALLOC)
+ifdef PTXCONF_WPEWEBKIT_ENABLE_LOGGING
+WPEWEBKIT_CXXFLAGS := -DLOG_DISABLED=0
+endif
+
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------