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:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user