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 <[email protected]>
---
 rules/wpewebkit.in   | 7 +++++++
 rules/wpewebkit.make | 4 ++++
 2 files changed, 11 insertions(+)

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
 # ----------------------------------------------------------------------------
-- 
2.29.2


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to