2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-19 08:51:50 +00:00

chore: only set debug webview mode on debug compile

This commit is contained in:
Jan Laupetin
2025-10-07 01:27:40 +02:00
parent 33b50207cf
commit 71791abb59
5 changed files with 29 additions and 18 deletions

View File

@@ -1,21 +1,18 @@
#include "AssetHandlerGtk.h"
#pragma warning(push, 0)
#if defined(WEBVIEW_PLATFORM_LINUX) && defined(WEBVIEW_GTK)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <webview/macros.h>
#include <webview/webview.h>
#pragma warning(pop)
#if defined(WEBVIEW_PLATFORM_LINUX) && defined(WEBVIEW_GTK)
#pragma GCC diagnostic pop
#include "Web/UiAssets.h"
#include <format>
#include <iostream>
#define G_SPAWN_ERROR g_spawn_error_quark()
G_DEFINE_QUARK(g - spawn - error - quark, g_spawn_error)
namespace
{
std::unordered_map<std::string, UiFile> assetLookup;

View File

@@ -1,14 +1,13 @@
#pragma once
#pragma warning(push, 0)
#include <webview/macros.h>
#pragma warning(pop)
#if defined(WEBVIEW_PLATFORM_LINUX) && defined(WEBVIEW_GTK)
#pragma warning(push, 0)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <webview/webview.h>
#pragma warning(pop)
#pragma GCC diagnostic pop
namespace gtk
{