Apply suggestions from code review
Co-Authored-By: Maarten <MaartenBent@users.noreply.github.com>
This commit is contained in:
parent
12c462d424
commit
41f4a21736
3 changed files with 6 additions and 6 deletions
|
|
@ -36,18 +36,18 @@ if(APPLE)
|
|||
wx_lib_link_libraries(webview PUBLIC "-framework WebKit")
|
||||
elseif(WXMSW)
|
||||
if(wxUSE_WEBVIEW_EDGE)
|
||||
wx_lib_include_directories(webview PRIVATE ${PROJECT_SOURCE_DIR}/3rdparty/webview2/build/native/include)
|
||||
wx_lib_include_directories(webview PRIVATE "${PROJECT_SOURCE_DIR}/3rdparty/webview2/build/native/include")
|
||||
|
||||
if (${CMAKE_SIZEOF_VOID_P} EQUAL 4)
|
||||
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
set(WEBVIEW2_ARCH x86)
|
||||
else()
|
||||
set(WEBVIEW2_ARCH x64)
|
||||
endif()
|
||||
|
||||
add_custom_command(TARGET webview POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy
|
||||
COMMAND ${CMAKE_COMMAND} -E copy
|
||||
"${PROJECT_SOURCE_DIR}/3rdparty/webview2/build/native/${WEBVIEW2_ARCH}/WebView2Loader.dll"
|
||||
$<TARGET_FILE_DIR:webview>/"WebView2Loader.dll")
|
||||
"$<TARGET_FILE_DIR:webview>/WebView2Loader.dll")
|
||||
endif()
|
||||
elseif(WXGTK)
|
||||
if(LIBSOUP_FOUND)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: include/wx/msw/webview_edge.h
|
||||
// Name: include/wx/msw/private/webview_edge.h
|
||||
// Purpose: wxMSW Edge Chromium wxWebView backend private classes
|
||||
// Author: Tobias Taschner
|
||||
// Created: 2020-01-15
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "wx/setup.h"
|
||||
|
||||
#if wxUSE_WEBVIEW && (wxUSE_WEBVIEW_IE || wxUSE_WEBVIEW_EDGE) && defined(__WXMSW__)
|
||||
#if wxUSE_WEBVIEW && (wxUSE_WEBVIEW_IE || wxUSE_WEBVIEW_EDGE) && defined(__WXMSW__)
|
||||
|
||||
class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue