From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQnkw-0004Rz-HL for ptxdist@pengutronix.de; Mon, 29 Mar 2021 11:00:18 +0200 Received: from mfe by dude02.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lQnkw-0007NF-5u for ptxdist@pengutronix.de; Mon, 29 Mar 2021 11:00:18 +0200 From: Marco Felsch Date: Mon, 29 Mar 2021 11:00:11 +0200 Message-Id: <20210329090011.25309-4-m.felsch@pengutronix.de> In-Reply-To: <20210329090011.25309-1-m.felsch@pengutronix.de> References: <20210329090011.25309-1-m.felsch@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 4/4] wpewebkit: add runtime logging support List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de 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 --- 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 ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de