mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
fix Windows build errors - wip
This commit is contained in:
13
deps/wxWidgets/wxWidgets.cmake
vendored
13
deps/wxWidgets/wxWidgets.cmake
vendored
@@ -59,12 +59,23 @@ orcaslicer_add_cmake_project(
|
|||||||
# wxWidgets 3.3 cmake install doesn't include private headers.
|
# wxWidgets 3.3 cmake install doesn't include private headers.
|
||||||
# OrcaSlicer uses some of the private headers (for accessibility support).
|
# OrcaSlicer uses some of the private headers (for accessibility support).
|
||||||
# Copy the private headers directory after install.
|
# Copy the private headers directory after install.
|
||||||
|
if(MSVC)
|
||||||
|
set(_wx_inc_dest ${DESTDIR}/include/wx)
|
||||||
|
else()
|
||||||
|
set(_wx_inc_dest ${DESTDIR}/include/wx-3.3/wx)
|
||||||
|
endif()
|
||||||
ExternalProject_Add_Step(dep_wxWidgets copy_private_headers
|
ExternalProject_Add_Step(dep_wxWidgets copy_private_headers
|
||||||
DEPENDEES install
|
DEPENDEES install
|
||||||
COMMENT "Copying wxWidgets private headers"
|
COMMENT "Copying wxWidgets private headers"
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
<SOURCE_DIR>/include/wx/private
|
<SOURCE_DIR>/include/wx/private
|
||||||
${DESTDIR}/include/wx-3.3/wx/private
|
${_wx_inc_dest}/private
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
|
<SOURCE_DIR>/include/wx/generic/private
|
||||||
|
${_wx_inc_dest}/generic/private
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
|
<SOURCE_DIR>/include/wx/gtk/private
|
||||||
|
${_wx_inc_dest}/gtk/private
|
||||||
)
|
)
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
|
|||||||
@@ -32,14 +32,16 @@ if (SLIC3R_GUI)
|
|||||||
set (wxWidgets_CONFIG_OPTIONS "--toolkit=gtk${SLIC3R_GTK}")
|
set (wxWidgets_CONFIG_OPTIONS "--toolkit=gtk${SLIC3R_GTK}")
|
||||||
find_package(wxWidgets 3.3 REQUIRED COMPONENTS base core adv html gl aui net media webview)
|
find_package(wxWidgets 3.3 REQUIRED COMPONENTS base core adv html gl aui net media webview)
|
||||||
else ()
|
else ()
|
||||||
find_package(wxWidgets 3.3 REQUIRED COMPONENTS html adv gl core base webview aui net media)
|
find_package(wxWidgets 3.3 CONFIG REQUIRED COMPONENTS html adv gl core base webview aui net media)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
message(STATUS "wx-config path: ${wxWidgets_CONFIG_EXECUTABLE}")
|
message(STATUS "wx-config path: ${wxWidgets_CONFIG_EXECUTABLE}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(${wxWidgets_USE_FILE})
|
if(wxWidgets_USE_FILE)
|
||||||
|
include(${wxWidgets_USE_FILE})
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(JPEG QUIET)
|
find_package(JPEG QUIET)
|
||||||
|
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ wxWebView* WebView::CreateWebView(wxWindow * parent, wxString const & url)
|
|||||||
bool WebView::CheckWebViewRuntime()
|
bool WebView::CheckWebViewRuntime()
|
||||||
{
|
{
|
||||||
wxWebViewFactoryEdge factory;
|
wxWebViewFactoryEdge factory;
|
||||||
auto wxVersion = factory.GetVersionInfo();
|
auto wxVersion = factory.GetVersionInfo(wxVersionContext::RunTime);
|
||||||
return wxVersion.GetMajor() != 0;
|
return wxVersion.GetMajor() != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user