attempt to fix wxwebview undef

This commit is contained in:
Aidan Case 2024-02-22 19:16:16 -06:00
parent 0c9d2675c3
commit caaadbd9d3
5 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View file

@ -32,3 +32,4 @@ src/OrcaSlicer-doc/
**/filament_full/
/deps/DL_CACHE/
/deps/DL_CACHE
**/.flatpak-builder/

View file

@ -23,7 +23,7 @@ else ()
endif ()
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(_patch_cmd ${PATCH_CMD} ${CMAKE_CURRENT_LIST_DIR}/0001-wx-3.1.5-patch-for-Orca.patch)
set(_patch_cmd ${PATCH_CMD} ${CMAKE_CURRENT_LIST_DIR}/0001-wx-3.1.5-patch-for-Orca.patch ${CMAKE_CURRENT_LIST_DIR}/0001-Add-support-for-building-WebView-with-libwebkit2gtk-.patch)
endif ()
orcaslicer_add_cmake_project(
@ -44,6 +44,7 @@ orcaslicer_add_cmake_project(
-DwxUSE_UNICODE=ON
${_wx_private_font}
-DwxUSE_OPENGL=ON
-DwxUSE_WEBREQUEST=ON
-DwxUSE_WEBVIEW=ON
${_wx_edge}
-DwxUSE_WEBVIEW_IE=OFF
@ -57,6 +58,7 @@ orcaslicer_add_cmake_project(
-DwxUSE_ZLIB=sys
-DwxUSE_LIBJPEG=sys
-DwxUSE_LIBTIFF=sys
-DwxUSE_NANOSVG=OFF
-DwxUSE_EXPAT=sys
)

View file

@ -6,7 +6,7 @@
#include "wx/cmdline.h"
#include "wx/notifmsg.h"
#include "wx/settings.h"
#include "wx/webview.h"
#include <wx/webview.h>
#include <wx/string.h>
#if wxUSE_WEBVIEW_EDGE

View file

@ -6,7 +6,7 @@
#include "wx/cmdline.h"
#include "wx/notifmsg.h"
#include "wx/settings.h"
#include "wx/webview.h"
#include <wx/webview.h>
#if wxUSE_WEBVIEW_EDGE
#include "wx/msw/webview_edge.h"